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

Legend:
Removed from v.1133  
changed lines
  Added in v.1485

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