Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/NOTES/HISTORY
ViewVC logotype

Diff of /sml/trunk/NOTES/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1171, Fri Mar 22 20:41:43 2002 UTC revision 1618, Fri Sep 3 15:27:05 2004 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Allen Leung (leunga (at) reservoir (dot) com)
17    Date: 2004/09/03 11:26:00 EST
18    Tag: leunga-20040903-cygwin-install
19    Description:
20    
21       Added a patch to _arch-n-opsys to enable the Cygwin runtime.
22    The Cygwin runtime is turned on by setting the environment
23    variable SMLNJ_CYGWIN_RUNTIME to 1.
24    
25    ----------------------------------------------------------------------
26    Name: Matthias Blume (blume (at) tti - c (dot) org)
27    Date: 2004/08/31 17:15:00 CDT
28    Tag: blume-20040831-core
29    Description:
30    
31    Added some exports to src/compiler/core.cm upon request by J. Joemann.
32    
33    ----------------------------------------------------------------------
34    Name: Matthias Blume (blume (at) tti - c (dot) org)
35    Date: 2004/08/30 17:55:00 CDT
36    Tag: blume-20040830-installer
37    Description:
38    
39    Upon request by Johannes Joemann:
40    
41    - improved ML code of installer to fall back to coping when renaming
42      fails (i.e., when source and target are on different file systems);
43      the code compiles but has yet to be tested in anger
44    - removed mlrisc from list of default targets (config/targets)
45    
46    ----------------------------------------------------------------------
47    Name: Matthias Blume (blume (at) tti - c (dot) org)
48    Date: 2004/08/27 17:20:00 CDT
49    Tag: blume-20040827-ptreql
50    Description:
51    
52    Added ptreql primop to structure InlineT (upon request from Larry
53    Paulson).
54    
55    ----------------------------------------------------------------------
56    Name: Allen Leung (leunga (at) reservoir (dot) com)
57    Date: 2004/08/15 21:21:00 EST
58    Tag: leunga-110_48-udgraph
59    Description:
60    
61    Another bug fix from Carl Hauser:
62    
63    diff /net/niflab/smlnj48/src/MLRISC/graphs/udgraph.sml udgraph.sml
64    > 48c48
65    > <              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then es else
66    > e::L)
67    > ---
68    > >              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then L else e::L)
69    > Without this, any deletion of an edge in an undirected graph does severe
70    > violence to the graph.
71    
72    ----------------------------------------------------------------------
73    Name: Allen Leung (leunga (at) reservoir (dot) com)
74    Date: 2004/08/10 23:35:00 EST
75    Tag: leunga-110_48-ppc
76    Description:
77    
78       The IBM/MacOS syntax switch on PPC was incorrectly swapped.
79    
80    ----------------------------------------------------------------------
81    Name: Matthias Blume (blume (at) tti - c (dot) org)
82    Date: 2004/08/10 12:00:00 CDT
83    Tag: Release_110_48
84    Description:
85    
86    New working version (110.48).  NEW BOOTFILES!
87    
88    ----------------------------------------------------------------------
89    Name: Allen Leung (leunga (at) reservoir (dot) com)
90    Date: 2004/08/09 12:21:00 EST
91    Tag: leunga-110_47-dijsktra
92    Description:
93    
94    Bug fix from Carl Hauser:
95    
96    single_source_shortest_paths in dijkstra.sml was observed to get wrong
97    answers (by comparing to single_source_shortest_paths in bellman-ford.sml).
98    
99    The problem is that following the expression A.update(dist,s,Num.zero)
100    it is necessary to update the priority queue using Q.decreaseWeight(Q,s).
101    
102    ----------------------------------------------------------------------
103    Name: Matthias Blume (blume (at) tti - c (dot) org)
104    Date: 2004/08/06 18:10:00 CDT
105    Tag: blume-20040806-cmdline
106    Description:
107    
108    Fiddled with handling of command-line options:
109    
110      * sml now quits after processing the command line
111        if -H, -S, -h<n>, or -s<n> appears as the last
112        command-line argument
113      * a new option -q terminates the session when encountered on
114        the command line; subsequent arguments will be ignored
115      * bug fixes: short (erroneous) arguments are no longer ignored
116        completely
117    
118    ----------------------------------------------------------------------
119    Name: Allen Leung (leunga (at) reservoir (dot) com)
120    Date: 2004/08/04 18:17:00 EST
121    Tag: leunga-110_47-ppc-ibm-asm
122    Description:
123    
124      - Added minimal IBM assembly syntax support for PowerPC.
125    
126      - Cygwin: manually changed the file cygwin.def.  Some exported symbols have
127        been altered in the runtime.  We need an automatic way to keep the file
128        in sync.
129    
130    ----------------------------------------------------------------------
131    Name: Matthias Blume (blume (at) tti - c (dot) org)
132    Date: 2004/08/04 14:00:00 CDT
133    Tag: Release_110_47
134    Description:
135    
136    New working version (110.47).  NEW BOOTFILES!
137    
138    ----------------------------------------------------------------------
139    Name: Matthias Blume (blume (at) tti - c (dot) org)
140    Date: 2004/08/03 14:25:00 CDT
141    Tag: blume-20040803-callingconv
142    Description:
143    
144    Added low-level support for choosing C calling conventions by
145    twiddling the type of rawccall.  (See
146    src/compiler/Semant/types/cproto.sml for details.)
147    
148    ----------------------------------------------------------------------
149    Name: Matthias Blume (blume (at) tti - c (dot) org)
150    Date: 2004/08/02 15:55:00 CDT
151    Tag: blume-20040802-backout
152    Description:
153    
154    Backed out of change to win32-filesys.c.  The earlier patch to
155    get_file_time caused CM to produce files with the wrong time stamp.
156    
157    ----------------------------------------------------------------------
158    Name: Matthias Blume (blume (at) tti - c (dot) org)
159    Date: 2004/08/02 14:45:00 CDT
160    Tag: blume-20040802-nlffi-win32
161    Description:
162    
163    Added NLFFI support for Win32, adapted from a patch provided by David
164    Hansel.  This is currently completely untested.  Also, the issue
165    concerning stdcall vs. ccall is still unresolved.
166    
167    ----------------------------------------------------------------------
168    Name: Matthias Blume (blume (at) tti - c (dot) org)
169    Date: 2004/07/30 17:55:00 CDT
170    Tag: blume-20040730-various
171    Description:
172    
173    Gearing up towards 110.47...
174    
175    - various minor bugfixes to ml-nlffigen
176    - a beginning of a manual for nlffi
177    
178    - eliminated 'export name=value' in config/install.sh as this does
179      not work with certain versions of /bin/sh
180      (Thanks to David King at Motorola for catching this.)
181    
182    - several bugfixes provided or suggested by David Hansel at Reactive Systems:
183      - added a test for tm==NULL to gmtime.c and localtime.c
184      - applied patch for incorrect GetFileTime under win32
185      - toSeconds -> toMilliseconds in Win32/win32-process.sml
186    
187    ----------------------------------------------------------------------
188    Name: Matthias Blume (blume (at) tti - c (dot) org)
189    Date: 2004/07/21 18:20:00 CDT
190    Tag: blume-20040721-nlffigen
191    Description:
192    
193    - Fixed minor issue in ml-nlffigen: Now generate structure T_foo
194      for a typedef to an incomplete type, but leave out the "typ" member.
195      (This is just for consistency.)
196    - Started to produce what is supposed to become better (i.e., comprehensive)
197      documentation of what ml-nlffigen does and produces.
198    
199    ----------------------------------------------------------------------
200    Name: Matthias Blume (blume (at) tti - c (dot) org)
201    Date: 2004/07/14 16:25:00 CDT
202    Tag: blume-20040714-union
203    Description:
204    
205    Added C_UNION to c-calls/c-types.sml and updated the machinery
206    (ml-nlffigen, cproto.sml) that conveys C function interface
207    information to the code generator.
208    
209    However, the actual architecture-specific implementation of function
210    arguments and results that are C unions is still not implemented.
211    
212    ----------------------------------------------------------------------
213    Name: Allen Leung (leunga (at) reservoir (dot) com)
214    Date: 2004/07/14 14:38:00 EST
215    Tag: leunga-110_46_1-ppc-lwzu
216    Description:
217    
218        Added these instructions to the PowerPC architecture:
219        LBZU(X), LHZU(X), LWZU(X),
220        STWU(X), STFDU, STFSU
221    
222        etc...
223    
224        Note: I haven't added their instruction encoding into the description.
225    
226    ----------------------------------------------------------------------
227    Name: Allen Leung (leunga (at) reservoir (dot) com)
228    Date: 2004/07/13 15:04:00 EST
229    Tag: leunga-110_46_1-ppc-lwarx
230    Description:
231    
232       Added the two instructions LWARX and STWCX to the PowerPC
233    instruction set.
234    
235       A (untested) rewrite of loop-structure.sml.  The old version
236    is completely broken.
237    
238    ----------------------------------------------------------------------
239    Name: Matthias Blume (blume (at) tti - c (dot) org)
240    Date: 2004/07/13 13:50:00 CDT
241    Tag: blume-20040713-nlffi
242    Description:
243    
244    - use paramAlloc to report c-calls with too many arguments
245      (for PPC version where parameter area is pre-allocated)
246    - added ccall_maxargspace to machspec (to implement the above)
247    - made "make" commend in CM's "make" tool configurable
248    - added option (default: on) for passing the name of the SML/NJ's "bin"
249      directory to "make"; the call looks like this:
250    
251         make <options> SMLNJ_BINDIR=<dir> <target>
252    
253      This can be used by the Makefile to, e.g., pick the "right" version
254      of ml-nlffigen.
255    - minor code tweaks
256    
257    ----------------------------------------------------------------------
258    Name: Matthias Blume (blume (at) tti - c (dot) org)
259    Date: 2004/07/12 22:50:00 CDT
260    Tag: blume-110_46_1-macosx-nlffi
261    Description:
262    
263    NLFFI under Mac OS X now working (sort of).  This is largely untested,
264    though.
265    
266    Note:  1. You have to make a new, clean build of the runtime system.
267           2. There are new BOOTFILES, you have to use them!
268              (Doing the bootstrap process yourself would be *very* painful!
269               If you absolutely have to do it, build the system under
270               a different architecture and then cross-compile.)
271    
272    Version bumped to 110.46.1 to account for runtime data format changes.
273    
274    ----------------------------------------------------------------------
275    Name: Matthias Blume (blume (at) tti - c (dot) org)
276    Date: 2004/06/18 14:30:00 CDT
277    Tag: blume-20040618-unix
278    Description:
279    
280    Changed the implementation of structure Unix so that the same stream
281    is returned every time one of the {text,bin}{In,Out}streamOf functions
282    is invoked on the same proc.  This is not what the spec currently
283    says -- although IMO it arguably should.  (See discussion below.)
284    
285    ----------------------------------------------------------------------
286    Name: Matthias Blume (blume (at) tti - c (dot) org)
287    Date: 2004/06/17 18:15:00 CDT
288    Tag: Release_110_46
289    Description:
290    
291    New working version (110.46).  NEW BOOTFILES!
292    
293    ----------------------------------------------------------------------
294    Name: Matthias Blume (blume (at) tti - c (dot) org)
295    Date: 2004/06/17 17:20:00 CDT
296    Tag: blume-20040617-timer-unix
297    Description:
298    
299    Changed the interface of structures Timer and Unix to match the most
300    recent Basis spec.
301    
302    In the case of Unix there still seems to be an open/weird issue:
303    
304       The {text,bin}{In,Out}streamOf functions are supposed to create
305       fresh streams whenever they are called -- as opposed to have them
306       return the same stream every time.  This design is supposed to
307       prevent space leaks caused by proc values hanging on to streams.
308    
309       The reap function, on the other hand, is supposed to close the
310       streams.  This cannot be done without having a handle on the
311       stream in proc after all...
312    
313    I took the liberty to implement the following stopgap solution:
314    
315      The proc value hangs on to the most recently created stream(s).
316      Reap closes those.  If either or both of the two streams hadn't
317      been created at all yet, then reap will close the corresponding
318      file descriptors directly.
319    
320    PS: I don't understand the original space leak argument anymore.  If
321    a proc hangs on to the imperative stream, then I/O operations on those
322    will advance the state of the cached stream and avoid the space leak.
323    
324    ----------------------------------------------------------------------
325    Name: Matthias Blume (blume (at) tti - c (dot) org)
326    Date: 2004/05/28 16:45:00 CDT
327    Tag: blume-20040528-basis
328    Description:
329    
330    Added signature PACK_REAL and exported functor PrimIO.
331    
332    ----------------------------------------------------------------------
333    Name: Matthias Blume (blume (at) tti - c (dot) org)
334    Date: 2004/05/25 16:00:00 CDT
335    Tag: blume-20040525-group-owner
336    Description:
337    
338    CM now ignores (but still accepts) the "owner" information in group
339    descriptions.  The owner of a group is its next enclosing
340    library. Each group must have a unique owner.  (There is a virtual
341    "toplevel" library that owns groups which are not nested within a real
342    library.)  Previously, each group had to explicitly declare its owner,
343    and CM would check that such a declaration is correct.  The new scheme
344    is to have CM check that for each group there is precisely one owning
345    library.
346    
347    The advantage of the new scheme is that the programmer no longer needs
348    to maintain the somewhat annoying owner information.  The downside is
349    that CM cannot enforce the ownership rule across multiple runs of
350    CM.make.  Fortunately, enclosing the same group in two different
351    libraries A and B which are not part of the same program does not
352    cause real problems.
353    
354    ----------------------------------------------------------------------
355    Name: Matthias Blume (blume (at) tti - c (dot) org)
356    Date: 2004/05/20 16:00:00 CDT
357    Tag: blume-20040520-win32
358    Description:
359    
360    Made the win32 version work again.  (Strangely, a misplaced comma had
361    slipped into win32-process.c which prevented the runtime from being
362    compiled correctly.)
363    
364    Also, included a minor addition to ml-build.bat analogous to what was
365    done in blume-20040519-ml-build.
366    
367    ----------------------------------------------------------------------
368    Name: Matthias Blume (blume (at) tti - c (dot) org)
369    Date: 2004/05/19 22:10:00 CDT
370    Tag: blume-20040519-ml-build
371    Description:
372    
373    Arranged for ml-build to clean up after itself a little bit better.
374    The script generates a temporary SML source file and compiles it using
375    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
376    gets rid of those at the end, so they don't accumulate under .cm.
377    
378    This required a minor change to install.sh because the name of the
379    metadata directory (default: .cm) is actually configurable at
380    installation time.
381    
382    ----------------------------------------------------------------------
383    Name: Matthias Blume (blume (at) tti - c (dot) org)
384    Date: 2004/05/18 15:50:00 CDT
385    Tag: blume-20040518-mkreader
386    Description:
387    
388    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
389    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
390    
391    ----------------------------------------------------------------------
392    Name: Matthias Blume (blume (at) tti - c (dot) org)
393    Date: 2004/05/11 14:35:00 CDT
394    Tag: blume-20040511-win32sock
395    Description:
396    
397    Added previously missing support for many socket-related functions
398    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
399    for the voluminous patch!
400    
401    (I have not tested this patch under win32 yet.)
402    
403    Here is David's e-mail:
404    
405    Hi,
406    
407    Attached to this email you find a diff against sml/nj 110.45
408    that will enable socket support under Windows.
409    
410    To apply the patch (using unix or cygwin)
411    1) gunzip runtime.diff.gz
412    2) "cd" into "src/runtime" in the source tree of a fresh
413       110.45 installation.
414    3) patch -p 1 < [your/path/to]runtime.diff
415    
416    The code compiles fine but has NOT yet been extensively tested.
417    I only ran a few tests for basic socket client functionality
418    (which worked fine).  Especially the functions that use ioctl
419    are not tested at all and might not work (see below).
420    
421    I implemented this since we want to move to a newer version of sml/nj
422    but need socket support in order to use it.  This is the first time I
423    even had a look at the sml/nj source,  so please review my changes
424    before making this part of the distribution!  Here are a few issues
425    that I think might be better for someone to solve who is more
426    familiar with the sml/nj source (and socket programming):
427    
428    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
429      exception since I could not figure out what the windows equivalent
430      of these functions is
431    
432    - In sockets-osdep.h there are a some #include statements that are
433      only used in a few files that include sockets-osdep.h
434    
435    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
436      does not process its return value since I don't know how to
437      report an error upwards.
438    
439    - It would probably be good to have a call to WSACleanup() when
440      the library is unloaded (if there is such a possibility).
441      Otherwise I think Windows will take care of this automatically
442      when the process finishes.
443    
444    - I used ioctlsocket() as a replacement for ioctl() but I have
445      no idea if that is actually the proper replacement on Windows.
446    
447    - All these issues are marked in the code by "FIXME" comments.
448    
449    We use sml/nj extensively in our products and are quite happy
450    with it.  I hope this contribution will help you.
451    
452    Keep up the good work!
453    
454    David
455    
456    ----------------------------------------------------------------------
457    Name: Matthias Blume (blume (at) tti - c (dot) org)
458    Date: 2004/05/11 14:20:00 CDT
459    Tag: blume-20040511-installml
460    Description:
461    
462    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
463    the patch.)
464    
465    ----------------------------------------------------------------------
466    Name: Matthias Blume (blume (at) tti - c (dot) org)
467    Date: 2004/05/11 14:05:00 CDT
468    Tag: blume-20040511-nlffi-netbsd
469    Description:
470    
471    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
472    the patch.)
473    
474    ----------------------------------------------------------------------
475    Name: Matthias Blume (blume (at) tti - c (dot) org)
476    Date: 2004/05/11 12:05:00 CDT
477    Tag: blume-20040511-exports
478    Description:
479    
480    As per request by Adam Chlipala <adam@hcoop.net>, extended various
481    export lists in compiler-related .cm-files.
482    
483    ----------------------------------------------------------------------
484    Name: Matthias Blume (blume (at) tti - c (dot) org)
485    Date: 2004/05/11 11:35:00 CDT
486    Tag: blume-20040511-allsource
487    Description:
488    
489    The installer now honors the "src-smlnj" target again, although its meaning
490    has changed from "all sources required for the compiler" to "all sources
491    the installer knows about".  In other words, if you enable "src-smlnj"
492    in the "targets" file, then the installer will pull in sources for
493    everything.  (Notice that this refers to source code only.  Compiled
494    code is still only installed for modules that were requested explicitly
495    or which are required for other modules that were requested explicitly.)
496    
497    ----------------------------------------------------------------------
498    Name: Matthias Blume (blume (at) tti - c (dot) org)
499    Date: 2004/04/23 17:40:00 CDT
500    Tag: blume-20040423-ieee-scan
501    Description:
502    
503    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
504    in the exponent calculation we get INF or ZERO (depending on the mantissa
505    and the sign of the exponent).
506    
507    ----------------------------------------------------------------------
508    Name: Matthias Blume (blume (at) tti - c (dot) org)
509    Date: 2004/04/23 10:40:00 CDT
510    Tag: blume-20040423-ml-build
511    Description:
512    
513    The ml-build script now terminates with a non-0 status when something
514    goes wrong.
515    
516    ----------------------------------------------------------------------
517    Name: Matthias Blume (blume (at) tti - c (dot) org)
518    Date: 2004/04/22 16:35:00 CDT
519    Tag: blume-20040422-Option
520    Description:
521    
522    Made exception Option to be the same as exception Option.Option
523    (as it should be).
524    
525    ----------------------------------------------------------------------
526    Name: Allen Leung (leunga (at) reservoir (dot) com)
527    Date: 2004/03/19 14:40:00 EST
528    Tag: leunga-20040319-cygwin-nlffi
529    Description:
530    
531    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
532    of SML/NJ.  The problem is that
533    
534       lib = dlopen(NULL, ...)
535       f   = dlsym(lib, "malloc");
536    
537    does not work on Windows unless we explicitly export symbols
538    such as 'malloc' during linking.  We fixed this by explicitly
539    exporting the required symbols with the magic gcc incantation:
540    
541        -Wl,--export-all cygwin.def
542    
543    where cygwin.def is a file containing all the symbols that
544    we wish to export.
545    
546    I suspect this is a Windows problem and we'll have to
547    do the same (somehow with windows compilers) when
548    we build the native win32 version with the system
549    calls LoadLibrary/GetProcAddress.
550    
551    ----------------------------------------------------------------------
552    Name: Matthias Blume (blume (at) tti - c (dot) org)
553    Date: 2004/03/04 16:35:00 CST
554    Tag: blume-20040304-intinf-fmt
555    Description:
556    
557    Fixed problem with IntInf.fmt (sign would show up on the right instead
558    of on the left for BIN, OCT, and HEX).
559    
560    ----------------------------------------------------------------------
561    Name: Matthias Blume (blume (at) tti - c (dot) org)
562    Date: 2004/03/04 11:25:00 CST
563    Tag: blume-20040304-symlinks
564    Description:
565    
566    Fixed problem with installer script (unix only) where bin/ml-yacc and
567    friends pointed (via symlinks) to absolute locations instead of just
568    .run-sml.  This was reported by Vesa A Norrman.
569    
570    ----------------------------------------------------------------------
571    Name: Matthias Blume (blume (at) tti - c (dot) org)
572    Date: 2004/02/13 14:50:00 CST
573    Tag: Release_110_45
574    Description:
575    
576    New working version (110.45). New bootfiles.
577    
578    ----------------------------------------------------------------------
579    Name: Matthias Blume (blume (at) tti - c (dot) org)
580    Date: 2004/01/26 15:15:15 CST
581    Tag: blume-20040126-toplevel
582    Description:
583    
584    Improved handling of exceptions at the interactive toplevel.
585    
586    ----------------------------------------------------------------------
587    Name: Matthias Blume (blume (at) tti - c (dot) org)
588    Date: 2004/01/26 11:25:00
589    Tag: blume-20040126-app
590    Description:
591    
592    Type of top-level "app" corrected.
593    Added code for setting vp_limitPtrMask to Win32-specific runtime.
594    
595    ----------------------------------------------------------------------
596    Name: Matthias Blume (blume (at) tti - c (dot) org)
597    Date: 2003/11/18 17:10 CST
598    Tag: blume-20031118-basis-fiddle
599    Description:
600    
601    - changed Timer interface to what might become the spec
602    - POSIX_FLAGS -> BIT_FLAGS according to spec
603    - some other minor discrepancies wrt. spec eliminated
604    
605    ----------------------------------------------------------------------
606    Name: Matthias Blume (blume (at) tti - c (dot) org)
607    Date: 2003/11/06 12:00:00 CST
608    Tag: Release_110_44
609    Description:
610    
611    New working version (110.44). New bootfiles.
612    
613    ----------------------------------------------------------------------
614    Name: Matthias Blume (blume (at) tti - c (dot) org)
615    Date: 2003/11/04 11:50:00 CST
616    Tag: blume-20031104-move-libraries
617    Description:
618    
619    Eliminated the "dont_move_libraries" directive in config/targets.
620    (The mechanism was broken and could not be fixed easily.  Moreover,
621    there does not seem to be any reason not to move all libraries into
622    lib during installation.  I originally implemented this directive as a
623    backward-compatibility feature when I first introduced the new CM.
624    Now that things have been stable for a long time and going back to the
625    old CM is not an option, there is no reason to keep it around.)
626    
627    ----------------------------------------------------------------------
628    Name: Matthias Blume (blume (at) tti - c (dot) org)
629    Date: 2003/11/03 16:00:00 CST
630    Tag: blume-20031103-installdir
631    Description:
632    
633    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
634    Richards for pointing out the problem and providing the solution.)
635    
636    ----------------------------------------------------------------------
637    Name: Matthias Blume (blume (at) tti - c (dot) org)
638    Date: 2003/10/01 17:05:00 CDT
639    Tag: blume-20031001-lal-mlrisc
640    Description:
641    
642    MLRISC bug fix from Lal.
643    
644    ----------------------------------------------------------------------
645    Name: Matthias Blume (blume (at) tti - c (dot) org)
646    Date: 2003/09/30 16:10:00 CDT
647    Tag: blume-20030930-primio-bat
648    Description:
649    
650    1. Added openVector, nullRd, and nullWr to PRIM_IO.
651    2. Improved .bat files (for Win32 port) to make things work under Win95.
652       (thanks to Aaron S. Hawley for this one)
653    
654    ----------------------------------------------------------------------
655    Name: Matthias Blume (blume (at) tti - c (dot) org)
656    Date: 2003/09/26 16:05:00 CDT
657    Tag: blume-20030926-wrappriv
658    Description:
659    
660    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
661    
662    ----------------------------------------------------------------------
663    Name: Matthias Blume (blume (at) tti - c (dot) org)
664    Date: 2003/09/26 15:00:00 CDT
665    Tag: blume-20030926-110_43_3
666    Description:
667    
668    - additional cleanup
669    - version number bump, NEW BOOTFILES
670    
671    ----------------------------------------------------------------------
672    Name: Matthias Blume (blume (at) tti - c (dot) org)
673    Date: 2003/09/26 12:00:00 CDT
674    Tag: blume-20030926-ppautoload
675    Description:
676    
677    I modified the read-eval-print loop so that the autoloader gets
678    invoked whenever the prettyprinter tries to look up a symbol that
679    is not currently defined in the toplevel environment but which
680    appears in CM's autoload registry.  As a result, we see far fewer of
681    those ?.Foo.Bar.xxx names in the prettyprinter's output.
682    
683    In addition to this I tried to clean up some pieces of the Basis
684    implementation (e.g., Socket, Word8Array) in order to prevent other
685    instances of these ?.Foo.Bar.xxx names from being printed.
686    
687    The mechanism that picks names for types still needs some work, though.
688    (Right now it seems that if there is a type A.t which is defined to
689    be B.u, but B is unavailable at toplevel, then A.t gets printed as
690    "?.B.u" although the perhaps more sensible solution would be to use
691    "A.t" in this case.  In other words, the prettyprinter should follow
692    a chain of DEFtycs not farther than there are corresponding toplevel
693    names in the current environment.)
694    
695    ----------------------------------------------------------------------
696    Name: Matthias Blume (blume (at) tti - c (dot) org)
697    Date: 2003/09/24 16:31:00 CDT
698    Tag: blume-20030924-installer
699    Description:
700    
701    Another installer tweak:  All the ML code for the installer is now
702    compiled during CMB.make and put into a little library called
703    $smlnj/installer.cm.  The installation then simply invokes
704    
705       sml -m $smlnj/installer.cm
706    
707    and everything happens automagically.
708    
709    Win32:  ML code senses value of environment variable SMLNJ_HOME.
710    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
711            and BINDIR.
712    
713    The new scheme guarantees that the ML code responsible for the installation
714    is in sync with the APIs of the main system.  Also, the installer is
715    somewhat faster because the installer script is precompiled.
716    
717    ----------------------------------------------------------------------
718    Name: Matthias Blume (blume (at) tti - c (dot) org)
719    Date: 2003/09/24 15:35:00 CDT
720    Tag: blume-20030924-synsock
721    Description:
722    
723    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
724    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
725    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
726    implementations of non-blocking operations from CML's Socket
727    structure.
728    
729    ----------------------------------------------------------------------
730    Name: Matthias Blume (blume (at) tti - c (dot) org)
731    Date: 2003/09/24 15:10:05 CDT
732    Tag: blume-20030924-sockets
733    Description:
734    
735    1. Fixed SOCKET API and implementation to match Basis spec.
736       This required changing the internal representation of sockets to one
737       that remembers (for each socket file descriptor) whether it is currently
738       blocking or non-blocking.  This state is maintained lazily (i.e., a system
739       call is made only if the state actually needs to change).
740    
741    2. OS-specific details of sockets were moved into separate files, thus
742       making it possible to unify the bulk of the socket implementations
743       between Unix and Win32.
744    
745    3. CML's socket API changed accordingly.
746       (Note that we need to remove non-blocking functions from this API
747       since they are redundant in the case of CML!)
748    
749    4. CML's socket implementation now makes use of non-blocking functions
750       provided by Basis, thus removing all OS-dependent code from this part
751       of CML.
752    
753    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
754    
755    ----------------------------------------------------------------------
756    Name: Matthias Blume (blume (at) tti - c (dot) org)
757    Date: 2003/09/22 12:10:00 CDT
758    Tag: blume-20030922-110_43_2
759    Description:
760    
761    Made a new interim version and bootfiles for developer's bootstrapping
762    convenience.
763    
764       110.43.2 -- NEW BOOTFILES
765    
766    ----------------------------------------------------------------------
767    Name: Matthias Blume (blume (at) tti - c (dot) org)
768    Date: 2003/09/19 15:55:00 CDT
769    Tag: blume-20030919-cmdir
770    Description:
771    
772    1. new-install.sh -> install.sh
773    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
774    3. tweaked installer so that another name instead of .cm can be chosen
775       at install time (by setting the CM_DIR_ARC environment variable
776       during installation); once installation is complete, the name is
777       fixed
778    
779    ----------------------------------------------------------------------
780    Name: Matthias Blume (blume (at) tti - c (dot) org)
781    Date: 2003/09/18 16:00:00 CDT
782    Tag: blume-20030918-110_43_1
783    Description:
784    
785    Made a new interim version and bootfiles for developer's bootstrapping
786    convenience.
787    
788       110.43.1 -- NEW BOOTFILES
789    
790    ----------------------------------------------------------------------
791    Name: Matthias Blume (blume (at) tti - c (dot) org)
792    Date: 2003/09/18 15:20:00 CDT
793    Tag: blume-20030918-misc
794    Description:
795    
796    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
797       this seems to be controversial at the moment) and used those in
798       Posix.ProcEnv.times.
799    
800    2. Added Time.{from,to}Nanoseconds to Time.
801    
802    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
803       For example, fromLargeInt never needs to look at more than 3 "big
804       digits" to get its 53 bits of precision.
805    
806    ----------------------------------------------------------------------
807    Name: Matthias Blume (blume (at) tti - c (dot) org)
808    Date: 2003/09/17 16:30:00 CDT
809    Tag: blume-20030917-real32-slices
810    Description:
811    
812    Added an entry to the primitive environment
813    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
814    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
815    
816    Removed some of the "magic" constants in real64.sml and replaced them
817    with code that generates these values from their corresponding
818    integer counterparts.
819    
820    Made all(?) the slice-related changes to the Basis and made everything
821    compile again...
822    
823    ----------------------------------------------------------------------
824    Name: Matthias Blume (blume (at) tti - c (dot) org)
825    Date: 2003/09/15 17:45:00 CDT
826    Tag: blume-20030915-rbase
827    Description:
828    
829    Fixed bug in Real.fromLargeInt.
830    
831    ----------------------------------------------------------------------
832    Name: Matthias Blume (blume (at) tti - c (dot) org)
833    Date: 2003/09/13 18:11:00 CDT
834    Tag: blume-20030913-libinstall
835    Description:
836    
837    Minor bugfix in config/libinstall (set anchor with path to
838    standalone tool after installing it, otherwise libraries that
839    need ml-lex or ml-yacc won't compile the first time the installer
840    runs).
841    
842    ----------------------------------------------------------------------
843    Name: Matthias Blume (blume (at) tti - c (dot) org)
844    Date: 2003/09/12 11:45:00 CDT
845    Tag: blume-20030912-various
846    Description:
847    
848     - fixed bug in Real.toLargeInt
849     - fixed bug in Posix.ProcEnv.times
850     - changed inputLine functions to return an option
851     - minor installer improvements / bugfixes
852     - changed default @SMLalloc parameter for x86/celeron to 64k
853    
854    ----------------------------------------------------------------------
855    Name: Matthias Blume (blume (at) tti - c (dot) org)
856    Date: 2003/09/09 22:00:00 CDT
857    Tag: Release_110_43
858    Description:
859    
860        New working release 110.43.  New bootfiles.
861    
862    ----------------------------------------------------------------------
863    Name: Matthias Blume (blume (at) tti - c (dot) org)
864    Date: 2003/09/09 19:20:00 CDT
865    Tag: blume-20030909-installer
866    Description:
867    
868    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
869    Modified config/install.bat to take advantage of it.  Also modified
870    config/install.sh (and called it config/new-install.sh) to take advantage
871    of it on Unix systems.  (The SML code is (supposed to be) platform-
872    independent.)
873    
874    The installer can now install everything under Win32
875    as well as under *nix as long as it compiles.
876    
877    Other changes:
878    
879      - made CML compile again under Win32
880      - made eXene compile under Win32 (by providing a fake structure UnixSock
881        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
882      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
883        same as type int;  under Win32 it isn't
884      - fixed some slice-related problems in the win32-specific parts of CML
885      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
886        (under Win32, the volume name is case-insensitive, and the
887        OS.Path code compares volume names for equality)
888    
889    ----------------------------------------------------------------------
890    Name: Matthias Blume (blume (at) tti - c (dot) org)
891    Date: 2003/09/08 11:55:00 CDT
892    Tag: blume-20030908-fullpath
893    Description:
894    
895    Made Win32 version of OS.FileSys.fullPath return current directory
896    when given an empty string.  This is what the spec says, and incidentally,
897    CM depends on it.  (CM otherwise goes into an infinite loop in certain
898    cases when presented with the name of a non-existing .cm file.)
899    
900    ----------------------------------------------------------------------
901    Name: Matthias Blume (blume (at) tti - c (dot) org)
902    Date: 2003/09/04 16:30:00 CDT
903    Tag: blume-20030905-slices-etc
904    Description:
905    
906      1. Changed interface to vectors and arrays in Basis to match
907         (draft) Basis spec.
908      2. Added signatures and implementations of slices according to
909         Basis spec.
910      3. Edited source code throughout the system to make it compile again
911         under 1. and 2.  (In some cases code had to be added to have it
912         match the new signatures.)
913      4. MLRISC should be backward-compatible: the copies of the originals
914         of files that needed to change under 3. were retained, the .cm files
915         check the compiler version number and use old versions when
916         appropriate.
917      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
918         dirstream -> string option (in accordance with Basis spec).
919      6. When generating code that counts lines, ml-lex used function
920         CharVector.foldli, taking advantage of its old interface.
921         This has been replaced with the corresponding code from
922         CharVectorSlice.  (html-lex must be re-lexed!)
923      7. BitArray in smlnj-lib/Util has been extended/modified to match the
924         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
925      8. Removed temporary additions (fromInternal, toInternal) from the
926         (now obsolete) IntInf in smlnj-lib/Util.
927      9. Cleaned up structure Byte.
928     10. Added localOffset, scan, and fromString to Date (according to spec).
929         Cleaned/corrected implementation of Date.
930         (Still need to check for correctness; implement better canonicalizeDate.)
931     11. Added "scan" to signature IEEE_REAL.
932     12. Some improvements to IntInf [in particular: efficiency-hack for
933         mod and rem when second operand is 2 (for parity checks).]
934     13. Changed representation of type Time.time, using a single IntInf.int
935         value counting microseconds.  This considerably simplified the
936         implementation of structure Time.  We now support negative time
937         values; scan and fromString handle signs.
938     14. Functor PrimIO now takes two additional arguments (VectorSlice and
939         ArraySlice).
940    
941    ----------------------------------------------------------------------
942    Name: Matthias Blume (blume (at) tti - c (dot) org)
943    Date: 2003/08/28 17:00:00 CDT
944    Tag: blume-20030828-intinf
945    Description:
946    
947    This is a major update which comes with a version number bump
948    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
949    and an implementation of IntInf in the Basis.
950    
951    There are a fairly large number of related changes and updates throughout
952    the system:
953    
954    Basis:
955            - Implemented IntInf.
956            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
957            - Added some missing Real64 operations, most notably Real.toLargeInt.
958            - Added FixedInt as a synonym for Int32.
959    
960    compiler:
961            * Added support for a built-in intinf type.
962              - literals
963              - pattern matching
964              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
965              - overloading on literals and operations
966    
967            This required adding a primitive type intinf, some additional
968            primops, and implementations for several non-trivial intinf
969            operations in Core.  (The intinf type is completely abstract
970            to the compiler; all operations get delegated back to the Core.)
971    
972            * Intinf equality is handled by polyequal.  However, the compiler
973            does not print its usual warning in this case (since polyequal
974            is the right thing to do there).
975    
976            * Improved the organization of structure InlineT.
977    
978            * A word about conversion primops:
979            If conversions involving intinf do not cancel out during
980            CPS contract, then the compiler must insert calls to Core functions.
981            Since all core access must be resolved already during the FLINT
982            translate phase, it would be too late a the time of CPS contract
983            to add new Core calls.  For this reason, conversion primops
984            for intinf carry two arguments:  1. the numeric argument that
985            they are supposed to convert, and 2. the Core function that
986            can help with this conversion if necessary.  If CPS contract
987            eliminates a primop, then the associated Core function becomes
988            dead and goes away.  Intinf conversion primops that do not get
989            eliminated by CPS contract get rewritten into calls of their
990            core functions by a separate, new phase.
991    
992    interactive system:
993            - Control.Print.intinfDepth controls max length of intinf constants
994            being printed. (Analogous to Control.Print.stringDepth.)
995            - Cleanup in printutil and pputil: got rid of unused stuff and
996            duplicates; replaced some of the code with code that makes better
997            use of library functionality.
998    
999    CM:
1000            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
1001            are no longer silent.
1002    
1003    CKIT:
1004            Fixed mismatched uses of Int32 and LargeInt.  I always decided
1005            in favor of LargeInt -- which is now the same as IntInf.
1006            CKIT-knowledgable people should check whether this is what's
1007            intended and otherwise change things back to using Int32 or
1008            FixedInt.
1009    
1010    Throughout the code:
1011            Started using IntInf.int literals and built-in operations
1012            (e.g., comparison with 0) where this seems appropriate.
1013    
1014    
1015    ----------------------------------------------------------------------
1016    Name: Dave MacQueen (dbm@cs.uchicago.edu)
1017    Date: 2003/08/13 11:36:00 CDT
1018    Tag: dbm-20030813-mcz-merge1
1019    Description:
1020    
1021    Merging changes from the mcz-branch development branch into trunk.
1022    These changes involve replacement of the emulated old prettyprinter
1023    interface with direct use of the SML/NJ Lib PP library, and fixing
1024    of a couple of bugs (895, 1186) relating to error messages.  A new
1025    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
1026    has been added.
1027    
1028    ----------------------------------------------------------------------
1029    Name: Matthias Blume (blume (at) tti - c (dot) org)
1030    Date: 2003/08/11 15:45:00 CDT
1031    Tag: blume-20030811-windows
1032    Description:
1033    
1034    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
1035    
1036        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
1037    
1038    This patch restores SML/NJ's ability to run under win32.  There are a
1039    number of changes, including fixes for several bugs that had gone
1040    unnoticed until now:
1041    
1042      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
1043        trying to run the win32 version from within cygwin.)
1044    
1045      - There are a number of simple .bat scripts that substitute for their
1046        corresponding Unix shell-scripts.  (See below.)
1047    
1048      - The internals of ml-build have been modified slightly.  The main
1049        difference is that instead of calling ".link-sml" (or link-sml.bat)
1050        using OS.Process.system, the ML process delegates this task back
1051        to the script.  Otherwise problems arise in mixed environments such
1052        as Cygwin where scripts look and work like Unix scripts, but
1053        where OS.Process.system cannot run them.
1054    
1055      - In CM, the srcpath pickler used native pathname syntax -- which
1056        is incorrect in the case of cross-compilation.  The new pickle format
1057        is independent of platform-specific naming conventions.
1058    
1059      - Path configuration files (such as lib/pathconfig) can now choose
1060        between native and standard syntax.  Placing a line of the form
1061    
1062            standard!
1063    
1064        into the file causes all subsequent paths to be interpreted using
1065        CM standard pathname syntax (= Unix conventions); a line
1066    
1067            native!
1068    
1069        switches back to native style.  This was needed so that
1070        path config files can be written portably, see src/system/pathconfig.
1071    
1072      - Runtime system:
1073    
1074          - win32-filesys.c:  get_file_time and set_file_time now
1075            access modification time, not creation time.
1076    
1077          - I/O code made aware of new array representation.
1078    
1079          - Bug fixes in X86.prim.masm.
1080    
1081       - src/system/makeml made aware of win32. (For use under cygwin
1082            and other Unix-environments for windows.)
1083    
1084       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
1085         which caused BinIO.inputAll to fail consistently.
1086    
1087    .bat scripts:
1088    
1089       Windows .bat scripts assume that SMLNJ_HOME is defined.
1090    
1091       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
1092         applications (sml, ml-yacc, ml-lex).
1093       - ml-build.bat: analogous to ml-build.
1094       - config\install.bat:  Analogous to config/install.sh.  This requires
1095         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
1096         (nmake etc. must be on the path, and vcvars32 must have been run.)
1097         Moreover, sources for ml-lex and ml-yacc need to exist under src,
1098         and the bootfile hierarchy must have been unpacked under
1099         sml.boot.x86-win32.
1100         The script is very primitive and does a poor job at error checking.
1101         It only installs the base system, ml-lex, and ml-yacc.  No other
1102         libraries are being installed (i.e., you get only those that
1103         are part of the compiler.)
1104       - link-sml.bat:  analogous to .link-sml, but not currently used
1105    
1106    Unrelated bug fixes:
1107    
1108      - ml-nlffigen now exports structures ST_* corresponding to incomplete
1109        types.
1110      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
1111        otherwise.)
1112    
1113    ----------------------------------------------------------------------
1114    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
1115    Date: 2003/06/17
1116    Tag: macqueen-20030617-bug895
1117    Description:
1118    
1119    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
1120    Tag will be used for new development branch (mcz-branch) for
1121    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
1122    
1123    ----------------------------------------------------------------------
1124    Name: Matthias Blume (blume (at) tti - c (dot) org)
1125    Date: 2003/05/27 16:55:00 CDT
1126    Tag: blume-20030527-polyeq
1127    Description:
1128    
1129    Tried to eliminated most cases of polymorphic equality.
1130    
1131    ----------------------------------------------------------------------
1132    Name: Matthias Blume (blume (at) tti - c (dot) org)
1133    Date: 2003/05/21 17:45:00 CDT
1134    Tag: blume-20030517-complete
1135    Description:
1136    
1137    Two changes:
1138    
1139      1. Added a flag for controlling whether non-exhaustive bindings will
1140         be treated as errors (default is false).
1141      2. Cleaned up the *entire* source tree so that CMB.make goes through
1142         without a single non-exhaustive match- or bind warning.
1143    
1144    ----------------------------------------------------------------------
1145    Name: Matthias Blume (blume (at) tti - c (dot) org)
1146    Date: 2003/05/17 10:20:00 CDT
1147    Tag: blume-20030517-absyn
1148    Description:
1149    
1150    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
1151    
1152       This mainly affects the quality of error messages.  However, some
1153       of the code is now more straightforward than before. (Treatment of
1154       the above four constructs in translate.sml is much simpler than
1155       the "macro-expansion" that was going on before.  Plus, the mach-
1156       compiler no longer gets invoked just to be able to compile an
1157       if-expression.)
1158    
1159    2. The ErrorMsg.Error exception is now caught and absorbed by the
1160       interactive loop.
1161    
1162    ----------------------------------------------------------------------
1163    Name: Allen Leung
1164    Date: 2003/05/16 13:05:00 CDT
1165    Tag: leunga-20030516-cygwin-runtime
1166    Description:
1167    
1168        Ported the runtime system to cygwin, which uses the unix
1169    x86-unix bin files.  Missing/buggy features:
1170    
1171       o getnetbyname, getnetbyaddr: these functions seem to be missing in
1172         the Cygwin library.
1173       o Ctrl-C handling may be flaky.
1174       o Windows system calls and Windows I/O are not supported.
1175    
1176       A new set of binfiles is located at:
1177    
1178         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
1179    
1180       This is only needed for bootstrapping the cygwin version of smlnj.
1181       Other x86 versions can use the existing binfiles.
1182    
1183    ----------------------------------------------------------------------
1184    Name: Matthias Blume
1185    Date: 2003/04/08 15:42:00 CDT
1186    Tag: blume-20030408-listpair
1187    Description:
1188    
1189    1. Added a target 'mlrisc' to installer.
1190    
1191    2. Added missing elements to structure ListPair.
1192    
1193    ----------------------------------------------------------------------
1194    Name: Allen Leung
1195    Date: 2003/01/07 10:40:00 EST
1196    Tag: leunga-20030107-int-rem
1197    Description:
1198    
1199    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
1200    The arguments to the SUBL instruction were swapped.
1201    
1202    ----------------------------------------------------------------------
1203    Name: Matthias Blume
1204    Date: 2002/12/12 16:25:00 EST
1205    Tag: blume-20021212-risc-ra
1206    Description:
1207    
1208    Fixed a serious bug in the rewrite code for FP spilling/reloading that
1209    sent the RA into an infinite loop when floating point registers get
1210    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
1211    110.37 and 110.38.)
1212    There was another set of potential problems related to the handling of
1213    MLRISC annotations (but those did not yet cause real problems, apparently).
1214    
1215    ----------------------------------------------------------------------
1216    Name: Matthias Blume
1217    Date: 2002/12/06 22:40:00 EST
1218    Tag: blume-20021206-cm-fileid
1219    Description:
1220    
1221    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
1222    This fixes the problem of CM getting confused by files that suddenly
1223    change their identity (e.g., by getting unlinked and recreated by some
1224    text editor such as vi).  There might be a better/cheaper/cleaner way
1225    of doing this, but for now this will have to do.
1226    
1227    ----------------------------------------------------------------------
1228    Name: Matthias Blume
1229    Date: 2002/10/28 09:50:00 EST
1230    Tag: blume-20021028-typecheck
1231    Description:
1232    
1233    Exported structure Typecheck from $smlnj/viscomp/core.cm.
1234    
1235    ----------------------------------------------------------------------
1236    Name: Matthias Blume
1237    Date: 2002/10/17 09:10:00 EDT
1238    Tag: Release_110_42
1239    Description:
1240    
1241    In good old tradition, there has been a slight hiccup so that we have
1242    to patch 110.42 after the fact.   The old release tag has been replaced
1243    (see below).
1244    
1245    The change solves a problem with two competing approaches the
1246    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
1247    each other's way.
1248    
1249    This change only affects the runtime system code and the installer script.
1250    (No new bootfiles.)
1251    
1252    ----------------------------------------------------------------------
1253    Name: Matthias Blume
1254    Date: 2002/10/16 12:00:00 EDT
1255    Tag: Release_110_42_removed
1256    Description:
1257    
1258    New working release.  New bootfiles.
1259    
1260    ----------------------------------------------------------------------
1261    Name: Matthias Blume
1262    Date: 2002/10/10 13:10:00 EDT
1263    Tag: blume-20021010-ppc-divs
1264    Description:
1265    
1266    The mltree operator DIVS must be implemented with an overflow check on
1267    the PPC because the hardware indicates divide-by-zero using "overflow" as
1268    well.
1269    
1270    ----------------------------------------------------------------------
1271    Name: Matthias Blume
1272    Date: 2002/07/23 11:45:00
1273    Tag: blume-20020723-smlnj-home
1274    Description:
1275    
1276    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
1277    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
1278    CM_PATHCONFIG is also set), the path configuration file is assumed
1279    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
1280    the entire tree to some other place and everything will "just work".
1281    
1282    (Companion commands such as ml-build and ml-makedepend also sense this
1283    variable.)
1284    
1285    ----------------------------------------------------------------------
1286    Name: Matthias Blume
1287    Date: 2002/07/12 21:19:00 EDT
1288    Tag: blume-20020712-liveness
1289    Description:
1290    
1291    Exported two useful "step" functions from liveness module (MLRISC).
1292    
1293    ----------------------------------------------------------------------
1294    Name: Matthias Blume
1295    Date: 2002/07/05 16:00 EDT
1296    Tag: Release_110_41
1297    Description:
1298    
1299    New working release.  New bootfiles.
1300    
1301    ----------------------------------------------------------------------
1302    Name: Matthias Blume
1303    Date: 2002/07/05 10:25:00 EDT
1304    Tag: blume-20020705-btimp
1305    Description:
1306    
1307    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
1308    other clients can set up backtracing support.
1309    
1310    ----------------------------------------------------------------------
1311    Name: Matthias Blume
1312    Date: 2002/06/25 17:23:00 EDT
1313    Tag: blume-20020625-fpmax
1314    Description:
1315    
1316    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
1317    case.  (The sense of the isNaN test was reversed -- which made min and
1318    max always return their first argument.)
1319    
1320    ----------------------------------------------------------------------
1321    Name: Matthias Blume
1322    Date: 2002/06/11
1323    Tag: blume-20020611-unixpath
1324    Description:
1325    
1326    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
1327    
1328    ----------------------------------------------------------------------
1329    Name: Matthias Blume
1330    Date: 2002/06/10 16:35:00 EDT
1331    Tag: blume-20020610-ieeereal
1332    Description:
1333    
1334    I back-ported my implementation of IEEEReal.fromString from the
1335    idlbasis-devel branch so that we can test it.
1336    
1337    Another small change is that ppDec tries to give more information
1338    than just "<sig>" in the case of functors.  However, this code is
1339    broken in some mysterious way if the functor's body's signature
1340    has not been declared by ascription but gets inferred from the
1341    implementation.  This needs fixing...
1342    
1343    ----------------------------------------------------------------------
1344    Name: Matthias Blume
1345    Date: 2002/05/31
1346    Tag: blume-20020531-btrace-mode
1347    Description:
1348    
1349    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
1350    the wayside when I switched over to using Controls everywhere.)
1351    
1352    ----------------------------------------------------------------------
1353    Name: Lal George
1354    Date: 2002/05/23 12:21:40 EDT
1355    Tag: george-20020523-visual-labels
1356    Description:
1357    
1358    Labels are now displayed in the graphical output to make
1359    the fall-through and target blocks obvious.
1360    
1361    ----------------------------------------------------------------------
1362    Name: Matthias Blume
1363    Date: 2002/05/22 11:03:00 EDT
1364    Tag: blume-20020522-shrink
1365    Description:
1366    
1367    John tweaked yesterday's fix for 1131 to handle an out-of-memory
1368    situation that comes up when allocating huge arrays.
1369    
1370    ----------------------------------------------------------------------
1371    Name: Matthias Blume
1372    Date: 2002/05/21 16:00:00 EDT
1373    Tag: Release_110_40
1374    Description:
1375    
1376    New working release (110.40).  New bootfiles.
1377    
1378    [Also: John Reppy fixed GC bug 1131.]
1379    
1380    ----------------------------------------------------------------------
1381    Name: Matthias Blume
1382    Date: 2002/05/21 12:35:00 EDT
1383    Tag: blume-20020521-cmdoc
1384    Description:
1385    
1386    CM documentation update.
1387    
1388    ----------------------------------------------------------------------
1389    Name: Matthias Blume
1390    Date: 2002/05/21 10:55:00 EDT
1391    Tag: blume-20020521-misc
1392    Description:
1393    
1394    - John tweaked runtime to be silent on heap export (except when
1395      GC messages are on).
1396    - I added a few more things (cross-compiling versions of CMB) to
1397      config/preloads (as suggestions).
1398    
1399    ----------------------------------------------------------------------
1400    Name: Matthias Blume
1401    Date: 2002/05/20 22:25:00 EDT
1402    Tag: blume-20020520-controls
1403    Description:
1404    
1405    - Added ControlUtil structure to control-lib.cm.
1406    - Use it throughout.
1407    - Used Controls facility to define MLRISC controls (as opposed to
1408      registering MLRISC control ref cells with Controls after the fact)
1409    - Fixed messed-up controls priorities.
1410    
1411    * Removed again all the stuff from config/preloads that one wouldn't
1412      be able to preload at the time the initial heap image is built.
1413      (Many libraries, e.g., CML, do not exist yet at this time.  The
1414       only libraries that can be preloaded via config/preloads are those
1415       that come bundled with the bootfiles.)
1416    
1417    ----------------------------------------------------------------------
1418    Name: Matthias Blume
1419    Date: 2002/05/20 10:59:00 EDT
1420    Tag: blume-20020520-preloads
1421    Description:
1422    
1423    Added a lot of commented-out suggestions for things to be included
1424    in config/preloads.
1425    
1426    ----------------------------------------------------------------------
1427    Name: Allen Leung
1428    Date: 2002/05/18 14:20:00 EDT
1429    Tag: leunga-20020518-mdl
1430    Description:
1431    
1432    o Made the mdl tool stuff compile and run again.
1433    o I've disabled all the stuff that depends on RTL specifications; they
1434      are all badly broken anyway.
1435    
1436    ----------------------------------------------------------------------
1437    Name: Matthias Blume
1438    Date: 2002/05/17 16:49:00 EDT
1439    Tag: blume-20020517-controls
1440    Description:
1441    
1442    0. John Reppy made several modifications to the SML/NJ library.
1443       In particular, there is a shiny new controls-lib.cm.
1444    
1445    1. Pushed new controls interface through compiler so that everything
1446       compiles again.
1447    
1448    2. Added FormatComb and FORMAT_COMB to the CML version of the
1449       SML/NJ library (so that CML compiles again).
1450    
1451    3. Modified init scripts because XXX_DEFAULT environment variables
1452       are no longer with us.  (Boot-time initialization is now done
1453       using the same environment variables that are also used for
1454       startup-time initialization of controls.)
1455    
1456    ----------------------------------------------------------------------
1457    Name: Lal George
1458    Date: 2002/05/15 09:20:10 EDT
1459    Tag: george-20020515-pseudo-op-decls
1460    Description:
1461    
1462            All pseudo-ops emitted before the first segment declaration
1463    such as TEXT, DATA, and BSS directives are assumed to be global
1464    declarations and are emitted first in the assembly file. This is
1465    useful in a number of situations where one has pseudo-ops that are not
1466    specific to any segment, and also works around the constraint that one
1467    cannot have client pseudo-ops in the TEXT segment.
1468    
1469            Because no segment is associated with these declarations it is
1470    an error to allocate any space or objects before the first segment
1471    directive and an exception will be raised. However, we cannot make
1472    this check for client pseudo-ops.
1473    
1474            These top level declarations are a field in the CFG graph_info.
1475    In theory you can continue to add to this field after the CFG has been
1476    built -- provided you know what you are doing;-)
1477    
1478    ----------------------------------------------------------------------
1479    Name: Matthias Blume
1480    Date: 2002/05/13 16:40:00 EDT
1481    Tag: blume-20020513-pp-etc
1482    Description:
1483    
1484    A few minor bugfixes:
1485    
1486      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
1487        (Bogus printouts for redefined bindings still occur.  Compiler
1488        bug should no longer occur now.  We need to redo the prettyprinter
1489        from scratch.)
1490    
1491      - CM pathname printer now also adds escape sequences for ( and )
1492    
1493      - commend and docu fixes for ml-nlffi
1494    
1495    ----------------------------------------------------------------------
1496    Name: Matthias Blume
1497    Date: 2002/05/10 16:40:00 EDT
1498    Tag: blume-20020510-erg-textio
1499    Description:
1500    
1501    Applied the following bugfix provided by Emden Gansner:
1502    
1503        Output is corrupted when outputSubstr is used rather than output.
1504    
1505        The problem occurs when a substring
1506    
1507            ss = (s, dataStart, dataLen)
1508    
1509        where dataStart > 0, fills a stream buffer with avail bytes left.
1510        avail bytes of s, starting at index dataStart, are copied into the
1511        buffer, the buffer is flushed, and then the remaining dataLen-avail
1512        bytes of ss are copied into the beginning of the buffer. Instead of
1513        starting this copy at index dataStart+avail in s, the current code
1514        starts the copy at index avail.
1515    
1516        Fix:
1517        In text-io-fn.sml, change line 695 from
1518             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
1519        to
1520             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
1521    
1522    ----------------------------------------------------------------------
1523    Name: Matthias Blume
1524    Date: 2002/04/12 13:55:00 EDT
1525    Tag: blume-20020412-assyntax
1526    Description:
1527    
1528    1. Grabbed newer assyntax.h from the XFree86 project.
1529    2. Fiddled with how to compile X86.prim.asm without warnings.
1530    3. (Very) Minor cleanup in CM.
1531    
1532    ----------------------------------------------------------------------
1533    Name: Matthias Blume
1534    Date: 2002/04/01 (no joke!) 17:07:00 EST
1535    Tag: blume-20020401-x86div
1536    Description:
1537    
1538    Added full support for div/mod/rem/quot on the x86, using the machine
1539    instruction's two results (without clumsily recomputing the remainder)
1540    directly where appropriate.
1541    
1542    Some more extensive power-of-two support was added to the x86 instruction
1543    selector (avoiding expensive divs, mods, and muls where they can be
1544    replaced with cheaper shifts and masks).  However, this sort of thing
1545    ought to be done earlier, e.g., within the CPS optimizer so that
1546    all architectures benefit from it.
1547    
1548    The compiler compiles to a fixed point, but changes might be somewhat
1549    fragile nevertheless.  Please, report any strange things that you might
1550    see wrt. div/mod/quot/rem...
1551    
1552    ----------------------------------------------------------------------
1553    Name: Matthias Blume
1554    Date: 2002/03/29 17:22:00
1555    Tag: blume-20020329-div
1556    Description:
1557    
1558    Fixed my broken div/mod logic.  Unfortunately, this means that the
1559    inline code for div/mod now has one more comparison than before.
1560    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
1561    The problem was with quotient = 0, because that alone does not tell
1562    us which way the rounding went.  One then has to look at whether
1563    remainder and divisor have the same sign...  :(
1564    
1565    Anyway, I replaced the bootfiles with fresh ones...
1566    
1567    ----------------------------------------------------------------------
1568    Name: Matthias Blume
1569    Date: 2002/03/29 14:10:00 EST
1570    Tag: blume-20020329-inlprims
1571    Description:
1572    
1573    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
1574    
1575    Primops have changed. This means that the bin/boot-file formats have
1576    changed as well.
1577    
1578    To make sure that there is no confusion, I made a new version.
1579    
1580    
1581    CHANGES:
1582    
1583    * removed REMT from mltree (remainder should never overflow).
1584    
1585    * added primops to deal with divisions of all flavors to the frontend
1586    
1587    * handled these primops all the way through so they map to their respective
1588      MLRISC support
1589    
1590    * used these primops in the implementation of Int, Int32, Word, Word32
1591    
1592    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
1593    
1594    * parameterized INLMIN, INLMAX, and INLABS by a numkind
1595    
1596    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
1597      floating point
1598    
1599    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
1600      and Real (but Real.abs maps to a separate floating-point-only primop)
1601    
1602    
1603    TODO items:
1604    
1605    * Hacked Alpha32 instruction selection, disabling the selection of REMx
1606      instructions because the machine instruction encoder cannot handle
1607      them.  (Hppa, PPC, and Sparc instruction selection did not handle
1608      REM in the first place, and REM is supported by the x86 machine coder.)
1609    
1610    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
1611      selection phase.  (The two can be streamlined because the hardware
1612      delivers both quotient and remainder at the same time anyway.)
1613    
1614    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
1615      (Currently the behavior is inconsistent both across architectures and
1616      wrt. the draft Basis spec.)
1617    
1618    * Word8 should eventually be handled natively, too.
1619    
1620    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
1621      as if there currently is no execution path that could trigger it in
1622      SML/NJ.  (The assumptions underlying functions arith and promotable do not
1623      hold for things like multiplication and division.)
1624    
1625    ----------------------------------------------------------------------
1626    Name: Matthias Blume
1627    Date: 2002/03/27 16:27:00 EST
1628    Tag: blume-20020327-mlrisc-divisions
1629    Description:
1630    
1631    Added support for all four division operations (ML's div, mod, quot,
1632    and rem) to MLRISC.  In the course of doing so, I also rationalized
1633    the naming (no more annoying switch-around of DIV and QUOT), by
1634    parameterizing the operation by div_rounding_mode (which can be either
1635    DIV_TO_ZERO or DIV_TO_NEGINF).
1636    
1637    The generic MLTreeGen functor takes care of compiling all four
1638    operations down to only round-to-zero div.
1639    
1640    Missing pieces:
1641    
1642      * Doing something smarter than relying on MLTreeGen on architectures
1643        like, e.g., the x86 where hardware division delivers both quotient and
1644        remainder at the same time.  With this, the implementation of the
1645        round-to-neginf operations could be further streamlined.
1646    
1647      * Remove inlining support for div/mod/rem from the frontend and replace it
1648        with primops that get carried through to the backend.  Do this for all
1649        int and word types.
1650    
1651    ----------------------------------------------------------------------
1652    Name: Matthias Blume
1653    Date: 2002/03/25 17:25:00 EST
1654    Tag: blume-20020325-divmod
1655    Description:
1656    
1657    I improved (hopefully without breaking them) the implementation of Int.div,
1658    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
1659    advantage of the following observations:
1660    
1661      Let  q = x quot y      r = x rem y
1662           d = x div  y      m = x mod y
1663    
1664    where "quot" is the round-to-zero version of integer division that
1665    hardware usually provides.  Then we have:
1666    
1667         r = x - q * y        where neither the * nor the - will overflow
1668         d = if q >= 0 orelse x = q * y then q else q - 1
1669                              where neither the * nor the - will overflow
1670         m = if q >= 0 orelse r = 0 then r else r + y
1671                              where the + will not overflow
1672    
1673    This results in substantial simplification of the generated code.
1674    The following table shows the number of CFG nodes and edges generated
1675    for
1676            fun f (x, y) = x OPER y
1677            (* with OPER \in div, mod, quot, rem *)
1678    
1679    
1680        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
1681        --------------------------------------------------------
1682         div |         24 |         39 |         12 |         16
1683         mod |         41 |         71 |         12 |         16
1684        quot |          8 |         10 |          8 |         10
1685         rem |         10 |         14 |          8 |         10
1686    
1687    
1688    ----------------------------------------------------------------------
1689    Name: Matthias Blume
1690    Date: 2002/03/25 22:06:00 EST
1691    Tag: blume-20020325-cprotobug
1692    Description:
1693    
1694    Fixed a bug in cproto (c prototype decoder).
1695    
1696    ----------------------------------------------------------------------
1697    Name: Matthias Blume
1698    Date: 2002/03/25 16:00:00 EST
1699    Tag: blume-20020325-raw-primops
1700    Description:
1701    
1702    I did some cleanup to Allen's new primop code and
1703    replaced yesterday's bootfiles with new ones.
1704    (But they are stored in the same place.)
1705    
1706    ----------------------------------------------------------------------
1707    Name: Matthias Blume
1708    Date: 2002/03/24 22:40:00 EST
1709    Tag: blume-20020324-bootfiles
1710    Description:
1711    
1712    Made the bootfiles that Allen asked for.
1713    
1714    ----------------------------------------------------------------------
1715    Name: Allen Leung
1716    Date: 2002/03/23 15:50:00 EST
1717    Tag: leunga-20020323-flint-cps-rcc-primops
1718    Description:
1719    
1720      1. Changes to FLINT primops:
1721    
1722        (* make a call to a C-function;
1723         * The primop carries C function prototype information and specifies
1724         * which of its (ML-) arguments are floating point. C prototype
1725         * information is for use by the backend, ML information is for
1726         * use by the CPS converter. *)
1727      | RAW_CCALL of { c_proto: CTypes.c_proto,
1728                       ml_args: ccall_type list,
1729                       ml_res_opt: ccall_type option,
1730                       reentrant : bool
1731                     } option
1732       (* Allocate uninitialized storage on the heap.
1733        * The record is meant to hold short-lived C objects, i.e., they
1734        * are not ML pointers.  With the tag, the representation is
1735        * the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8)
1736        *)
1737      | RAW_RECORD of {tag:bool,sz:int}
1738      and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR
1739    
1740      2.  These CPS primops are now overloaded:
1741    
1742           rawload of {kind:numkind}
1743           rawstore of {kind:numkind}
1744    
1745          The one argument form is:
1746    
1747             rawload {kind} address
1748    
1749          The two argument form is:
1750    
1751             rawload {kind} [ml object, byte-offset]
1752    
1753      3. RAW_CCALL/RCC now takes two extra arguments:
1754    
1755         a. The first is whether the C call is reentrant, i.e., whether
1756            ML state should be saved and restored.
1757         b. The second argument is a string argument specifying the name of
1758            library and the C function.
1759    
1760         These things are currently not handled in the code generator, yet.
1761    
1762      4. In CProto,
1763    
1764         An encoding type of "bool" means "ml object" and is mapped into
1765         C prototype of PTR.  Note that "bool" is different than "string",
1766         even though "string" is also mapped into PTR, because "bool"
1767         is assigned an CPS type of BOGt, while "string" is assigned INT32t.
1768    
1769      5. Pickler/unpicker
1770    
1771         Changed to handle RAW_RECORD and newest RAW_CCALL
1772    
1773      6. MLRiscGen,
1774    
1775         1. Changed to handle the new rawload/rawstore/rawrecord operators.
1776         2. Code for handling C Calls has been moved to a new module CPSCCalls,
1777            in the file CodeGen/cpscompile/cps-c-calls.sml
1778    
1779      7. Added the conditional move operator
1780    
1781             condmove of branch
1782    
1783         to cps.  Generation of this is still buggy so it is currently
1784         disabled.
1785    
1786    ----------------------------------------------------------------------
1787  Name: Lal George  Name: Lal George
1788  Date: 2002/03/22 14:18:25 EST  Date: 2002/03/22 14:18:25 EST
1789  Tag: george-20020322-cps-branch-prob  Tag: george-20020322-cps-branch-prob

Legend:
Removed from v.1171  
changed lines
  Added in v.1618

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0