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/HISTORY
ViewVC logotype

Diff of /sml/trunk/HISTORY

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

revision 694, Thu Jul 27 16:00:25 2000 UTC revision 1383, Thu Sep 18 20:26:20 2003 UTC
# Line 8  Line 8 
8  The form of an entry should be:  The form of an entry should be:
9    
10  Name:  Name:
11  Date:  Date: yyyy/mm/dd
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    
15    ----------------------------------------------------------------------
16    Name: Matthias Blume
17    Date: 2003/09/18 15:20:00 CDT
18    Tag: blume-20030918-misc
19    Description:
20    
21    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
22       this seems to be controversial at the moment) and used those in
23       Posix.ProcEnv.times.
24    
25    2. Added Time.{from,to}Nanoseconds to Time.
26    
27    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
28       For example, fromLargeInt never needs to look at more than 3 "big
29       digits" to get its 53 bits of precision.
30    
31    ----------------------------------------------------------------------
32    Name:  Matthias Blume (blume (at) tti - c (dot) org)
33    Date: 2003/09/17 16:30:00 CDT
34    Tag: blume-20030917-real32-slices
35    Description:
36    
37    Added an entry to the primitive environment
38    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
39    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
40    
41    Removed some of the "magic" constants in real64.sml and replaced them
42    with code that generates these values from their corresponding
43    integer counterparts.
44    
45    Made all(?) the slice-related changes to the Basis and made everything
46    compile again...
47    
48    ----------------------------------------------------------------------
49    Name: Matthias Blume (blume (at) tti - c (dot) org)
50    Date: 2003/09/15 17:45:00 CDT
51    Tag: blume-20030915-rbase
52    Description:
53    
54    Fixed bug in Real.fromLargeInt.
55    
56    ----------------------------------------------------------------------
57    Name: Matthias Blume (blume (at) tti - c (dot) org)
58    Date: 2003/09/13 18:11:00 CDT
59    Tag: blume-20030913-libinstall
60    Description:
61    
62    Minor bugfix in config/libinstall (set anchor with path to
63    standalone tool after installing it, otherwise libraries that
64    need ml-lex or ml-yacc won't compile the first time the installer
65    runs).
66    
67    ----------------------------------------------------------------------
68    Name: Matthias Blume (blume (at) tti - c (dot) org)
69    Date: 2003/09/12 11:45:00 CDT
70    Tag: blume-20030912-various
71    Description:
72    
73     - fixed bug in Real.toLargeInt
74     - fixed bug in Posix.ProcEnv.times
75     - changed inputLine functions to return an option
76     - minor installer improvements / bugfixes
77     - changed default @SMLalloc parameter for x86/celeron to 64k
78    
79    ----------------------------------------------------------------------
80    Name: Matthias Blume (blume (at) tti - c (dot) org)
81    Date: 2003/09/09 22:00:00 CDT
82    Tag: Release_110_43
83    Description:
84    
85        New working release 110.43.  New bootfiles.
86    
87    ----------------------------------------------------------------------
88    Name: Matthias Blume (blume (at) tti - c (dot) org)
89    Date: 2003/09/09 19:20:00 CDT
90    Tag: blume-20030909-installer
91    Description:
92    
93    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
94    Modified config/install.bat to take advantage of it.  Also modified
95    config/install.sh (and called it config/new-install.sh) to take advantage
96    of it on Unix systems.  (The SML code is (supposed to be) platform-
97    independent.)
98    
99    The installer can now install everything under Win32
100    as well as under *nix as long as it compiles.
101    
102    Other changes:
103    
104      - made CML compile again under Win32
105      - made eXene compile under Win32 (by providing a fake structure UnixSock
106        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
107      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
108        same as type int;  under Win32 it isn't
109      - fixed some slice-related problems in the win32-specific parts of CML
110      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
111        (under Win32, the volume name is case-insensitive, and the
112        OS.Path code compares volume names for equality)
113    
114    ----------------------------------------------------------------------
115    Name: Matthias Blume (blume (at) tti - c (dot) org)
116    Date: 2003/09/08 11:55:00 CDT
117    Tag: blume-20030908-fullpath
118    Description:
119    
120    Made Win32 version of OS.FileSys.fullPath return current directory
121    when given an empty string.  This is what the spec says, and incidentally,
122    CM depends on it.  (CM otherwise goes into an infinite loop in certain
123    cases when presented with the name of a non-existing .cm file.)
124    
125    ----------------------------------------------------------------------
126    Name: Matthias Blume (blume (at) tti - c (dot) org)
127    Date: 2003/09/04 16:30:00 CDT
128    Tag: blume-20030905-slices-etc
129    Description:
130    
131      1. Changed interface to vectors and arrays in Basis to match
132         (draft) Basis spec.
133      2. Added signatures and implementations of slices according to
134         Basis spec.
135      3. Edited source code throughout the system to make it compile again
136         under 1. and 2.  (In some cases code had to be added to have it
137         match the new signatures.)
138      4. MLRISC should be backward-compatible: the copies of the originals
139         of files that needed to change under 3. were retained, the .cm files
140         check the compiler version number and use old versions when
141         appropriate.
142      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
143         dirstream -> string option (in accordance with Basis spec).
144      6. When generating code that counts lines, ml-lex used function
145         CharVector.foldli, taking advantage of its old interface.
146         This has been replaced with the corresponding code from
147         CharVectorSlice.  (html-lex must be re-lexed!)
148      7. BitArray in smlnj-lib/Util has been extended/modified to match the
149         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
150      8. Removed temporary additions (fromInternal, toInternal) from the
151         (now obsolete) IntInf in smlnj-lib/Util.
152      9. Cleaned up structure Byte.
153     10. Added localOffset, scan, and fromString to Date (according to spec).
154         Cleaned/corrected implementation of Date.
155         (Still need to check for correctness; implement better canonicalizeDate.)
156     11. Added "scan" to signature IEEE_REAL.
157     12. Some improvements to IntInf [in particular: efficiency-hack for
158         mod and rem when second operand is 2 (for parity checks).]
159     13. Changed representation of type Time.time, using a single IntInf.int
160         value counting microseconds.  This considerably simplified the
161         implementation of structure Time.  We now support negative time
162         values; scan and fromString handle signs.
163     14. Functor PrimIO now takes two additional arguments (VectorSlice and
164         ArraySlice).
165    
166    ----------------------------------------------------------------------
167    Name: Matthias Blume (blume (at) tti - c (dot) org)
168    Date: 2003/08/28 17:00:00 CDT
169    Tag: blume-20030828-intinf
170    Description:
171    
172    This is a major update which comes with a version number bump
173    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
174    and an implementation of IntInf in the Basis.
175    
176    There are a fairly large number of related changes and updates throughout
177    the system:
178    
179    Basis:
180            - Implemented IntInf.
181            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
182            - Added some missing Real64 operations, most notably Real.toLargeInt.
183            - Added FixedInt as a synonym for Int32.
184    
185    compiler:
186            * Added support for a built-in intinf type.
187              - literals
188              - pattern matching
189              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
190              - overloading on literals and operations
191    
192            This required adding a primitive type intinf, some additional
193            primops, and implementations for several non-trivial intinf
194            operations in Core.  (The intinf type is completely abstract
195            to the compiler; all operations get delegated back to the Core.)
196    
197            * Intinf equality is handled by polyequal.  However, the compiler
198            does not print its usual warning in this case (since polyequal
199            is the right thing to do there).
200    
201            * Improved the organization of structure InlineT.
202    
203            * A word about conversion primops:
204            If conversions involving intinf do not cancel out during
205            CPS contract, then the compiler must insert calls to Core functions.
206            Since all core access must be resolved already during the FLINT
207            translate phase, it would be too late a the time of CPS contract
208            to add new Core calls.  For this reason, conversion primops
209            for intinf carry two arguments:  1. the numeric argument that
210            they are supposed to convert, and 2. the Core function that
211            can help with this conversion if necessary.  If CPS contract
212            eliminates a primop, then the associated Core function becomes
213            dead and goes away.  Intinf conversion primops that do not get
214            eliminated by CPS contract get rewritten into calls of their
215            core functions by a separate, new phase.
216    
217    interactive system:
218            - Control.Print.intinfDepth controls max length of intinf constants
219            being printed. (Analogous to Control.Print.stringDepth.)
220            - Cleanup in printutil and pputil: got rid of unused stuff and
221            duplicates; replaced some of the code with code that makes better
222            use of library functionality.
223    
224    CM:
225            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
226            are no longer silent.
227    
228    CKIT:
229            Fixed mismatched uses of Int32 and LargeInt.  I always decided
230            in favor of LargeInt -- which is now the same as IntInf.
231            CKIT-knowledgable people should check whether this is what's
232            intended and otherwise change things back to using Int32 or
233            FixedInt.
234    
235    Throughout the code:
236            Started using IntInf.int literals and built-in operations
237            (e.g., comparison with 0) where this seems appropriate.
238    
239    
240    ----------------------------------------------------------------------
241    Name: Dave MacQueen (dbm@cs.uchicago.edu)
242    Date: 2003/08/13 11:36:00 CDT
243    Tag: dbm-20030813-mcz-merge1
244    Description:
245    
246    Merging changes from the mcz-branch development branch into trunk.
247    These changes involve replacement of the emulated old prettyprinter
248    interface with direct use of the SML/NJ Lib PP library, and fixing
249    of a couple of bugs (895, 1186) relating to error messages.  A new
250    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
251    has been added.
252    
253    ----------------------------------------------------------------------
254    Name: Matthias Blume (blume (at) tti - c (dot) org)
255    Date: 2003/08/11 15:45:00 CDT
256    Tag: blume-20030811-windows
257    Description:
258    
259    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
260    
261        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
262    
263    This patch restores SML/NJ's ability to run under win32.  There are a
264    number of changes, including fixes for several bugs that had gone
265    unnoticed until now:
266    
267      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
268        trying to run the win32 version from within cygwin.)
269    
270      - There are a number of simple .bat scripts that substitute for their
271        corresponding Unix shell-scripts.  (See below.)
272    
273      - The internals of ml-build have been modified slightly.  The main
274        difference is that instead of calling ".link-sml" (or link-sml.bat)
275        using OS.Process.system, the ML process delegates this task back
276        to the script.  Otherwise problems arise in mixed environments such
277        as Cygwin where scripts look and work like Unix scripts, but
278        where OS.Process.system cannot run them.
279    
280      - In CM, the srcpath pickler used native pathname syntax -- which
281        is incorrect in the case of cross-compilation.  The new pickle format
282        is independent of platform-specific naming conventions.
283    
284      - Path configuration files (such as lib/pathconfig) can now choose
285        between native and standard syntax.  Placing a line of the form
286    
287            standard!
288    
289        into the file causes all subsequent paths to be interpreted using
290        CM standard pathname syntax (= Unix conventions); a line
291    
292            native!
293    
294        switches back to native style.  This was needed so that
295        path config files can be written portably, see src/system/pathconfig.
296    
297      - Runtime system:
298    
299          - win32-filesys.c:  get_file_time and set_file_time now
300            access modification time, not creation time.
301    
302          - I/O code made aware of new array representation.
303    
304          - Bug fixes in X86.prim.masm.
305    
306       - src/system/makeml made aware of win32. (For use under cygwin
307            and other Unix-environments for windows.)
308    
309       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
310         which caused BinIO.inputAll to fail consistently.
311    
312    .bat scripts:
313    
314       Windows .bat scripts assume that SMLNJ_HOME is defined.
315    
316       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
317         applications (sml, ml-yacc, ml-lex).
318       - ml-build.bat: analogous to ml-build.
319       - config\install.bat:  Analogous to config/install.sh.  This requires
320         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
321         (nmake etc. must be on the path, and vcvars32 must have been run.)
322         Moreover, sources for ml-lex and ml-yacc need to exist under src,
323         and the bootfile hierarchy must have been unpacked under
324         sml.boot.x86-win32.
325         The script is very primitive and does a poor job at error checking.
326         It only installs the base system, ml-lex, and ml-yacc.  No other
327         libraries are being installed (i.e., you get only those that
328         are part of the compiler.)
329       - link-sml.bat:  analogous to .link-sml, but not currently used
330    
331    Unrelated bug fixes:
332    
333      - ml-nlffigen now exports structures ST_* corresponding to incomplete
334        types.
335      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
336        otherwise.)
337    
338    ----------------------------------------------------------------------
339    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
340    Date: 2003/06/17
341    Tag: macqueen-20030617-bug895
342    Description:
343    
344    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
345    Tag will be used for new development branch (mcz-branch) for
346    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
347    
348    ----------------------------------------------------------------------
349    Name: Matthias Blume (blume (at) tti - c (dot) org)
350    Date: 2003/05/27 16:55:00 CDT
351    Tag: blume-20030527-polyeq
352    Description:
353    
354    Tried to eliminated most cases of polymorphic equality.
355    
356    ----------------------------------------------------------------------
357    Name: Matthias Blume (blume (at) tti - c (dot) org)
358    Date: 2003/05/21 17:45:00 CDT
359    Tag: blume-20030517-complete
360    Description:
361    
362    Two changes:
363    
364      1. Added a flag for controlling whether non-exhaustive bindings will
365         be treated as errors (default is false).
366      2. Cleaned up the *entire* source tree so that CMB.make goes through
367         without a single non-exhaustive match- or bind warning.
368    
369    ----------------------------------------------------------------------
370    Name: Matthias Blume (blume (at) tti - c (dot) org)
371    Date: 2003/05/17 10:20:00 CDT
372    Tag: blume-20030517-absyn
373    Description:
374    
375    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
376    
377       This mainly affects the quality of error messages.  However, some
378       of the code is now more straightforward than before. (Treatment of
379       the above four constructs in translate.sml is much simpler than
380       the "macro-expansion" that was going on before.  Plus, the mach-
381       compiler no longer gets invoked just to be able to compile an
382       if-expression.)
383    
384    2. The ErrorMsg.Error exception is now caught and absorbed by the
385       interactive loop.
386    
387    ----------------------------------------------------------------------
388    Name: Allen Leung
389    Date: 2003/05/16 13:05:00 CDT
390    Tag: leunga-20030516-cygwin-runtime
391    Description:
392    
393        Ported the runtime system to cygwin, which uses the unix
394    x86-unix bin files.  Missing/buggy features:
395    
396       o getnetbyname, getnetbyaddr: these functions seem to be missing in
397         the Cygwin library.
398       o Ctrl-C handling may be flaky.
399       o Windows system calls and Windows I/O are not supported.
400    
401       A new set of binfiles is located at:
402    
403         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
404    
405       This is only needed for bootstrapping the cygwin version of smlnj.
406       Other x86 versions can use the existing binfiles.
407    
408    ----------------------------------------------------------------------
409    Name: Matthias Blume
410    Date: 2003/04/08 15:42:00 CDT
411    Tag: blume-20030408-listpair
412    Description:
413    
414    1. Added a target 'mlrisc' to installer.
415    
416    2. Added missing elements to structure ListPair.
417    
418    ----------------------------------------------------------------------
419    Name: Allen Leung
420    Date: 2003/01/07 10:40:00 EST
421    Tag: leunga-20030107-int-rem
422    Description:
423    
424    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
425    The arguments to the SUBL instruction were swapped.
426    
427    ----------------------------------------------------------------------
428    Name: Matthias Blume
429    Date: 2002/12/12 16:25:00 EST
430    Tag: blume-20021212-risc-ra
431    Description:
432    
433    Fixed a serious bug in the rewrite code for FP spilling/reloading that
434    sent the RA into an infinite loop when floating point registers get
435    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
436    110.37 and 110.38.)
437    There was another set of potential problems related to the handling of
438    MLRISC annotations (but those did not yet cause real problems, apparently).
439    
440    ----------------------------------------------------------------------
441    Name: Matthias Blume
442    Date: 2002/12/06 22:40:00 EST
443    Tag: blume-20021206-cm-fileid
444    Description:
445    
446    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
447    This fixes the problem of CM getting confused by files that suddenly
448    change their identity (e.g., by getting unlinked and recreated by some
449    text editor such as vi).  There might be a better/cheaper/cleaner way
450    of doing this, but for now this will have to do.
451    
452    ----------------------------------------------------------------------
453    Name: Matthias Blume
454    Date: 2002/10/28 09:50:00 EST
455    Tag: blume-20021028-typecheck
456    Description:
457    
458    Exported structure Typecheck from $smlnj/viscomp/core.cm.
459    
460    ----------------------------------------------------------------------
461    Name: Matthias Blume
462    Date: 2002/10/17 09:10:00 EDT
463    Tag: Release_110_42
464    Description:
465    
466    In good old tradition, there has been a slight hiccup so that we have
467    to patch 110.42 after the fact.   The old release tag has been replaced
468    (see below).
469    
470    The change solves a problem with two competing approaches the
471    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
472    each other's way.
473    
474    This change only affects the runtime system code and the installer script.
475    (No new bootfiles.)
476    
477    ----------------------------------------------------------------------
478    Name: Matthias Blume
479    Date: 2002/10/16 12:00:00 EDT
480    Tag: Release_110_42_removed
481    Description:
482    
483    New working release.  New bootfiles.
484    
485    ----------------------------------------------------------------------
486    Name: Matthias Blume
487    Date: 2002/10/10 13:10:00 EDT
488    Tag: blume-20021010-ppc-divs
489    Description:
490    
491    The mltree operator DIVS must be implemented with an overflow check on
492    the PPC because the hardware indicates divide-by-zero using "overflow" as
493    well.
494    
495    ----------------------------------------------------------------------
496    Name: Matthias Blume
497    Date: 2002/07/23 11:45:00
498    Tag: blume-20020723-smlnj-home
499    Description:
500    
501    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
502    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
503    CM_PATHCONFIG is also set), the path configuration file is assumed
504    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
505    the entire tree to some other place and everything will "just work".
506    
507    (Companion commands such as ml-build and ml-makedepend also sense this
508    variable.)
509    
510    ----------------------------------------------------------------------
511    Name: Matthias Blume
512    Date: 2002/07/12 21:19:00 EDT
513    Tag: blume-20020712-liveness
514    Description:
515    
516    Exported two useful "step" functions from liveness module (MLRISC).
517    
518    ----------------------------------------------------------------------
519    Name: Matthias Blume
520    Date: 2002/07/05 16:00 EDT
521    Tag: Release_110_41
522    Description:
523    
524    New working release.  New bootfiles.
525    
526    ----------------------------------------------------------------------
527    Name: Matthias Blume
528    Date: 2002/07/05 10:25:00 EDT
529    Tag: blume-20020705-btimp
530    Description:
531    
532    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
533    other clients can set up backtracing support.
534    
535    ----------------------------------------------------------------------
536    Name: Matthias Blume
537    Date: 2002/06/25 17:23:00 EDT
538    Tag: blume-20020625-fpmax
539    Description:
540    
541    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
542    case.  (The sense of the isNaN test was reversed -- which made min and
543    max always return their first argument.)
544    
545    ----------------------------------------------------------------------
546    Name: Matthias Blume
547    Date: 2002/06/11
548    Tag: blume-20020611-unixpath
549    Description:
550    
551    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
552    
553    ----------------------------------------------------------------------
554    Name: Matthias Blume
555    Date: 2002/06/10 16:35:00 EDT
556    Tag: blume-20020610-ieeereal
557    Description:
558    
559    I back-ported my implementation of IEEEReal.fromString from the
560    idlbasis-devel branch so that we can test it.
561    
562    Another small change is that ppDec tries to give more information
563    than just "<sig>" in the case of functors.  However, this code is
564    broken in some mysterious way if the functor's body's signature
565    has not been declared by ascription but gets inferred from the
566    implementation.  This needs fixing...
567    
568    ----------------------------------------------------------------------
569    Name: Matthias Blume
570    Date: 2002/05/31
571    Tag: blume-20020531-btrace-mode
572    Description:
573    
574    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
575    the wayside when I switched over to using Controls everywhere.)
576    
577    ----------------------------------------------------------------------
578    Name: Lal George
579    Date: 2002/05/23 12:21:40 EDT
580    Tag: george-20020523-visual-labels
581    Description:
582    
583    Labels are now displayed in the graphical output to make
584    the fall-through and target blocks obvious.
585    
586    ----------------------------------------------------------------------
587    Name: Matthias Blume
588    Date: 2002/05/22 11:03:00 EDT
589    Tag: blume-20020522-shrink
590    Description:
591    
592    John tweaked yesterday's fix for 1131 to handle an out-of-memory
593    situation that comes up when allocating huge arrays.
594    
595    ----------------------------------------------------------------------
596    Name: Matthias Blume
597    Date: 2002/05/21 16:00:00 EDT
598    Tag: Release_110_40
599    Description:
600    
601    New working release (110.40).  New bootfiles.
602    
603    [Also: John Reppy fixed GC bug 1131.]
604    
605    ----------------------------------------------------------------------
606    Name: Matthias Blume
607    Date: 2002/05/21 12:35:00 EDT
608    Tag: blume-20020521-cmdoc
609    Description:
610    
611    CM documentation update.
612    
613    ----------------------------------------------------------------------
614    Name: Matthias Blume
615    Date: 2002/05/21 10:55:00 EDT
616    Tag: blume-20020521-misc
617    Description:
618    
619    - John tweaked runtime to be silent on heap export (except when
620      GC messages are on).
621    - I added a few more things (cross-compiling versions of CMB) to
622      config/preloads (as suggestions).
623    
624    ----------------------------------------------------------------------
625    Name: Matthias Blume
626    Date: 2002/05/20 22:25:00 EDT
627    Tag: blume-20020520-controls
628    Description:
629    
630    - Added ControlUtil structure to control-lib.cm.
631    - Use it throughout.
632    - Used Controls facility to define MLRISC controls (as opposed to
633      registering MLRISC control ref cells with Controls after the fact)
634    - Fixed messed-up controls priorities.
635    
636    * Removed again all the stuff from config/preloads that one wouldn't
637      be able to preload at the time the initial heap image is built.
638      (Many libraries, e.g., CML, do not exist yet at this time.  The
639       only libraries that can be preloaded via config/preloads are those
640       that come bundled with the bootfiles.)
641    
642    ----------------------------------------------------------------------
643    Name: Matthias Blume
644    Date: 2002/05/20 10:59:00 EDT
645    Tag: blume-20020520-preloads
646    Description:
647    
648    Added a lot of commented-out suggestions for things to be included
649    in config/preloads.
650    
651    ----------------------------------------------------------------------
652    Name: Allen Leung
653    Date: 2002/05/18 14:20:00 EDT
654    Tag: leunga-20020518-mdl
655    Description:
656    
657    o Made the mdl tool stuff compile and run again.
658    o I've disabled all the stuff that depends on RTL specifications; they
659      are all badly broken anyway.
660    
661    ----------------------------------------------------------------------
662    Name: Matthias Blume
663    Date: 2002/05/17 16:49:00 EDT
664    Tag: blume-20020517-controls
665    Description:
666    
667    0. John Reppy made several modifications to the SML/NJ library.
668       In particular, there is a shiny new controls-lib.cm.
669    
670    1. Pushed new controls interface through compiler so that everything
671       compiles again.
672    
673    2. Added FormatComb and FORMAT_COMB to the CML version of the
674       SML/NJ library (so that CML compiles again).
675    
676    3. Modified init scripts because XXX_DEFAULT environment variables
677       are no longer with us.  (Boot-time initialization is now done
678       using the same environment variables that are also used for
679       startup-time initialization of controls.)
680    
681    ----------------------------------------------------------------------
682    Name: Lal George
683    Date: 2002/05/15 09:20:10 EDT
684    Tag: george-20020515-pseudo-op-decls
685    Description:
686    
687            All pseudo-ops emitted before the first segment declaration
688    such as TEXT, DATA, and BSS directives are assumed to be global
689    declarations and are emitted first in the assembly file. This is
690    useful in a number of situations where one has pseudo-ops that are not
691    specific to any segment, and also works around the constraint that one
692    cannot have client pseudo-ops in the TEXT segment.
693    
694            Because no segment is associated with these declarations it is
695    an error to allocate any space or objects before the first segment
696    directive and an exception will be raised. However, we cannot make
697    this check for client pseudo-ops.
698    
699            These top level declarations are a field in the CFG graph_info.
700    In theory you can continue to add to this field after the CFG has been
701    built -- provided you know what you are doing;-)
702    
703    ----------------------------------------------------------------------
704    Name: Matthias Blume
705    Date: 2002/05/13 16:40:00 EDT
706    Tag: blume-20020513-pp-etc
707    Description:
708    
709    A few minor bugfixes:
710    
711      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
712        (Bogus printouts for redefined bindings still occur.  Compiler
713        bug should no longer occur now.  We need to redo the prettyprinter
714        from scratch.)
715    
716      - CM pathname printer now also adds escape sequences for ( and )
717    
718      - commend and docu fixes for ml-nlffi
719    
720    ----------------------------------------------------------------------
721    Name: Matthias Blume
722    Date: 2002/05/10 16:40:00 EDT
723    Tag: blume-20020510-erg-textio
724    Description:
725    
726    Applied the following bugfix provided by Emden Gansner:
727    
728        Output is corrupted when outputSubstr is used rather than output.
729    
730        The problem occurs when a substring
731    
732            ss = (s, dataStart, dataLen)
733    
734        where dataStart > 0, fills a stream buffer with avail bytes left.
735        avail bytes of s, starting at index dataStart, are copied into the
736        buffer, the buffer is flushed, and then the remaining dataLen-avail
737        bytes of ss are copied into the beginning of the buffer. Instead of
738        starting this copy at index dataStart+avail in s, the current code
739        starts the copy at index avail.
740    
741        Fix:
742        In text-io-fn.sml, change line 695 from
743             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
744        to
745             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
746    
747    ----------------------------------------------------------------------
748    Name: Matthias Blume
749    Date: 2002/04/12 13:55:00 EDT
750    Tag: blume-20020412-assyntax
751    Description:
752    
753    1. Grabbed newer assyntax.h from the XFree86 project.
754    2. Fiddled with how to compile X86.prim.asm without warnings.
755    3. (Very) Minor cleanup in CM.
756    
757    ----------------------------------------------------------------------
758    Name: Matthias Blume
759    Date: 2002/04/01 (no joke!) 17:07:00 EST
760    Tag: blume-20020401-x86div
761    Description:
762    
763    Added full support for div/mod/rem/quot on the x86, using the machine
764    instruction's two results (without clumsily recomputing the remainder)
765    directly where appropriate.
766    
767    Some more extensive power-of-two support was added to the x86 instruction
768    selector (avoiding expensive divs, mods, and muls where they can be
769    replaced with cheaper shifts and masks).  However, this sort of thing
770    ought to be done earlier, e.g., within the CPS optimizer so that
771    all architectures benefit from it.
772    
773    The compiler compiles to a fixed point, but changes might be somewhat
774    fragile nevertheless.  Please, report any strange things that you might
775    see wrt. div/mod/quot/rem...
776    
777    ----------------------------------------------------------------------
778    Name: Matthias Blume
779    Date: 2002/03/29 17:22:00
780    Tag: blume-20020329-div
781    Description:
782    
783    Fixed my broken div/mod logic.  Unfortunately, this means that the
784    inline code for div/mod now has one more comparison than before.
785    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
786    The problem was with quotient = 0, because that alone does not tell
787    us which way the rounding went.  One then has to look at whether
788    remainder and divisor have the same sign...  :(
789    
790    Anyway, I replaced the bootfiles with fresh ones...
791    
792    ----------------------------------------------------------------------
793    Name: Matthias Blume
794    Date: 2002/03/29 14:10:00 EST
795    Tag: blume-20020329-inlprims
796    Description:
797    
798    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
799    
800    Primops have changed. This means that the bin/boot-file formats have
801    changed as well.
802    
803    To make sure that there is no confusion, I made a new version.
804    
805    
806    CHANGES:
807    
808    * removed REMT from mltree (remainder should never overflow).
809    
810    * added primops to deal with divisions of all flavors to the frontend
811    
812    * handled these primops all the way through so they map to their respective
813      MLRISC support
814    
815    * used these primops in the implementation of Int, Int32, Word, Word32
816    
817    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
818    
819    * parameterized INLMIN, INLMAX, and INLABS by a numkind
820    
821    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
822      floating point
823    
824    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
825      and Real (but Real.abs maps to a separate floating-point-only primop)
826    
827    
828    TODO items:
829    
830    * Hacked Alpha32 instruction selection, disabling the selection of REMx
831      instructions because the machine instruction encoder cannot handle
832      them.  (Hppa, PPC, and Sparc instruction selection did not handle
833      REM in the first place, and REM is supported by the x86 machine coder.)
834    
835    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
836      selection phase.  (The two can be streamlined because the hardware
837      delivers both quotient and remainder at the same time anyway.)
838    
839    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
840      (Currently the behavior is inconsistent both across architectures and
841      wrt. the draft Basis spec.)
842    
843    * Word8 should eventually be handled natively, too.
844    
845    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
846      as if there currently is no execution path that could trigger it in
847      SML/NJ.  (The assumptions underlying functions arith and promotable do not
848      hold for things like multiplication and division.)
849    
850    ----------------------------------------------------------------------
851    Name: Matthias Blume
852    Date: 2002/03/27 16:27:00 EST
853    Tag: blume-20020327-mlrisc-divisions
854    Description:
855    
856    Added support for all four division operations (ML's div, mod, quot,
857    and rem) to MLRISC.  In the course of doing so, I also rationalized
858    the naming (no more annoying switch-around of DIV and QUOT), by
859    parameterizing the operation by div_rounding_mode (which can be either
860    DIV_TO_ZERO or DIV_TO_NEGINF).
861    
862    The generic MLTreeGen functor takes care of compiling all four
863    operations down to only round-to-zero div.
864    
865    Missing pieces:
866    
867      * Doing something smarter than relying on MLTreeGen on architectures
868        like, e.g., the x86 where hardware division delivers both quotient and
869        remainder at the same time.  With this, the implementation of the
870        round-to-neginf operations could be further streamlined.
871    
872      * Remove inlining support for div/mod/rem from the frontend and replace it
873        with primops that get carried through to the backend.  Do this for all
874        int and word types.
875    
876    ----------------------------------------------------------------------
877    Name: Matthias Blume
878    Date: 2002/03/25 17:25:00 EST
879    Tag: blume-20020325-divmod
880    Description:
881    
882    I improved (hopefully without breaking them) the implementation of Int.div,
883    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
884    advantage of the following observations:
885    
886      Let  q = x quot y      r = x rem y
887           d = x div  y      m = x mod y
888    
889    where "quot" is the round-to-zero version of integer division that
890    hardware usually provides.  Then we have:
891    
892         r = x - q * y        where neither the * nor the - will overflow
893         d = if q >= 0 orelse x = q * y then q else q - 1
894                              where neither the * nor the - will overflow
895         m = if q >= 0 orelse r = 0 then r else r + y
896                              where the + will not overflow
897    
898    This results in substantial simplification of the generated code.
899    The following table shows the number of CFG nodes and edges generated
900    for
901            fun f (x, y) = x OPER y
902            (* with OPER \in div, mod, quot, rem *)
903    
904    
905        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
906        --------------------------------------------------------
907         div |         24 |         39 |         12 |         16
908         mod |         41 |         71 |         12 |         16
909        quot |          8 |         10 |          8 |         10
910         rem |         10 |         14 |          8 |         10
911    
912    
913    ----------------------------------------------------------------------
914    Name: Matthias Blume
915    Date: 2002/03/25 22:06:00 EST
916    Tag: blume-20020325-cprotobug
917    Description:
918    
919    Fixed a bug in cproto (c prototype decoder).
920    
921    ----------------------------------------------------------------------
922    Name: Matthias Blume
923    Date: 2002/03/25 16:00:00 EST
924    Tag: blume-20020325-raw-primops
925    Description:
926    
927    I did some cleanup to Allen's new primop code and
928    replaced yesterday's bootfiles with new ones.
929    (But they are stored in the same place.)
930    
931    ----------------------------------------------------------------------
932    Name: Matthias Blume
933    Date: 2002/03/24 22:40:00 EST
934    Tag: blume-20020324-bootfiles
935    Description:
936    
937    Made the bootfiles that Allen asked for.
938    
939    ----------------------------------------------------------------------
940    Name: Allen Leung
941    Date: 2002/03/23 15:50:00 EST
942    Tag: leunga-20020323-flint-cps-rcc-primops
943    Description:
944    
945      1. Changes to FLINT primops:
946    
947        (* make a call to a C-function;
948         * The primop carries C function prototype information and specifies
949         * which of its (ML-) arguments are floating point. C prototype
950         * information is for use by the backend, ML information is for
951         * use by the CPS converter. *)
952      | RAW_CCALL of { c_proto: CTypes.c_proto,
953                       ml_args: ccall_type list,
954                       ml_res_opt: ccall_type option,
955                       reentrant : bool
956                     } option
957       (* Allocate uninitialized storage on the heap.
958        * The record is meant to hold short-lived C objects, i.e., they
959        * are not ML pointers.  With the tag, the representation is
960        * the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8)
961        *)
962      | RAW_RECORD of {tag:bool,sz:int}
963      and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR
964    
965      2.  These CPS primops are now overloaded:
966    
967           rawload of {kind:numkind}
968           rawstore of {kind:numkind}
969    
970          The one argument form is:
971    
972             rawload {kind} address
973    
974          The two argument form is:
975    
976             rawload {kind} [ml object, byte-offset]
977    
978      3. RAW_CCALL/RCC now takes two extra arguments:
979    
980         a. The first is whether the C call is reentrant, i.e., whether
981            ML state should be saved and restored.
982         b. The second argument is a string argument specifying the name of
983            library and the C function.
984    
985         These things are currently not handled in the code generator, yet.
986    
987      4. In CProto,
988    
989         An encoding type of "bool" means "ml object" and is mapped into
990         C prototype of PTR.  Note that "bool" is different than "string",
991         even though "string" is also mapped into PTR, because "bool"
992         is assigned an CPS type of BOGt, while "string" is assigned INT32t.
993    
994      5. Pickler/unpicker
995    
996         Changed to handle RAW_RECORD and newest RAW_CCALL
997    
998      6. MLRiscGen,
999    
1000         1. Changed to handle the new rawload/rawstore/rawrecord operators.
1001         2. Code for handling C Calls has been moved to a new module CPSCCalls,
1002            in the file CodeGen/cpscompile/cps-c-calls.sml
1003    
1004      7. Added the conditional move operator
1005    
1006             condmove of branch
1007    
1008         to cps.  Generation of this is still buggy so it is currently
1009         disabled.
1010    
1011    ----------------------------------------------------------------------
1012    Name: Lal George
1013    Date: 2002/03/22 14:18:25 EST
1014    Tag: george-20020322-cps-branch-prob
1015    Description:
1016    
1017    Implemented the Ball-Larus branch prediction-heuristics, and
1018    incorporated graphical viewers for control flow graphs.
1019    
1020    Ball-Larus Heuristics:
1021    ---------------------
1022    See the file compiler/CodeGen/cpscompile/cpsBranchProb.sml.
1023    
1024    By design it uses the Dempster-Shafer theory for combining
1025    probabilities.  For example, in the function:
1026    
1027        fun f(n,acc) = if n = 0 then acc else f(n-1, n*acc)
1028    
1029    the ball-larus heuristics predicts that the n=0 is unlikely
1030    (OH-heuristic), and the 'then' branch is unlikely because of the
1031    RH-heuristic -- giving the 'then' branch an even lower combined
1032    probability using the Dempster-Shafer theory.
1033    
1034    Finally, John Reppy's loop analysis in MLRISC, further lowers the
1035    probability of the 'then' branch because of the loop in the else
1036    branch.
1037    
1038    
1039    Graphical Viewing:
1040    ------------------
1041    I merely plugged in Allen's graphical viewers into the compiler. The
1042    additional code is not much. At the top level, saying:
1043    
1044            Control.MLRISC.getFlag "cfg-graphical-view" := true;
1045    
1046    will display the graphical view of the control flow graph just before
1047    back-patching.  daVinci must be in your path for this to work. If
1048    daVinci is not available, then the default viewer can be changed
1049    using:
1050    
1051            Control.MLRISC.getString "viewer"
1052    
1053    which can be set to "dot" or "vcg" for the corresponding viewers. Of
1054    course, these viewers must be in your path.
1055    
1056    The above will display the compilation unit at the level of clusters,
1057    many of which are small, boring, and un-interesting. Also setting:
1058    
1059            Control.MLRISC.getInt "cfg-graphical-view_size"
1060    
1061    will display clusters that are larger than the value set by the above.
1062    
1063    
1064    ----------------------------------------------------------------------
1065    Name: Matthias Blume
1066    Date: 2002/03/21 22:20:00 EST
1067    Tag: blume-20020321-kmp-bugfix
1068    Description:
1069    
1070    Changed the interface to the KMP routine in PreString and fixed
1071    a minor bug in one place where it was used.
1072    
1073    ----------------------------------------------------------------------
1074    Name: Allen Leung
1075    Date: 2002/03/21 20:30:00 EST
1076    Tag: leunga-20020321-cfg
1077    Description:
1078    
1079      Fixed a potential problem in cfg edge splitting.
1080    
1081    ----------------------------------------------------------------------
1082    Name: Allen Leung
1083    Date: 2002/03/21 17:15:00 EST
1084    Tag: leunga-20020321-x86-fp-cfg
1085    Description:
1086    
1087      1. Recoded the buggy parts of x86-fp.
1088    
1089         a. All the block reordering code has been removed.
1090            We now depend on the block placement phases to do this work.
1091    
1092         b. Critical edge splitting code has been simplified and moved into the
1093            CFG modules, as where they belong.
1094    
1095         Both of these were quite buggy and complex.  The code is now much, much
1096         simpler.
1097    
1098      2. X86 backend.
1099    
1100         a. Added instructions for 64-bit support.  Instruction selection for
1101            64-bit has not been committed, however, since that
1102            requires changes to MLTREE which haven't been approved by
1103            Lal and John.
1104    
1105         b. Added support for FUCOMI and FUCOMIP when generating code for
1106            PentiumPro and above.  We only generate these instructions in
1107            the fast-fp mode.
1108    
1109         c. Added cases for JP and JNP in X86FreqProps.
1110    
1111      3. CFG
1112    
1113         CFG now has a bunch of methods for edge splitting and merging.
1114    
1115      4. Machine description.
1116    
1117         John's simplification of MLTREE_BASIS.fcond broke a few machine
1118         description things:
1119    
1120         rtl-build.{sig,sml} and hppa.mdl fixed.
1121    
1122         NOTE: the machine description stuff in the repository is still broken.
1123               Again, I can't put my fixes in because that involves
1124               changes to MLTREE.
1125    
1126    ----------------------------------------------------------------------
1127    Name: Matthias Blume
1128    Date: 2002/03/20 15:55:00 EST
1129    Tag: blume-20020320-kmp
1130    Description:
1131    
1132    Implemented Knuth-Morris-Pratt string matching in PreString and used
1133    it for String.isSubstring, Substring.isSubstring, and
1134    Substring.position.
1135    
1136    (Might need some stress-testing.  Simple examples worked fine.)
1137    
1138    ----------------------------------------------------------------------
1139    Name: Matthias Blume
1140    Date: 2002/03/19 16:37:00 EST
1141    Tag: blume-20020319-witnesses
1142    Description:
1143    
1144    Added a structure C.W and functions convert/Ptr.convert to ml-nlffi-lib.
1145    
1146    This implements a generic mechanism for changing constness qualifiers
1147    anywhere within big C types without resorting to outright "casts".
1148    (So far, functions such as C.rw/C.ro or C.Ptr.rw/C.Ptr.ro only let you
1149    modify the constness at the outermost level.)
1150    The implementation of "convert" is based on the idea of "witness"
1151    values -- values that are not used by the operation but whose types
1152    "testify" to their applicability.  On the implementation side, "convert"
1153    is simply a projection (returning its second curried argument).  With
1154    cross-module inlining, it should not result in any machine code being
1155    generated.
1156    
1157    ----------------------------------------------------------------------
1158    Name: Matthias Blume
1159    Date: 2002/03/15 16:40:00 EST
1160    Tag: blume-20020315-basis
1161    Description:
1162    
1163    Provided (preliminary?) implementations for
1164    
1165      {String,Substring}.{concatWith,isSuffix,isSubstring}
1166    
1167    and
1168    
1169      Substring.full
1170    
1171    Those are in the Basis spec but they were missing in SML/NJ.
1172    
1173    ----------------------------------------------------------------------
1174    Name: Matthias Blume
1175    Date: 2002/03/14 21:30:00 EST
1176    Tag: blume-20020314-controls
1177    Description:
1178    
1179    Controls:
1180    ---------
1181    
1182    1. Factored out the recently-added Controls : CONTROLS stuff and put
1183       it into its own library $/controls-lib.cm.  The source tree for
1184       this is under src/smlnj-lib/Controls.
1185    
1186    2. Changed the names of types and functions in this interface, so they
1187       make a bit more "sense":
1188    
1189          module -> registry
1190          'a registry -> 'a group
1191    
1192    3. The interface now deals in ref cells only.  The getter/setter interface
1193       is (mostly) gone.
1194    
1195    4. Added a function that lets one register an already-existing ref cell.
1196    
1197    5. Made the corresponding modifications to the rest of the code so that
1198       everything compiles again.
1199    
1200    6. Changed the implementation of Controls.MLRISC back to something closer
1201       to the original.  In particular, this module (and therefore MLRISC)
1202       does not depend on Controls.  There now is some link-time code in
1203       int-sys.sml that registers the MLRISC controls with the Controls
1204       module.
1205    
1206    CM:
1207    ---
1208    
1209      * One can now specify the lambda-split aggressiveness in init.cmi.
1210    
1211    ----------------------------------------------------------------------
1212    Name: Allen Leung
1213    Date: 2002/03/13 17:30:00 EST
1214    Tag: leunga-20020313-x86-fp-unary
1215    Description:
1216    
1217    Bug fix for:
1218    
1219    > leunga@weaselbane:~/Yale/tmp/sml-dist{21} bin/sml
1220    > Standard ML of New Jersey v110.39.1 [FLINT v1.5], March 08, 2002
1221    > - fun f(x,(y,z)) = Real.~ y;
1222    > [autoloading]
1223    > [autoloading done]
1224    >       fchsl   (%eax), 184(%esp)
1225    > Error: MLRisc bug: X86MCEmitter.emitInstr
1226    >
1227    > uncaught exception Error
1228    >   raised at: ../MLRISC/control/mlriscErrormsg.sml:16.14-16.19
1229    
1230    The problem was that the code generator did not generate any fp registers
1231    in this case, and the ra didn't know that it needed to run the X86FP phase to
1232    translate the pseudo fp instruction.   This only happened with unary fp
1233    operators in certain situations.
1234    
1235    ----------------------------------------------------------------------
1236    Name: Matthias Blume
1237    Date: 2002/03/13 14:00:00 EST
1238    Tag: blume-20020313-overload-etc
1239    Description:
1240    
1241    1. Added _overload as a synonym for overload for backward compatibility.
1242       (Control.overloadKW must be true for either version to be accepted.)
1243    
1244    2. Fixed bug in install script that caused more things to be installed
1245       than what was requested in config/targets.
1246    
1247    3. Made CM aware of the (_)overload construct so that autoloading
1248       works.
1249    
1250    ----------------------------------------------------------------------
1251    Name: Matthias Blume
1252    Date: 2002/03/12 22:03:00 EST
1253    Tag: blume-20020312-url
1254    Description:
1255    
1256    Forgot to update BOOT and srcarchiveurl.
1257    
1258    ----------------------------------------------------------------------
1259    Name: Matthias Blume
1260    Date: 2002/03/12 17:30:00 EST
1261    Tag: blume-20020312-version110392
1262    Description:
1263    
1264    Yet another version number bump (because of small changes to the
1265    binfile format).  Version number is now 110.39.2.  NEW BOOTFILES!
1266    
1267    Changes:
1268    
1269      The new pid generation scheme described a few weeks ago was overly
1270      complicated.  I implemented a new mechanism that is simpler and
1271      provides a bit more "stability":  Once CM has seen a compilation
1272      unit, it keeps its identity constant (as long as you do not delete
1273      those crucial CM/GUID/* files).  This means that when you change
1274      an interface, compile, then go back to the old interface, and
1275      compile again, you arrive at the original pid.
1276    
1277      There now also is a mechanism that instructs CM to use the plain
1278      environment hash as a module's pid (effectively making its GUID
1279      the empty string).  For this, "noguid" must be specified as an
1280      option to the .sml file in question within its .cm file.
1281      This is most useful for code that is being generated by tools such
1282      as ml-nlffigen (because during development programmers tend to
1283      erase the tool's entire output directory tree including CM's cached
1284      GUIDs).  "noguid" is somewhat dangerous (since it can be used to locally
1285      revert to the old, broken behavior of SML/NJ, but in specific cases
1286      where there is no danger of interface confusion, its use is ok
1287      (I think).
1288    
1289      ml-nlffigen by default generates "noguid" annotations.  They can be
1290      turned off by specifying -guid in its command line.
1291    
1292    ----------------------------------------------------------------------
1293    Name: Lal George
1294    Date: 2002/03/12 12 14:42:36 EST
1295    Tag: george-20020312-frequency-computation
1296    Description:
1297    
1298    Integrated jump chaining and static block frequency into the
1299    compiler. More details and numbers later.
1300    
1301    ----------------------------------------------------------------------
1302    Name: Lal George
1303    Date: 2002/03/11 11 22:38:53 EST
1304    Tag: george-20020311-jump-chain-elim
1305    Description:
1306    
1307    Tested the jump chain elimination on all architectures (except the
1308    hppa).  This is on by default right now and is profitable for the
1309    alpha and x86, however, it may not be profitable for the sparc and ppc
1310    when compiling the compiler.
1311    
1312    The gc test will typically jump to a label at the end of the cluster,
1313    where there is another jump to an external cluster containing the actual
1314    code to invoke gc. This is to allow factoring of common gc invocation
1315    sequences. That is to say, we generate:
1316    
1317            f:
1318               testgc
1319               ja   L1      % jump if above to L1
1320    
1321            L1:
1322               jmp L2
1323    
1324    
1325    After jump chain elimination the 'ja L1' instructions is converted to
1326    'ja L2'. On the sparc and ppc, many of the 'ja L2' instructions may end
1327    up being implemented in their long form (if L2 is far away) using:
1328    
1329            jbe     L3      % jump if below or equal to L3
1330            jmp     L2
1331         L3:
1332            ...
1333    
1334    
1335    For large compilation units L2  may be far away.
1336    
1337    
1338    ----------------------------------------------------------------------
1339    Name: Matthias Blume
1340    Date: 2002/03/11 13:30:00 EST
1341    Tag: blume-20020311-mltreeeval
1342    Description:
1343    
1344    A functor parameter was missing.
1345    
1346    ----------------------------------------------------------------------
1347    Name: Allen Leung
1348    Date: 2002/03/11 10:30:00 EST
1349    Tag: leunga-20020311-runtime-string0
1350    Description:
1351    
1352       The representation of the empty string now points to a
1353    legal null terminated C string instead of unit.  It is now possible
1354    to convert an ML string into C string with InlineT.CharVector.getData.
1355    This compiles into one single machine instruction.
1356    
1357    ----------------------------------------------------------------------
1358    Name: Allen Leung
1359    Date: 2002/03/10 23:55:00 EST
1360    Tag: leunga-20020310-x86-call
1361    Description:
1362    
1363       Added machine generation for CALL instruction (relative displacement mode)
1364    
1365    ----------------------------------------------------------------------
1366    Name: Matthias Blume
1367    Date: 2002/03/08 16:05:00
1368    Tag: blume-20020308-entrypoints
1369    Description:
1370    
1371    Version number bumped to 110.39.1.  NEW BOOTFILES!
1372    
1373    Entrypoints: non-zero offset into a code object where execution should begin.
1374    
1375    - Added the notion of an entrypoint to CodeObj.
1376    - Added reading/writing of entrypoint info to Binfile.
1377    - Made runtime system bootloader aware of entrypoints.
1378    - Use the address of the label of the first function given to mlriscGen
1379      as the entrypoint.  This address is currently always 0, but it will
1380      not be 0 once we turn on block placement.
1381    - Removed the linkage cluster code (which was The Other Way(tm) of dealing
1382      with entry points) from mlriscGen.
1383    
1384    ----------------------------------------------------------------------
1385    Name: Allen Leung
1386    Date: 2002/03/07 20:45:00 EST
1387    Tag: leunga-20020307-x86-cmov
1388    Description:
1389    
1390       Bug fixes for CMOVcc on x86.
1391    
1392       1. Added machine code generation for CMOVcc
1393       2. CMOVcc is now generated in preference over SETcc on PentiumPro or above.
1394       3. CMOVcc cannot have an immediate operand as argument.
1395    
1396    ----------------------------------------------------------------------
1397    Name: Matthias Blume
1398    Date: 2002/03/07 16:15:00 EST
1399    Tag: blume-20020307-controls
1400    Description:
1401    
1402    This is a very large but mostly boring patch which makes (almost)
1403    every tuneable compiler knob (i.e., pretty much everything under
1404    Control.* plus a few other things) configurable via both the command
1405    line and environment variables in the style CM did its configuration
1406    until now.
1407    
1408    Try starting sml with '-h' (or, if you are brave, '-H')
1409    
1410    To this end, I added a structure Controls : CONTROLS to smlnj-lib.cm which
1411    implements the underlying generic mechanism.
1412    
1413    The interface to some of the existing such facilities has changed somewhat.
1414    For example, the MLRiscControl module now provides mkFoo instead of getFoo.
1415    (The getFoo interface is still there for backward-compatibility, but its
1416    use is deprecated.)
1417    
1418    The ml-build script passes -Cxxx=yyy command-line arguments through so
1419    that one can now twiddle the compiler settings when using this "batch"
1420    compiler.
1421    
1422    TODO items:
1423    
1424    We should go through and throw out all controls that are no longer
1425    connected to anything.  Moreover, we should go through and provide
1426    meaningful (and correct!) documentation strings for those controls
1427    that still are connected.
1428    
1429    Currently, multiple calls to Controls.new are accepted (only the first
1430    has any effect).  Eventually we should make sure that every control
1431    is being made (via Controls.new) exactly once.  Future access can then
1432    be done using Controls.acc.
1433    
1434    Finally, it would probably be a good idea to use the getter-setter
1435    interface to controls rather than ref cells.  For the time being, both
1436    styles are provided by the Controls module, but getter-setter pairs are
1437    better if thread-safety is of any concern because they can be wrapped.
1438    
1439    *****************************************
1440    
1441    One bug fix: The function blockPlacement in three of the MLRISC
1442    backpatch files used to be hard-wired to one of two possibilities at
1443    link time (according to the value of the placementFlag).  But (I
1444    think) it should rather sense the flag every time.
1445    
1446    *****************************************
1447    
1448    Other assorted changes (by other people who did not supply a HISTORY entry):
1449    
1450    1. the cross-module inliner now works much better (Monnier)
1451    2. representation of weights, frequencies, and probabilities in MLRISC
1452       changed in preparation of using those for weighted block placement
1453       (Reppy, George)
1454    
1455    ----------------------------------------------------------------------
1456    Name: Lal George
1457    Date: 2002/03/07 14:44:24 EST 2002
1458    Tag: george-20020307-weighted-block-placement
1459    
1460    Tested the weighted block placement optimization on all architectures
1461    (except the hppa) using AMPL to generate the block and edge frequencies.
1462    Changes were required in the machine properties to correctly
1463    categorize trap instructions. There is an MLRISC flag
1464    "weighted-block-placement" that can be used to enable weighted block
1465    placement, but this will be ineffective without block/edge
1466    frequencies (coming soon).
1467    
1468    
1469    ----------------------------------------------------------------------
1470    Name: Lal George
1471    Date: 2002/03/05 17:24:48 EST
1472    Tag: george-20020305-linkage-cluster
1473    
1474    In order to support the block placement optimization, a new cluster
1475    is generated as the very first cluster (called the linkage cluster).
1476    It contains a single jump to the 'real' entry point for the compilation
1477    unit. Block placement has no effect on the linkage cluster itself, but
1478    all the other clusters  have full freedom in the manner in which they
1479    reorder blocks or functions.
1480    
1481    On the x86 the typical linkage code that is generated is:
1482       ----------------------
1483            .align 2
1484       L0:
1485            addl    $L1-L0, 72(%esp)
1486            jmp     L1
1487    
1488    
1489            .align  2
1490       L1:
1491       ----------------------
1492    
1493    72(%esp) is the memory location for the stdlink register. This
1494    must contain the address of the CPS function being called. In the
1495    above example, it contains the address of  L0; before
1496    calling L1 (the real entry point for the compilation unit), it
1497    must contain the address for L1, and hence
1498    
1499            addl $L1-L0, 72(%esp)
1500    
1501    I have tested this on all architectures except the hppa.The increase
1502    in code size is of course negligible
1503    
1504    ----------------------------------------------------------------------
1505    Name: Allen Leung
1506    Date: 2002/03/03 13:20:00 EST
1507    Tag: leunga-20020303-mlrisc-tools
1508    
1509      Added #[ ... ] expressions to mlrisc tools
1510    
1511    ----------------------------------------------------------------------
1512    Name: Matthias Blume
1513    Date: 2002/02/27 12:29:00 EST
1514    Tag: blume-20020227-cdebug
1515    Description:
1516    
1517    - made types in structure C and C_Debug to be equal
1518    - got rid of code duplication (c-int.sml vs. c-int-debug.sml)
1519    - there no longer is a C_Int_Debug (C_Debug is directly derived from C)
1520    
1521    ----------------------------------------------------------------------
1522    Name: Matthias Blume
1523    Date: 2002/02/26 12:00:00 EST
1524    Tag: blume-20020226-ffi
1525    Description:
1526    
1527    1. Fixed a minor bug in CM's "noweb" tool:
1528       If numbering is turned off, then truly don't number (i.e., do not
1529       supply the -L option to noweb).  The previous behavior was to supply
1530       -L'' -- which caused noweb to use the "default" line numbering scheme.
1531       Thanks to Chris Richards for pointing this out (and supplying the fix).
1532    
1533    2. Once again, I reworked some aspects of the FFI:
1534    
1535       A. The incomplete/complete type business:
1536    
1537       - Signatures POINTER_TO_INCOMPLETE_TYPE and accompanying functors are
1538         gone!
1539       - ML types representing an incomplete type are now *equal* to
1540         ML types representing their corresponding complete types (just like
1541         in C).  This is still safe because ml-nlffigen will not generate
1542         RTTI for incomplete types, nor will it generate functions that
1543         require access to such RTTI.   But when ML code generated from both
1544         incomplete and complete versions of the C type meet, the ML types
1545         are trivially interoperable.
1546    
1547         NOTE:  These changes restore the full generality of the translation
1548         (which was previously lost when I eliminated functorization)!
1549    
1550       B. Enum types:
1551    
1552       - Structure C now has a type constructor "enum" that is similar to
1553         how the "su" constructor works.  However, "enum" is not a phantom
1554         type because each "T enum" has values (and is isomorphic to
1555         MLRep.Signed.int).
1556       - There are generic access operations for enum objects (using
1557         MLRep.Signed.int).
1558       - ml-nlffigen will generate a structure E_foo for each "enum foo".
1559         * The structure contains the definition of type "mlrep" (the ML-side
1560         representation type of the enum).  Normally, mlrep is the same
1561         as "MLRep.Signed.int", but if ml-nlffigen was invoked with "-ec",
1562         then mlrep will be defined as a datatype -- thus facilitating
1563         pattern matching on mlrep values.
1564         ("-ec" will be suppressed if there are duplicate values in an
1565          enumeration.)
1566         * Constructors ("-ec") or values (no "-ec") e_xxx of type mlrep
1567         will be generated for each C enum constant xxx.
1568         * Conversion functions m2i and i2m convert between mlrep and
1569         MLRep.Signed.int.  (Without "-ec", these functions are identities.)
1570         * Coversion functions c and ml convert between mlrep and "tag enum".
1571         * Access functions (get/set) fetch and store mlrep values.
1572       - By default (unless ml-nlffigen was invoked with "-nocollect"), unnamed
1573         enumerations are merged into one single enumeration represented by
1574         structure E_'.
1575    
1576    ----------------------------------------------------------------------
1577    Name: Allen Leung
1578    Date: 2002/02/25 04:45:00 EST
1579    Tag: leunga-20020225-cps-spill
1580    
1581    This is a new implementation of the CPS spill phase.
1582    The new phase is in the new file compiler/CodeGen/cpscompile/spill-new.sml
1583    In case of problems, replace it with the old file spill.sml
1584    
1585    The current compiler runs into some serious performance problems when
1586    constructing a large record.  This can happen when we try to compile a
1587    structure with many items.  Even a very simple structure like the following
1588    makes the compiler slow down.
1589    
1590        structure Foo = struct
1591           val x_1 = 0w1 : Word32.int
1592           val x_2 = 0w2 : Word32.int
1593           val x_3 = 0w3 : Word32.int
1594           ...
1595           val x_N = 0wN : Word32.int
1596        end
1597    
1598    The following table shows the compile time, from N=1000 to N=4000,
1599    with the old compiler:
1600    
1601    N
1602    1000   CPS 100 spill                           0.04u  0.00s  0.00g
1603           MLRISC ra                               0.06u  0.00s  0.05g
1604              (spills = 0 reloads = 0)
1605           TOTAL                                   0.63u  0.07s  0.21g
1606    
1607    1100   CPS 100 spill                           8.25u  0.32s  0.64g
1608           MLRISC ra                               5.68u  0.59s  3.93g
1609              (spills = 0 reloads = 0)
1610           TOTAL                                   14.71u  0.99s  4.81g
1611    
1612    1500   CPS 100 spill                           58.55u  2.34s  1.74g
1613           MLRISC ra                               5.54u  0.65s  3.91g
1614              (spills = 543 reloads = 1082)
1615           TOTAL                                   65.40u  3.13s  6.00g
1616    
1617    2000   CPS 100 spill                           126.69u  4.84s  3.08g
1618           MLRISC ra                               0.80u  0.10s  0.55g
1619              (spills = 42 reloads = 84)
1620           TOTAL                                   129.42u  5.10s  4.13g
1621    
1622    3000   CPS 100 spill                           675.59u  19.03s  11.64g
1623           MLRISC ra                               2.69u  0.27s  1.38g
1624              (spills = 62 reloads = 124)
1625           TOTAL                                   682.48u  19.61s  13.99g
1626    
1627    4000   CPS 100 spill                           2362.82u  56.28s  43.60g
1628           MLRISC ra                               4.96u  0.27s  2.72g
1629              (spills = 85 reloads = 170)
1630           TOTAL                                   2375.26u  57.21s  48.00g
1631    
1632    As you can see the old cps spill module suffers from some serious
1633    performance problem.  But since I cannot decipher the old code fully,
1634    instead of patching the problems up, I'm reimplementing it
1635    with a different algorithm.  The new code is more modular,
1636    smaller when compiled, and substantially faster
1637    (O(n log n) time and O(n) space).  Timing of the new spill module:
1638    
1639    4000  CPS 100 spill                           0.02u  0.00s  0.00g
1640          MLRISC ra                               0.25u  0.02s  0.15g
1641             (spills=1 reloads=3)
1642          TOTAL                                   7.74u  0.34s  1.62g
1643    
1644    Implementation details:
1645    
1646    As far as I can tell, the purpose of the CPS spill module is to make sure the
1647    number of live variables at any program point (the bandwidth)
1648    does not exceed a certain limit, which is determined by the
1649    size of the spill area.
1650    
1651    When the bandwidth is too large, we decrease the register pressure by
1652    packing live variables into spill records.  How we achieve this is
1653    completely different than what we did in the old code.
1654    
1655    First, there is something about the MLRiscGen code generator
1656    that we should be aware of:
1657    
1658    o MLRiscGen performs code motion!
1659    
1660       In particular, it will move floating point computations and
1661       address computations involving only the heap pointer to
1662       their use sites (if there is only a single use).
1663       What this means is that if we have a CPS record construction
1664       statement
1665    
1666           RECORD(k,vl,w,e)
1667    
1668       we should never count the new record address w as live if w
1669       has only one use (which is often the case).
1670    
1671       We should do something similar to floating point, but the transformation
1672       there is much more complex, so I won't deal with that.
1673    
1674    Secondly, there are now two new cps primops at our disposal:
1675    
1676     1. rawrecord of record_kind option
1677        This pure operator allocates some uninitialized storage from the heap.
1678        There are two forms:
1679    
1680         rawrecord NONE [INT n]  allocates a tagless record of length n
1681         rawrecord (SOME rk) [INT n] allocates a tagged record of length n
1682                                     and initializes the tag.
1683    
1684     2. rawupdate of cty
1685          rawupdate cty (v,i,x)
1686          Assigns to x to the ith component of record v.
1687          The storelist is not updated.
1688    
1689    We use these new primops for both spilling and increment record construction.
1690    
1691     1. Spilling.
1692    
1693        This is implemented with a linear scan algorithm (but generalized
1694        to trees).  The algorithm will create a single spill record at the
1695        beginning of the cps function and use rawupdate to spill to it,
1696        and SELECT or SELp to reload from it.  So both spills and reloads
1697        are fine-grain operations.  In contrast, in the old algorithm
1698        "spills" have to be bundled together in records.
1699    
1700        Ideally, we should sink the spill record construction to where
1701        it is needed.  We can even split the spill record into multiple ones
1702        at the places where they are needed.  But CPS is not a good
1703        representation for global code motion, so I'll keep it simple and
1704        am not attempting this.
1705    
1706     2. Incremental record construction (aka record splitting).
1707    
1708        Long records with many component values which are simulatenously live
1709        (recall that single use record addresses are not considered to
1710         be live) are constructed with rawrecord and rawupdate.
1711        We allocate space on the heap with rawrecord first, then gradually
1712        fill it in with rawupdate.  This is the technique suggested to me
1713        by Matthias.
1714    
1715        Some restrictions on when this is applicable:
1716        1. It is not a VECTOR record.  The code generator currently does not handle
1717           this case. VECTOR record uses double indirection like arrays.
1718        2. All the record component values are defined in the same "basic block"
1719           as the record constructor.  This is to prevent speculative
1720           record construction.
1721    
1722    ----------------------------------------------------------------------
1723    Name: Allen Leung
1724    Date: 2002/02/22 01:02:00 EST
1725    Tag: leunga-20020222-mlrisc-tools
1726    
1727    Minor bug fixes in the parser and rewriter
1728    
1729    ----------------------------------------------------------------------
1730    Name: Allen Leung
1731    Date: 2002/02/21 20:20:00 EST
1732    Tag: leunga-20020221-peephole
1733    
1734    Regenerated the peephole files.  Some contained typos in the specification
1735    and some didn't compile because of pretty printing bugs in the old version
1736    of 'nowhere'.
1737    
1738    ----------------------------------------------------------------------
1739    Name: Allen Leung
1740    Date: 2002/02/19 20:20:00 EST
1741    Tag: leunga-20020219-mlrisc-tools
1742    Description:
1743    
1744       Minor bug fixes to the mlrisc-tools library:
1745    
1746       1.  Fixed up parsing colon suffixed keywords
1747       2.  Added the ability to shut the error messages up
1748       3.  Reimplemented the pretty printer and fixed up/improved
1749           the pretty printing of handle and -> types.
1750       4.  Fixed up generation of literal symbols in the nowhere tool.
1751       5.  Added some SML keywords to to sml.sty
1752    
1753    ----------------------------------------------------------------------
1754    Name: Matthias Blume
1755    Date: 2002/02/19 16:20:00 EST
1756    Tag: blume-20020219-cmffi
1757    Description:
1758    
1759    A wild mix of changes, some minor, some major:
1760    
1761    * All C FFI-related libraries are now anchored under $c:
1762        $/c.cm      --> $c/c.cm
1763        $/c-int.cm  --> $c/internals/c-int.cm
1764        $/memory.cm --> $c/memory/memory.cm
1765    
1766    * "make" tool (in CM) now treats its argument pathname slightly
1767      differently:
1768        1. If the native expansion is an absolute name, then before invoking
1769           the "make" command on it, CM will apply OS.Path.mkRelative
1770           (with relativeTo = OS.FileSys.getDir()) to it.
1771        2. The argument will be passed through to subsequent phases of CM
1772           processing without "going native".  In particular, if the argument
1773           was an anchored path, then "make" will not lose track of that anchor.
1774    
1775    * Compiler backends now "know" their respective C calling conventions
1776      instead of having to be told about it by ml-nlffigen.  This relieves
1777      ml-nlffigen from one of its burdens.
1778    
1779    * The X86Backend has been split into X86CCallBackend and X86StdCallBackend.
1780    
1781    * Export C_DEBUG and C_Debug from $c/c.cm.
1782    
1783    * C type encoding in ml-nlffi-lib has been improved to model the conceptual
1784      subtyping relationship between incomplete pointers and their complete
1785      counterparts.  For this, ('t, 'c) ptr has been changed to 'o ptr --
1786      with the convention of instantiating 'o with ('t, 'c) obj whenever
1787      the pointer target type is complete.  In the incomplete case, 'o
1788      will be instantiated with some "'c iobj" -- a type obtained by
1789      using one of the functors PointerToIncompleteType or PointerToCompleteType.
1790    
1791      Operations that work on both incomplete and complete pointer types are
1792      typed as taking an 'o ptr while operations that require the target to
1793      be known are typed as taking some ('t, 'c) obj ptr.
1794    
1795      voidptr is now a bit "more concrete", namely "type voidptr = void ptr'"
1796      where void is an eqtype without any values.  This makes it possible
1797      to work on voidptr values using functions meant to operate on light
1798      incomplete pointers.
1799    
1800    * As a result of the above, signature POINTER_TO_INCOMPLETE_TYPE has
1801      been vastly simplified.
1802    
1803    ----------------------------------------------------------------------
1804    Name: Matthias Blume
1805    Date: 2002/02/19 10:48:00 EST
1806    Tag: blume-20020219-pqfix
1807    Description:
1808    
1809    Applied Chris Okasaki's bug fix for priority queues.
1810    
1811    ----------------------------------------------------------------------
1812    Name: Matthias Blume
1813    Date: 2002/02/15 17:05:00
1814    Tag: Release_110_39
1815    Description:
1816    
1817    Last-minute retagging is becoming a tradition... :-(
1818    
1819    This is the working release 110.39.
1820    
1821    ----------------------------------------------------------------------
1822    Name: Matthias Blume
1823    Date: 2002/02/15 16:00:00 EST
1824    Tag: Release_110_39-orig
1825    Description:
1826    
1827    Working release 110.39.  New bootfiles.
1828    
1829    (Update: There was a small bug in the installer so it wouldn't work
1830    with all shells.  So I retagged. -Matthias)
1831    
1832    ----------------------------------------------------------------------
1833    Name: Matthias Blume
1834    Date: 2002/02/15 14:17:00 EST
1835    Tag: blume-20020215-showbindings
1836    Description:
1837    
1838    Added EnvRef.listBoundSymbols and CM.State.showBindings.  Especially
1839    the latter can be useful for exploring what bindings are available at
1840    the interactive prompt.  (The first function returns only the list
1841    of symbols that are really bound, the second prints those but also the
1842    ones that CM's autoloading mechanism knows about.)
1843    
1844    ----------------------------------------------------------------------
1845    Name: Matthias Blume
1846    Date: 2002/02/15 12:08:00 EST
1847    Tag: blume-20020215-iptrs
1848    Description:
1849    
1850    Two improvements to ml-nlffigen:
1851    
1852      1. Write files only if they do not exist or if their current contents
1853         do not coincide with what's being written.  (That is, avoid messing
1854         with the time stamps unless absolutely necessary.)
1855    
1856      2. Implement a "repository" mechanism for generated files related
1857         to "incomplete pointer types".   See the README file for details.
1858    
1859    ----------------------------------------------------------------------
1860    Name: Matthias Blume
1861    Date: 2002/02/14 11:50:00 EST
1862    Tag: blume-20020214-quote
1863    Description:
1864    
1865    Added a type 't t_' to tag.sml (in ml-nlffi-lib.cm).  This is required
1866    because of the new and improved tag generation scheme.  (Thanks to Allen
1867    Leung for pointing it out.)
1868    
1869    ----------------------------------------------------------------------
1870    Name: Lal George
1871    Date: 2002/02/14 09:55:27 EST 2002
1872    Tag: george-20020214-isabelle-bug
1873    Description:
1874    
1875    Fixed the MLRISC bug sent by Markus Wenzel regarding the compilation
1876    of Isabelle on the x86.
1877    
1878    From Allen:
1879    -----------
1880     I've found the problem:
1881    
1882         in ra-core.sml, I use the counter "blocked" to keep track of the
1883         true number of elements in the freeze queue.  When the counter goes
1884         to zero, I skip examining the queue.  But I've messed up the
1885         bookkeeping in combine():
1886    
1887             else ();
1888             case !ucol of
1889               PSEUDO => (if !cntv > 0 then
1890                     (if !cntu > 0 then blocked := !blocked - 1 else ();
1891                                        ^^^^^^^^^^^^^^^^^^^^^^^
1892                      moveu := mergeMoveList(!movev, !moveu)
1893                     )
1894                  else ();
1895    
1896         combine() is called to coalesce two nodes u and v.
1897         I think I was thinking that if the move counts of u and v are both
1898         greater than zero then after they are coalesced then one node is
1899         removed from the freeze queue.  Apparently I was thinking that
1900         both u and v are of low degree, but that's clearly not necessarily true.
1901    
1902    
1903    02/12/2002:
1904        Here's the patch.  HOL now compiles.
1905    
1906        I don't know how this impact on performance (compile
1907        time or runtime).  This bug caused the RA (especially on the x86)
1908        to go thru the potential spill phase when there are still nodes on the
1909        freeze queue.
1910    
1911    
1912    
1913    
1914    ----------------------------------------------------------------------
1915    Name: Matthias Blume
1916    Date: 2002/02/13 22:40:00 EST
1917    Tag: blume-20020213-fptr-rtti
1918    Description:
1919    
1920    Fixed a bug in ml-nlffigen that was introduced with one of the previous
1921    updates.
1922    
1923    ----------------------------------------------------------------------
1924    Name: Matthias Blume
1925    Date: 2002/02/13 16:41:00 EST
1926    Tag: blume-20020213-cmlpq
1927    Description:
1928    
1929    Added new priority queue export symbols (which have just been added to
1930    smlnj-lib.cm) to CML's version of smlnj-lib.cm.  (Otherwise CML would
1931    not compile and the installer would choke.)
1932    
1933    ----------------------------------------------------------------------
1934    Name: Matthias Blume
1935    Date: 2002/02/13 16:15:00 EST
1936    Tag: blume-20020213-various
1937    Description:
1938    
1939    1. More tweaks to ml-nlffigen:
1940    
1941       - better internal datastructures (resulting in slight speedup)
1942       - "-match" option requires exact match
1943       - "localized" gensym counters (untagged structs/unions nested within
1944         other structs/unions or within typedefs get a fresh counter; their
1945         tag will be prefixed by a concatenation of their parents' tags)
1946       - bug fixes (related to calculation of transitive closure of types
1947         to be included in the output)
1948    
1949    2. Minor Basis updates:
1950    
1951       - added implementations for List.collate and Option.app
1952    
1953    ----------------------------------------------------------------------
1954    Name: Matthias Blume
1955    Date: 2002/02/11 15:55:00 EST
1956    Tag: blume-20020211-gensym
1957    Description:
1958    
1959    Added a "-gensym" option to command line of ml-nlffigen.  This can be
1960    used to specify a "stem" -- a string that is inserted in all "gensym'd"
1961    names (ML structure names that correspond to unnamed C structs, unions,
1962    and enums), so that separate runs of ml-nlffigen do not clash.
1963    
1964    ----------------------------------------------------------------------
1965    Name: Matthias Blume
1966    Date: 2002/02/11 12:05:00 EST
1967    Tag: blume-20020211-gensml
1968    Description:
1969    
1970    A quick fix for a problem with GenSML (in the pgraph-util library):
1971    Make generation of toplevel "local" optional.  (Strictly speaking,
1972    signature definitions within "local" are not legal SML.)
1973    
1974    Other than that: updates to INSTALL and cm/TODO.
1975    
1976    ----------------------------------------------------------------------
1977    Name: Matthias Blume
1978    Date: 2002/02/08 15:00:00 EST
1979    Tag: blume-20020208-uniquepid
1980    Description:
1981    
1982    0. Version number has been bumped to 110.38.1.  NEW BOOTFILES!!!
1983    
1984    1. The installer (config/install.sh) has gotten smarter:
1985    
1986         - Configuration options are a bit easier to specify now
1987           (in config/targets).
1988         - Bug in recognizing .tar.bz2 files fixed.
1989         - Installer automatically resolves dependencies between
1990           configuration options (e.g., if you ask for eXene, you will
1991           also get cml -- regardless whether you asked for it or not).
1992         - Installer can run in "quieter mode" by setting the environment
1993           variable INSTALL_QUIETLY to "true".  "Quieter" does not mean
1994           "completely silent", though.
1995         - Build HashCons library as part of smlnj-lib.
1996    
1997    2. A new scheme for assigning persistent identifiers to compilation
1998       units (and, by extension, to types etc.) has been put into place.
1999       This fixes a long-standing bug where types and even dynamic values
2000       can get internally confused, thereby compromising type safety
2001       (abstraction) and dynamic correctness.  See
2002    
2003         http://cm.bell-labs.com/cm/cs/who/blume/pid-confusion.tgz
2004    
2005       for an example of how things could go wrong until now.
2006    
2007       The downside of the new scheme is that pids are not quite as
2008       persistent as they used to be: CM will generate a fresh pid
2009       for every compilation unit that it thinks it sees for the first
2010       time.  That means that if you compile starting from a clean, fresh
2011       source tree at two different times, you end up with different
2012       binaries.
2013    
2014       Cutoff recompilation, however, has not been compromised because
2015       CM keeps pid information in special caches between runs.
2016    
2017    ----------------------------------------------------------------------
2018    Name: Lal George
2019    Date: 2002/02/07 15:34:13 EST 2002
2020    Tag: <none>
2021    Description:
2022    
2023    Compilers that generate assembly code may produce  global labels
2024    whose value is resolved at link time. The various peephole optimization
2025    modules did not take this in account.
2026    
2027    TODO. The Labels.addrOf function should really return an option
2028    type so that clients are forced to deal with this issue, rather
2029    than an exception being raised.
2030    
2031    ----------------------------------------------------------------------
2032    Name: Lal George
2033    Date: 2002/02/06 13:55:02 EST
2034    Tag: george-20020206-ra-breakup
2035    Description:
2036    
2037    1. A bug fix from Allen.
2038    
2039        A typo causes extra fstp %st(0)'s to be generated at compensation
2040        edges, which might cause stack underflow traps at runtime.  This
2041        occurs in fft where there are extraneous fstps right before the 'into'
2042        trap instruction (in this case they are harmless since none of the
2043        integers overflow.)
2044    
2045    2. Pulled out various utility modules that were embedded in the modules
2046       of the register allocator. I need these modules for other purposes, but
2047       they are not complete enough to put into a library (just yet).
2048    ----------------------------------------------------------------------
2049    Name: Matthias Blume
2050    Date: 2002/01/31 16:05:00 EST
2051    Tag: blume-20020131-sparc-ccalls
2052    Description:
2053    
2054    1. C-calls on Sparc needlessly allocated a huge chunk (96 bytes)
2055       of extra stack space by mistake.  Fixed.
2056    
2057    2. Bug in logic of handling of command-line options in ml-nlffigen fixed.
2058    
2059    ----------------------------------------------------------------------
2060    Name: Allen Leung
2061    Date: 2002/01/30
2062    Tag: leunga-20020130-nowhere-bug-fix
2063    Description:
2064    
2065       MLRISC bug fixes:
2066       1. Fixed a bindings computation bug in the 'nowhere' program generator tool.
2067       2. MachineInt.fromString was negating its value.
2068    
2069    ----------------------------------------------------------------------
2070    Name: Matthias Blume
2071    Date: 2002/01/29
2072    Tag: blume-20020129-INSTALL
2073    Description:
2074    
2075    - Added somewhat detailed installation instructions (file INSTALL).
2076    - Fixed curl-detection bug in config/install.sh.
2077    - It is now possible to select the URL getter using the URLGETTER
2078      environment variable:
2079    
2080          not set / "unknown"      --> automatic detection (script tries wget,
2081                                       curl, and lynx)
2082          "wget" / "curl" / "lynx" --> use the specified program (script "knows"
2083                                       how to properly invoke them)
2084          other                    --> use $URLGETTER directly, it must take
2085                                       precisely two command-line arguments
2086                                       (source URL and destination file name)
2087    
2088    ----------------------------------------------------------------------
2089    Name: Matthias Blume
2090    Date: 2002/01/28
2091    Tag: blume-20020128-sparc-ccalls
2092    Description:
2093    
2094    - Fixed problem with calculation of "used" registers in sparc-c-calls.
2095    - Make use of the allocParam argument in sparc-c-calls.
2096    
2097    ----------------------------------------------------------------------
2098    Name: Matthias Blume
2099    Date: 2002/01/28
2100    Tag: blume-20020128-allocParam
2101    Description:
2102    
2103    John Reppy:  Changes c-calls API to accept client-callback for
2104    allocating extra stack space.
2105    me: Corresponding changes to mlriscGen (using a dummy argument that
2106        does not change the current behavior).
2107    
2108    ----------------------------------------------------------------------
2109    Name: Matthias Blume
2110    Date: 2002/01/28 12:00:00
2111    Tag: Release_110_38
2112    Description:
2113    
2114    This time for real!!!
2115    
2116    ----------------------------------------------------------------------
2117    Name: Matthias Blume
2118    Date: 2002/01/28 10:56:00 EST
2119    Tag: blume-20020128-retraction
2120    Description:
2121    
2122    0. Retracted earlier 110.38.  (The Release_110_38 tag has been replaced
2123       with blume-Release_110_38-retracted.)
2124    
2125    1. Fixed a problem with incorrect rounding modes in real64.sml.
2126       (Thanks to Andrew Mccreight <andrew.mccreight@yale.edu>.)
2127    
2128    2. A bug in ml-nlffigen related to the handling of unnamed structs, unions,
2129       and enums fixed.  The naming of corresponding ML identifiers should
2130       now be consistent again.
2131    
2132    ----------------------------------------------------------------------
2133    Name: Allen Leung
2134    Date: 2002/01/27
2135    Tag: leunga-20020127-nowhere
2136    Description:
2137    
2138       Added a target called nowhere in the configuration scripts.
2139       Enabling this will build the MLRISC 'nowhere' tool (for translating
2140       programs with where-clauses into legal SML code) during installation.
2141    
2142    ----------------------------------------------------------------------
2143    Name: Matthias Blume
2144    Date: 2002/01/25 21:27:00 EST
2145    Tag: blume-Release_110_38-retracted
2146    Description:
2147    
2148    Call it a (working) release!  Version is 110.38. Bootfiles are ready.
2149    
2150    README will be added later.
2151    
2152    !!! NOTE:  Re-tagged as blume-Release_110_38-retracted. Original tag
2153    (Release_110_38) removed.  Reason: Last-minute bug fixes.
2154    
2155    ----------------------------------------------------------------------
2156    Name: Matthias Blume
2157    Date: 2002/01/25
2158    Tag: blume-20020125-ffi
2159    Description:
2160    
2161    A large number of tweaks and improvements to ml-nlffi-lib and
2162    ml-nlffigen:
2163    
2164       - ML represenation types have been streamlined
2165       - getter and setter functions work with concrete values, not abstract
2166         ones where possible
2167       - ml-nlffigen command line more flexible (see README file there)
2168       - some bugs have been fixed (hopefully)
2169    
2170    ----------------------------------------------------------------------
2171    Name: Lal George
2172    Date: 2002/01/24
2173    Tag: george-20020124-risc-ra-interface
2174    Description:
2175    
2176       There is a dramatic simplification in the interface to the
2177       register allocator for RISC architectures as a result of making
2178       parallel copy instructions explicit.
2179    
2180    ----------------------------------------------------------------------
2181    Name: Matthias Blume
2182    Date: 2002/01/22
2183    Tag: blume-20020122-x86-ccalls
2184    Description:
2185    
2186    Bug fix for c-calls on x86 (having to do with how char- and
2187    short-arguments are being handled).
2188    
2189    ----------------------------------------------------------------------
2190    Name: Matthias Blume
2191    Date: 2002/01/21
2192    Tag: blume-20020121-ff
2193    Description:
2194    
2195    Another day of fiddling with the FFI...
2196    
2197    1. Bug fix/workaround:  CKIT does not complain about negative array
2198       dimensions, so ml-nlffigen has to guard itself against this possibility.
2199       (Otherwise a negative dimension would send it into an infinite loop.)
2200    
2201    2. Some of the abstract types (light objects, light pointers, most "base"
2202       types) in structure C are now eqtypes.
2203    
2204    3. Added constructors and test functions for NULL function pointers.
2205    
2206    ----------------------------------------------------------------------
2207    Name: Matthias Blume
2208    Date: 2002/01/18
2209    Tag: blume-20020118-ready-for-new-release
2210    Description:
2211    
2212    Made config/srcarchiveurl point to a new place.  (Will provide boot
2213    files shortly.)
2214    
2215    Maybe we christen this to be 110.38?
2216    
2217    ----------------------------------------------------------------------
2218    Name: Matthias Blume
2219    Date: 2002/01/18
2220    Tag: blume-20020118-more-ffifiddle
2221    Description:
2222    
2223    Today's FFI fiddling:
2224    
2225      - Provided a structure CGetSet with "convenient" versions of C.Get.* and
2226        C.Set.* that use concrete (MLRep.*) arguments and results instead
2227        of abstract ones.
2228    
2229      - Provided word-style bit operations etc. for "int" representation
2230        types in MLRep.S<Foo>Bitops where <Foo> ranges over Char, Int, Short,
2231        and Long.
2232    
2233    ----------------------------------------------------------------------
2234    Name: Matthias Blume
2235    Date: 2002/01/18
2236    Tag: blume-20020118-use-x86-fp
2237    Description:
2238    
2239    Now that x86-fast-fp seems to be working, I turned it back on again
2240    by default.  (Seems to work fine now, even with the FFI.)
2241    
2242    Other than that, I added some documentation about the FFI to
2243    src/ml-nlffigen/README and updated the FFI test examples in
2244    src/ml-nlffi-lib/Tests/*.
2245    
2246    ----------------------------------------------------------------------
2247    Name: Allen Leung
2248    Date: 2002/01/17
2249    Tag: leunga-20020117-x86-fast-fp-call
2250    Description:
2251    
2252       1. Fixed a problem with handling return fp values when x86's fast fp
2253          mode is turned on.
2254    
2255       2. Minor pretty printing fix for cellset.  Print %st(0) as %st(0) instead
2256          of %f32.
2257    
2258       3. Added a constructor INT32lit to the ast of MLRISC tools.
2259    
2260    ----------------------------------------------------------------------
2261    Name: Matthias Blume
2262    Date: 2002/01/16
2263    Tag: blume-20020116-ffifiddle
2264    Description:
2265    
2266    More fiddling with the FFI interface:
2267    
2268     - Make constness 'c instead of rw wherever possible.  This eliminates
2269       the need for certain explicit coercions.  (However, due to ML's
2270       value polymorphism, there will still be many cases where explicit
2271       coercions are necessary.  Phantom types are not the whole answer
2272       to modeling a subtyping relationship in ML.)
2273    
2274     - ro/rw coersions for pointers added.  (Avoids the detour through */&.)
2275    
2276     - "printf" test example added to src/ml-nlffi-lib/Tests.  (Demonstrates
2277       clumsy workaround for varargs problem.)
2278    
2279    ----------------------------------------------------------------------
2280    Name: Lal George
2281    Date: 2002/01/15
2282    Tag: <none>
2283    Description:
2284    
2285    1. Since COPY instructions are no longer native to the architecture,
2286       a generic functor can be used to implement the expandCopies function.
2287    
2288    2. Allowed EXPORT and IMPORT pseudo-op declarations to appear inside a
2289       TEXT segment.
2290    
2291    ----------------------------------------------------------------------
2292    Name: Matthias Blume
2293    Date: 2002/01/15
2294    Tag: blume-20020115-ffiupdates
2295    Description:
2296    
2297    1. Fix for bug resulting in single-precision float values being returned
2298       incorrectly from FFI calls.
2299    
2300    2. Small modifications to C FFI API:
2301    
2302        - memory-allocation routines return straight objects (no options)
2303          and raise an exception in out-of-memory situations
2304        - unsafe extensions to cast between function pointers and pointers
2305          from/to ints
2306        - added structure C_Debug as an alternative to structure C where
2307          pointer-dereferencing (|*| and |*!) always check for null-pointers
2308        - added open_lib' to DynLinkage;  open_lib' works like open_lib
2309          but also takes a (possibly empty) list of existing library handles
2310          that the current library depends on
2311    
2312    ----------------------------------------------------------------------
2313    Name: Matthias Blume
2314    Date: 2002/01/10
2315    Tag: blume-20020110-newffigen
2316    Description:
2317    
2318    1. Updates to portable graph code.
2319    
2320    2. Major update to ml-nlffigen and ml-nlffi-lib.  Things are much
2321       more scalable now so that even huge interfaces such as the one
2322       for GTK compile in finite time and space. :-)
2323       See src/ml-nlffigen/README for details on what's new.
2324    
2325    ----------------------------------------------------------------------
2326    Name: Lal George
2327    Date: 2001/01/09 14:31:35 EST 2002
2328    Tag: george-20011206-rm-native-copy
2329    Description:
2330    
2331            Removed the native COPY and FCOPY instructions
2332            from all the architectures and replaced it with the
2333            explicit COPY instruction from the previous commit.
2334    
2335            It is now possible to simplify many of the optimizations
2336            modules that manipulate copies. This has not been
2337            done in this change.
2338    
2339    ----------------------------------------------------------------------
2340    Name: Lal George
2341    Date: 2001/12/06 16:50:13 EST 2001
2342    Tag: george-20011206-mlrisc-instruction
2343    Description:
2344    
2345    Changed the representation of instructions from being fully abstract
2346    to being partially concrete. That is to say:
2347    
2348      from
2349            type instruction
2350    
2351      to
2352            type instr                              (* machine instruction *)
2353    
2354            datatype instruction =
2355                LIVE of {regs: C.cellset, spilled: C.cellset}
2356              | KILL of {regs: C.cellset, spilled: C.cellset}
2357              | COPYXXX of {k: CB.cellkind, dst: CB.cell list, src: CB.cell list}
2358              | ANNOTATION of {i: instruction, a: Annotations.annotation}
2359              | INSTR of instr
2360    
2361    This makes the handling of certain special instructions that appear on
2362    all architectures easier and uniform.
2363    
2364    LIVE and KILL say that a list of registers are live or killed at the
2365    program point where they appear. No spill code is generated when an
2366    element of the 'regs' field is spilled, but the register is moved to
2367    the 'spilled' (which is present, more for debugging than anything else).
2368    
2369    LIVE replaces the (now deprecated) DEFFREG instruction on the alpha.
2370    We used to generate:
2371    
2372            DEFFREG f1
2373            f1 := f2 + f3
2374            trapb
2375    
2376    but now generate:
2377    
2378            f1 := f2 + f3
2379            trapb
2380            LIVE {regs=[f1,f2,f3], spilled=[]}
2381    
2382    Furthermore, the DEFFREG (hack) required that all floating point instruction
2383    use all registers mentioned in the instruction. Therefore f1 := f2 + f3,
2384    defines f1 and uses [f1,f2,f3]! This hack is no longer required resulting
2385    in a cleaner alpha implementation. (Hopefully, intel will not get rid of
2386    this architecture).
2387    
2388    COPYXXX is intended to replace the parallel COPY and FCOPY  available on
2389    all the architectures. This will result in further simplification of the
2390    register allocator that must be aware of them for coalescing purposes, and
2391    will also simplify certain aspects of the machine description that provides
2392    callbacks related to parallel copies.
2393    
2394    ANNOTATION should be obvious, and now INSTR represents the honest to God
2395    machine instruction set!
2396    
2397    The <arch>/instructions/<arch>Instr.sml files define certain utility
2398    functions for making porting easier -- essentially converting upper case
2399    to lower case. All machine instructions (of type instr) are in upper case,
2400    and the lower case form generates an MLRISC instruction. For example on
2401    the alpha we have:
2402    
2403      datatype instr =
2404         LDA of {r:cell, b:cell, d:operand}
2405       | ...
2406    
2407      val lda : {r:cell, b:cell, d:operand} -> instruction
2408        ...
2409    
2410    where lda is just (INSTR o LDA), etc.
2411    
2412    ----------------------------------------------------------------------
2413    Name: Matthias Blume
2414    Date: 2001/11/22 21:40:00 EST
2415    Tag: Release_110_37
2416    Description:
2417    
2418    Release 110.37.  This time for real.
2419    
2420    ----------------------------------------------------------------------
2421    Name: Matthias Blume
2422    Date: 2001/11/21 16:35:00 EST
2423    Tag: blume-20011121-foot-in-mouth
2424    Description:
2425    
2426    Removed the "Release_110_37" tag because of a serious bug.
2427    This will be re-tagged once the bug is fixed.
2428    
2429    ----------------------------------------------------------------------
2430    Name: Matthias Blume
2431    Date: 2001/11/21 16:14:00 EST
2432    Tag: blume-20011121-forgottenfile
2433    Description:
2434    
2435    Forgot to add a file.  (Just a .tex-file -- part of
2436    the CM manual source.)
2437    
2438    ----------------------------------------------------------------------
2439    Name: Matthias Blume
2440    Date: 2001/11/21 16:10:00 EST
2441    Tag: blume-20011121-invalid_110_37
2442    Description:
2443    
2444    Note: I removed the original tag "Release_110_37" from this commit
2445          because we found a serious bug in all non-x86 backends.
2446          - Matthias
2447    
2448    1. Modifications to the SML/NJ code generator and to the runtime system
2449       so that code object name strings are directly inserted into code
2450       objects at code generation time.  The only business the runtime system
2451       has with this is now to read the name strings on occasions.
2452       (The encoding of the name string has also changed somewhat.)
2453    
2454    2. CM now implements a simple "set calculus" for specifying export lists.
2455       In particular, it is now possible to refer to the export lists of
2456       other libraries/groups/sources and form unions as well as differences.
2457       See the latest CM manual for details.
2458    
2459    3. An separate notion of "proxy" libraries has again be eliminated from
2460       CM's model.  (Proxy libraries are now simply a special case of using
2461       the export list calculus.)
2462    
2463    4. Some of the existing libraries now take advantage of the new set
2464       calculus.
2465       (Notice that not all libraries have been converted because some
2466       of the existing .cm-files are supposed to be backward compatible
2467       with 110.0.x.)
2468    
2469    5. Some cleanup in stand-alone programs.  (Don't use "exnMessage" -- use
2470       "General.exnMessage"!  The former relies on a certain hook to be
2471       initialized, and that often does not happen in the stand-alone case.)
2472    
2473    ----------------------------------------------------------------------
2474    Name: Lal George
2475    Date: 2001/11/21  13:56:18 EST
2476    Tag: george-2001121-pseudo-ops
2477    Description:
2478    
2479      Implemented a complete redesign of MLRISC pseudo-ops. Now there
2480      ought to never be any question of incompatabilities with
2481      pseudo-op syntax expected by host assemblers.
2482    
2483      For now, only modules supporting GAS syntax are implemented
2484      but more should follow, such as MASM, and vendor assembler
2485      syntax, e.g. IBM as, Sun as, etc.
2486    
2487    ----------------------------------------------------------------------
2488    Name: Matthias Blume
2489    Date: 2001/11/14 11:52:00 EST
2490    Tag: blume-20011114-srcname
2491    Description:
2492    
2493    1. Routed the name of the current source file to mlriscgen where it
2494       should be directly emitted into the code object.  (This last part
2495       is yet to be done.)
2496    
2497    2. Some cleanup of the pgraph code to make it match the proposal that
2498       I put out the other day.  (The proposal notwithstanding, things are
2499       still in flux here.)
2500    
2501    ----------------------------------------------------------------------
2502    Name: Lal George
2503    Date: 2001/11/14 09:44:04 EST
2504    Tag:
2505    Description:
2506    
2507      Fix for a backpatching bug reported by Allen.
2508    
2509      Because the boundary between short and long span-dependent
2510      instructions is +/- 128, there are an astounding number of
2511      span-dependent instructions whose size is over estimated.
2512    
2513      Allen came up with the idea of letting the size of span
2514      dependent instructions be non-monotonic, for a maxIter
2515      number of times, after which the size must be monotonically
2516      increasing.
2517    
2518      This table shows the number of span-dependent instructions
2519      whose size was over-estimated as a function of maxIter, for the
2520      file Parse/parse/ml.grm.sml:
2521    
2522         maxIter            # of instructions:
2523            10                      687
2524            20                      438
2525            30                      198
2526            40                        0
2527    
2528      In compiling the compiler, there is no significant difference in
2529      compilation speed between maxIter=10 and maxIter=40. Actually,
2530      my measurements showed that maxIter=40 was a tad faster than
2531      maxIter=10! Also 96% of the  files in the compiler reach a fix
2532      point within 13 iterations, so fixing maxIter at 40, while high,
2533      is okay.
2534    
2535    ----------------------------------------------------------------------
2536    Name: Matthias Blume
2537    Date: 2001/10/31 15:25:00 EST
2538    Tag: blume-20011031-pgraph
2539    Description:
2540    
2541    CKIT:
2542    * Changed the "Function" constructor of type Ast.ctype to carry optional
2543      argument identifiers.
2544    * Changed the return type of TypeUtil.getFunction accordingly.
2545    * Type equality ignores the argument names.
2546    * TypeUtil.composite tries to preserve argument names but gives up quickly
2547      if there is a mismatch.
2548    
2549    installation script:
2550    * attempts to use "curl" if available (unless "wget" is available as well)
2551    
2552    CM:
2553    * has an experimental implementation of "portable graphs" which I will
2554      soon propose as an implementation-independent library format
2555    * there are also new libraries $/pgraph.cm and $/pgraph-util.cm
2556    
2557    NLFFI-LIB:
2558    * some cleanup (all cosmetic)
2559    
2560    NLFFIGEN:
2561    * temporarily disabled the mechanism that suppresses ML output for
2562      C definitions whose identifiers start with an underscore character
2563    * generate val bindings for enum constants
2564    * user can request that only one style (light or heavy) is being used;
2565      default is to use both (command-line arguments: -heavy and -light)
2566    * fixed bug in handling of function types involving incomplete pointers
2567    * generate ML entry points that take record arguments (i.e., using
2568      named arguments) for C functions that have a prototype with named
2569      arguments
2570      (see changes to CKIT)
2571    
2572    ----------------------------------------------------------------------
2573    Name: Allen Leung
2574    Date: 2001/10/27 20:34:00 EDT
2575    Tag: leunga-20011027-x86-fast-fp-call
2576    Description:
2577    
2578       Fixed the bug described in blume-20010920-slowfp.
2579    
2580       The fix involves
2581          1. generating FCOPYs in FSTP in ia32-svid
2582          2. marking a CALL with the appropriate annotation
2583    
2584    ----------------------------------------------------------------------
2585    Name: Matthias Blume
2586    Date: 2001/10/16 11:32:00 EDT
2587    Tag: blume-20011016-netbsd
2588    Description:
2589    
2590    Underscore patch from Chris Richards (fixing problem with compiling
2591    runtime system under recent NetBSD).
2592    
2593    ----------------------------------------------------------------------
2594    Name: Allen Leung
2595    Date: 2001/10/12 17:18:32 EDT 2001
2596    Tag: leung-20011012-x86-printflowgraph
2597    Description:
2598    
2599    X86RA now uses a valid (instead of dummy) PrintFlowgraph module.
2600    
2601    ----------------------------------------------------------------------
2602    Name: Lal George
2603    Date: 2001/10/11 23:51:34 EDT
2604    Tag: george-20011011-too-many-instrs
2605    Description:
2606    
2607    The representation of a program point never expected to see more
2608    than 65536 instructions in a basic block!
2609    
2610    ----------------------------------------------------------------------
2611    Name: Lal George
2612    Date: 2001/10/09 09:41:37 EDT
2613    Tag: george-20011008-mlrisc-labels
2614    Description:
2615    
2616    Changed the machine description files to support printing of
2617    local and global labels in assembly code, based on host assembler
2618    conventions.
2619    
2620    ----------------------------------------------------------------------
2621    Name: Matthias Blume
2622    Date: 2001/09/25 15:25:00 EDT
2623    Tag: blume-20010925-exninfo
2624    Description:
2625    
2626    I provided a non-hook implementation of exnName (at the toplevel) and
2627    made the "dummy" implementation of exnMessage (at the toplevel) more
2628    useful: if nothing gets "hooked in", then at least you are going to
2629    see the exception name and a message indicating why you don't see more.
2630    
2631    [For the time being, programs that need exnMessage and want to use
2632    ml-build should either use General.exnMessage (strongly recommended) or
2633    refer to structure General at some other point so that CM sees a
2634    static dependency.]
2635    
2636    [Similar remarks go for "print" and "use":  If you want to use their
2637    functionality in stand-alone programs generated by ml-build, then use
2638    TextIO.output and Backend.Interact.useFile (from $smlnj/compiler.cm).]
2639    
2640    ----------------------------------------------------------------------
2641    Name: Matthias Blume
2642    Date: 2001/09/20 17:28:00 EDT
2643    Tag: blume-20010920-slowfp
2644    Description:
2645    
2646    Allen says that x86-fast-fp is not safe yet, so I turned it off again...
2647    
2648    ----------------------------------------------------------------------
2649    Name: Matthias Blume
2650    Date: 2001/09/20 17:20:00 EDT
2651    Tag: blume-20010920-canonicalpaths
2652    Description:
2653    
2654    0. Updated the BOOT file (something that I forgot to do earlier).
2655    
2656    1. Small internal change to CM so that it avoids "/../" in filenames
2657       as much as possible (but only where it is safe).
2658    
2659    2. Changed config/_run-sml (resulting in a changed bin/.run-sml) so
2660       that arguments that contain delimiters are passed through correctly.
2661       This change also means that all "special" arguments of the form
2662       @SMLxxx... must come first.
2663    
2664    3. Changed install script to put relative anchor names for tool commands
2665       into pathconfig.
2666    
2667    ----------------------------------------------------------------------
2668    Name: Matthias Blume
2669    Date: 2001/09/18 15:35:00 EDT
2670    Tag: blume-20010918-readme11036
2671    Description:
2672    
2673    Added README files.
2674    
2675    ----------------------------------------------------------------------
2676    Name: Matthias Blume
2677    Date: 2001/09/18 11:45:00 EDT
2678    Tag: Release_110_36 (retag)
2679    Description:
2680    
2681    Fixed mistake in config/preloads. Retagged as 110.36.
2682    
2683    ----------------------------------------------------------------------
2684    Name: Matthias Blume
2685    Date: 2001/09/18 09:40:00 EDT
2686    Tag: Release_110_36_orig (tag changed)
2687    Description:
2688    
2689    New version (110.36).  New bootfiles.
2690    
2691    ----------------------------------------------------------------------
2692    Name: Matthias Blume
2693    Date: 2001/09/14 16:15:00 EDT
2694    Tag: blume-20010914-x86fastfp
2695    Description:
2696    
2697    John committed some changes that Allen made, in particular a (hopefully)
2698    correctly working version of the x86-fp module.
2699    
2700    I changed the default setting of the Control.MLRISC.getFlag "x86-fast-fp"
2701    flag to "true".  Everything seems to compile to a fixpoint ok, and
2702    "mandelbrot" speeds up by about 15%.
2703    
2704    ----------------------------------------------------------------------
2705    Name: Matthias Blume
2706    Date: 2001/09/13 11:20:00 EDT
2707    Tag: blume-20010913-minimal
2708    Description:
2709    
2710    1. Stefan Monnier's patch to fix a miscompilation problem that
2711       was brought to light by John Reppy's work on Moby.
2712    
2713    2. Implemented a minimal "structure Compiler" that contains just
2714       "version" and "architecture".  The minimal version will be
2715       available when the full version is not.  This is for backward-
2716       compatibility with code that wants to test Compiler.version.
2717    
2718    ----------------------------------------------------------------------
2719    Name: Matthias Blume
2720    Date: 2001/08/28 14:03:00 EDT
2721    Tag: blume-20010828-ml-lex
2722    Description:
2723    
2724    Fix for bug 1581, received from Neophytos Michael.
2725    
2726    ----------------------------------------------------------------------
2727    Name: Matthias Blume
2728    Date: 2001/08/27 11:20:00 EDT
2729    Tag: blume-20010827-readme11035
2730    Description:
2731    
2732    Fleshed out the README file for 110.35.
2733    
2734    ----------------------------------------------------------------------
2735    Name: Matthias Blume
2736    Date: 2001/08/24 17:10:00 EDT
2737    Tag: Release_110_35
2738    Description:
2739    
2740    New version number (110.35).  New bootfiles.
2741    
2742    ----------------------------------------------------------------------
2743    Name: Lal George
2744    Date: 2001/08/24 13:47:18 EDT 2001
2745    Tag: george-20010824-MLRISC-graphs
2746    Description:
2747    
2748     removed clusters from MLRISC completely and replaced with graphs.
2749    
2750    ----------------------------------------------------------------------
2751    Name: Matthias Blume
2752    Date: 2001/08/23 17:50:00 EDT
2753    Tag: blume-20010823-toplevel
2754    Description:
2755    
2756    - some reorganization of the code that implements various kinds of
2757      environments in the compiler (static, dynamic, symbolic, combined)
2758    - re-implemented the EnvRef module so that evalStream works properly
2759      (if the stream contains references to "use", "CM.make", etc.)
2760    - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
2761    
2762    ----------------------------------------------------------------------
2763    Name: Matthias Blume
2764    Date: 2001/08/20 15:50 EDT
2765    Tag: blume20010820-slipup
2766    Description:
2767    
2768    I forgot to commit a few files.  Here they are...
2769    
2770    ----------------------------------------------------------------------
2771    Name: Matthias Blume
2772    Date: 2001/08/20 15:35:00 EDT
2773    Tag: blume-20010820-debugprof
2774    Description:
2775    
2776    !!!! NEW BOOTFILES !!!!
2777    
2778    This is another round of reorganizing the compiler sources.  This
2779    time the main goal was to factor out all the "instrumentation"
2780    passes (for profiling and backtracing) into their own library.
2781    The difficulty was to do it in such a way that it does not depend
2782    on elaborate.cm but only on elabdata.cm.
2783    
2784    Therefore there have been further changes to both elaborate.cm and
2785    elabdata.cm -- more "generic" things have been moved from the former
2786    to the latter.  As a result, I was forced to split the assignment
2787    of numbers indicating "primtyc"s into two portions: SML-generic and
2788    SML/NJ-specific.  Since it would have been awkward to maintain,
2789    I bit the bullet and actually _changed_ the mapping between these
2790    numbers and primtycs.  The bottom line of this is that you need
2791    a new set of bin- and bootfiles.
2792    
2793    I have built new bootfiles for all architectures, so doing a fresh
2794    checkout and config/install.sh should be all you need.
2795    
2796    The newly created library's name is
2797    
2798        $smlnj/viscomp/debugprof.cm
2799    
2800    and its sources live under
2801    
2802        src/compiler/DebugProf
2803    
2804    ----------------------------------------------------------------------
2805    Name: Matthias Blume
2806    Date: 2001/08/15 17:15:00 EDT
2807    Tag: blume-20010815-compreorg
2808    Description:
2809    
2810    This is a first cut at reorganizing the CM libraries that make up the
2811    core of the compiler.  The idea is to separate out pieces that could
2812    be used independently by tools, e.g., the parser, the typechecker, etc.
2813    
2814    The current status is a step in this direction, but it is not quite
2815    satisfactory yet.  Expect more changes in the future.
2816    
2817    Here is the current (new) organization...
2818    
2819        What used to be $smlnj/viscomp/core.cm is now divided into
2820        six CM libraries:
2821    
2822             $smlnj/viscomp/basics.cm
2823                           /parser.cm
2824                           /elabdata.cm
2825                           /elaborate.cm
2826                           /execute.cm
2827                           /core.cm
2828    
2829        The CM files for these libraries live under src/system/smlnj/viscomp.
2830        All these libraries are proxy libraries that contain precisely
2831        one CM library component.  Here are the locations of the components
2832        (all within the src/compiler tree):
2833    
2834             Basics/basics.cm
2835             Parse/parser.cm
2836             ElabData/elabdata.cm
2837             Elaborator/elaborate.cm
2838             Execution/execute.cm
2839             core.cm
2840    
2841         [This organization is the same that has been used already
2842         for a while for the architecture-specific parts of the visible
2843         compiler and for the old version of core.cm.]
2844    
2845         As you will notice, many source files have been moved from their
2846         respective original locations to a new home in one of the above
2847         subtrees.
2848    
2849         The division of labor between the new libraries is the following:
2850    
2851             basics.cm:
2852                - Simple, basic definitions that pertain to many (or all) of
2853                  the other libraries.
2854             parser.cm:
2855                - The SML parser, producing output of type Ast.dec.
2856                - The type family for Ast is also defined and exported here.
2857             elabdata.cm:
2858                - The datatypes that describe input and output of the elaborator.
2859                  This includes types, absyn, and static environments.
2860             elaborator.cm:
2861                - The SML/NJ type checker and elaborator.
2862                  This maps an Ast.dec (with a given static environment) to
2863                  an Absyn.dec (with a new static environment).
2864                - This libraries implements certain modules that used to be
2865                  structures as functors (to remove dependencies on FLINT).
2866             execute.cm:
2867                - Everything having to do with executing binary code objects.
2868                - Dynamic environments.
2869             core.cm:
2870                - SML/NJ-specific instantiations of the elaborator and MLRISC.
2871                - Top-level modules.
2872                - FLINT (this should eventually become its own library)
2873    
2874    Notes:
2875    
2876    I am not 100% happy with the way I separated the elaborator (and its
2877    data structures) from FLINT.  Two instances of the same problem:
2878    
2879        1. Data structures contain certain fields that carry FLINT-specific
2880           information.  I hacked around this using exn and the property list
2881           module from smlnj-lib.  But the fact that there are middle-end
2882           specific fields around at all is a bit annoying.
2883    
2884        2. The elaborator calculates certain FLINT-related information.  I tried
2885           to make this as abstract as I could using functorization, but, again,
2886           the fact that the elaborator has to perform calculations on behalf
2887           of the middle-end at all is not nice.
2888    
2889        3. Having to used exn and property lists is unfortunate because it
2890           weakens type checking.  The other alternative (parameterizing
2891           nearly *everything*) is not appealing, though.
2892    
2893    I removed the "rebinding =" warning hack because due to the new organization
2894    it was awkward to maintain it.  As a result, the compiler now issues some of
2895    these warnings when compiling init.cmi during bootstrap compilation. On
2896    the plus side, you also get a warning when you do, for example:
2897       val op = = Int32.+
2898    which was not the case up to now.
2899    
2900    I placed "assign" and "deref" into the _Core structure so that the
2901    code that deals with the "lazy" keyword can find them there.  This
2902    removes the need for having access to the primitive environment
2903    during elaboration.
2904    
2905    ----------------------------------------------------------------------
2906    Name: Matthias Blume
2907    Date: 2001/08/13
2908    Tag: blume-20010813-closures
2909    Description:
2910    
2911    This fix was sent to us by Zhong Shao.  It is supposed to improve the
2912    performance of certain loops by avoiding needless closure allocation.
2913    
2914    ----------------------------------------------------------------------
2915    Name: Lal George
2916    Date: 2001/07/31 10:03:23 EDT 2001
2917    Tag: george-20010731-x86-fmalloc
2918    Description: Fixed bug in x86 calls
2919    
2920        There was a bug where call instructions would mysteriously
2921        vanish. The call instruction had to be one that returned
2922        a floating point value.
2923    
2924    ----------------------------------------------------------------------
2925    Name: Lal George
2926    Date: 2001/07/19 16:36:29 EDT 2001
2927    Tag: george-20010719-simple-cells
2928    Description:
2929    
2930    I have dramatically simplified the interface for CELLS in MLRISC.
2931    
2932    In summary, the cells interface is broken up into three parts:
2933    
2934      1. CellsBasis : CELLS_BASIS
2935    
2936            CellsBasis is a top level structure and common for all
2937            architectures.  it contains the definitions of basic datatypes
2938            and utility  functions over these types.
2939    
2940      2. functor Cells() : CELLS
2941    
2942            Cells generates an interface for CELLS that incorporates the
2943            specific resources on the target architecture, such as the
2944            presence of special register classes, their number and size,
2945            and various useful substructures.
2946    
2947      3. <ARCH>CELLS
2948    
2949            e.g. SparcCells: SPARCCELLS
2950    
2951            <ARCH>CELLS usually contains additional bindings for special
2952            registers  on the architecture, such as:
2953    
2954                    val r0 : cell           (* register zero *)
2955                    val y : cell            (* Y register *)
2956                    val psr : cell          (* processor status register *)
2957                    ...
2958    
2959            The structure returned by applying the Cells functor is opened
2960            in this interface.
2961    
2962    The main implication of all this is that the datatypes for cells is
2963    split between CellsBasis and CELLS -- a fairly simple change for user
2964    code.
2965    
2966    In the old scheme the CELLS interface had a definitional binding of
2967    the form:
2968    
2969            signature CELLS = sig
2970    
2971               structure CellsBasis = CellsBasis
2972    
2973               ...
2974    
2975            end
2976    
2977    With all the sharing constraints that goes on in MLRISC, this old
2978    design  quickly leads to errors such as:
2979    
2980            "structure definition spec inside of sharing ... "
2981    
2982    
2983    and appears to require an unacceptable amount of sharing and where
2984    constraint hackery.
2985    
2986    I think this error message (the interaction of definitional specs and
2987    sharing) requires more explanation on our web page.
2988    
2989    ----------------------------------------------------------------------
2990    Name: Matthias Blume
2991    Date: 2001/07/19 15:00:00 EDT
2992    Tag: blume-20010719-libreorg
2993    Description:
2994    
2995    This update puts together a fairly extensive but straightforward change
2996    to the way the libraries that implement the interactive system are
2997    organized:
2998    
2999       The biggest change is the elimination of structure Compiler.  As a
3000       replacement for this structure, there is now a CM library
3001       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
3002       that exports all the substructures of the original structure Compiler
3003       directly.  So instead of saying Compiler.Foo.bar one now simply
3004       says Foo.bar.  (The CM libraries actually export a collection of
3005       structures that is richer than the collection of substructures of
3006       structure Compiler.)
3007    
3008       To make the transition smooth, there is a separate library called
3009       $smlnj/compiler/compiler.cm which puts together and exports the
3010       original structure Compiler (or at least something very close to it).
3011    
3012       There are five members of the original structure Compiler
3013       that are not exported directly but which instead became members
3014       of a new structure Backend (described by signature BACKEND).  These are:
3015       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
3016       Interact (: INTERACT), structure Machine (: MACHINE), and val
3017       architecture (: string).
3018    
3019       Structure Compiler.Version has become structure CompilerVersion.
3020    
3021       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
3022       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
3023       or x86, respectively.
3024       Each of these exports the same frontend structures that
3025       $smlnj/compiler.cm exports.  But they do not have a structure Backend
3026       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
3027       Hppa, PPC, Sparc, or X86, respectively.
3028    
3029       Library $smlnj/compiler/all.cm exports the union of the exports of
3030       $smlnj/compiler/<arch>.cm
3031    
3032       There are no structures <Arch>Compiler anymore, use
3033       $smlnj/compiler/<arch>.cm instead.
3034    
3035       Library host-compiler-0.cm is gone.  Instead, the internal library
3036       that instantiates CM is now called cm0.cm.  Selection of the host
3037       compiler (backend) is no longer done here but. (Responsibility for it
3038       now lies with $smlnj/compiler/current.cm.  This seems to be more
3039       logical.)
3040    
3041       Many individual files have been moved or renamed.  Some files have
3042       been split into multiple files, and some "dead" files have been deleted.
3043    
3044    Aside from these changes to library organization, there are also changes
3045    to the way the code itself is organized:
3046    
3047       Structure Binfile has been re-implemented in such a way that it no
3048       longer needs any knowledge of the compiler.  It exclusively deals
3049       with the details of binfile layout.  It no longer invokes the
3050       compiler (for the purpose of creating new prospective binfile
3051       content), and it no longer has any knowledge of how to interpret
3052       pickles.
3053    
3054       Structure Compile (: COMPILE) has been stripped down to the bare
3055       essentials of compilation.  It no longer deals with linking/execution.
3056       The interface has been cleaned up considerably.
3057    
3058       Utility routines for dealing with linking and execution have been
3059       moved into their own substructures.
3060    
3061       (The ultimate goal of these changes is to provide a light-weight
3062       binfile loader/linker (at least for, e.g., stable libraries) that
3063       does not require CM or the compiler to be present.)
3064    
3065    CM documentation has been updated to reflect the changes to library
3066    organization.
3067    
3068    ----------------------------------------------------------------------
3069    Name: Matthias Blume
3070    Date: 2001/07/10 17:30:00 EDT
3071    Tag: Release_110_34
3072    Description:
3073    
3074    Minor tweak to 110.34 (re-tagged):
3075    
3076      - README.html file added to CVS repository
3077      - runtime compiles properly under FreeBSD 3.X and 4.X
3078    
3079    ----------------------------------------------------------------------
3080    Name: Matthias Blume
3081    Date: 2001/07/10 17:30:00 EDT
3082    Tag: Release_110_34
3083    Description:
3084    
3085    New version number (110.34). New bootfiles.
3086    
3087    ----------------------------------------------------------------------
3088    Name: Matthias Blume
3089    Date: 2001/07/09 16:00:00 EDT
3090    Tag: blume-20010709-more-varargs
3091    Description:
3092    
3093    I changed the handling of varargs in ml-nlffigen again:
3094    The ellipsis ... will now simply be ignored (with an accompanying warning).
3095    
3096    The immediate effect is that you can actually call a varargs function
3097    from ML -- but you can't actually supply any arguments beyond the ones
3098    specified explicitly.  (For example, you can call printf with its format
3099    string, but you cannot pass additional arguments.)
3100    
3101    This behavior is only marginally more useful than the one before, but
3102    it has the advantage that a function or, more importantly, a function
3103    type never gets dropped on the floor, thus avoiding follow-up problems with
3104    other types that refer to the offending one.
3105    
3106    ----------------------------------------------------------------------
3107    Name: Matthias Blume
3108    Date: 2001/07/09 11:25:00 EDT
3109    Tag: blume-20010709-varargs
3110    Description:
3111    
3112    1. ckit-lib.cm now exports structure Error
3113    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
3114       with a warning accompanied by a source location.  Moreover, it
3115       merely skips the offending function or type and proceeds with the
3116       rest of its work.u  As a result, one can safely feed C code containing
3117       "..." to ml-nlffigen.
3118    3. There are some internal improvements to CM, providing slightly
3119       more general string substitutions in the tools subsystem.
3120    
3121    ----------------------------------------------------------------------
3122    Name: Matthias Blume
3123    Date: 2001/06/27 15:10:00 EDT
3124    Tag: blume-20010627-concur
3125    Description:
3126    
3127    Fixed a small bug in CM's handling of parallel compilation.
3128    (You could observe the bug by Control-C-interrupting an ordinary
3129    CMB.make or CM.stabilize and then attaching some compile servers.
3130    The result was that all of a sudden the previously interrupted
3131    compilation would continue on its own.  This was because of
3132    an over-optimization: CM did not bother to clean out certain queues
3133    when no servers were attached "anyway", resulting in the contents
3134    of these queues to grab control when new servers did get attached.)
3135    
3136    There is also another minor update to the CM manual.
3137    
3138    ----------------------------------------------------------------------
3139    Name: Matthias Blume
3140    Date: 2001/06/26 16:15:00 EDT
3141    Tag: blume-20010626-cmdoc
3142    Description:
3143    
3144    Minor typo fixed in CM manual (syntax diagram for libraries).
3145    
3146    ----------------------------------------------------------------------
3147    Name: Matthias Blume
3148    Date: 2001/06/25 22:55:00 EDT
3149    Tag: blume-20010625-x86pc
3150    Description:
3151    
3152    Fixed a nasty bug in the X86 assembly code that caused signal
3153    handlers to fail (crash) randomly.
3154    
3155    ----------------------------------------------------------------------
3156    Name: Matthias Blume
3157    Date: 2001/06/25 12:05:00 EDT
3158    Tag: blume-20010625-nlffigen
3159    Description:
3160    
3161    This update fixes a number of minor bugs in ml-nlffigen as reported by
3162    Nick Carter <nbc@andrew.cmu.edu>.
3163    
3164      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
3165      2. Default names for generated files are now derived from the name of
3166         the C file *without its directory*.  In particular, this causes generated
3167         files to be placed locally even if the C file is in some system directory.
3168      3. Default names for generated signatures and structures are also derived
3169         from the C file name without its directory.  This avoids silly things
3170         like "structure GL/GL".
3171         (Other silly names are still possible because ml-nlffigen does not do
3172          a thorough check of whether generated names are legal ML identifiers.
3173          When in doubt, use command line arguments to force particular names.)
3174    
3175    ----------------------------------------------------------------------
3176    Name: Matthias Blume
3177    Date: 2001/06/21 12:25:00 EDT
3178    Tag: blume-20010621-eXene
3179    Description:
3180    
3181    eXene now compiles and (sort of) works again.
3182    
3183    The library name (for version > 110.33) is $/eXene.cm.
3184    
3185    I also added an new example in src/eXene/examples/nbody.  See the
3186    README file there for details.
3187    
3188    ----------------------------------------------------------------------
3189    Name: Matthias Blume
3190    Date: 2001/06/20 16:40:00 EDT
3191    Tag: blume-20010620-cml
3192    Description:
3193    
3194    CML now compiles and works again.
3195    
3196    Libraries (for version > 110.33):
3197    
3198      $cml/cml.cm            Main CML library.
3199      $cml/basis.cm          CML's version of $/basis.cm.
3200      $cml/cml-internal.cm   Internal helper library.
3201      $cml/core-cml.cm       Internal helper library.
3202      $cml-lib/trace-cml.cm  Tracing facility.
3203      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
3204    
3205    The installer (config/install.sh) has been taught how to properly
3206    install this stuff.
3207    
3208    ----------------------------------------------------------------------
3209    Name: Matthias Blume
3210    Date: 2001/06/19 17:55:00 EDT
3211    Tag: blume-20010619-instantiate
3212    Description:
3213    
3214    This un-breaks the fix for bug 1432.
3215    (The bug was originally fixed in 110.9 but I broke it again some
3216    time after that.)
3217    
3218    ----------------------------------------------------------------------
3219    Name: Matthias Blume
3220    Date: 2001/06/19 17:25:00 EDT
3221    Tag: blume-20010619-signals
3222    Description:
3223    
3224    This should (hopefully) fix the long-standing signal handling bug.
3225    (The runtime system was constructing a continuation record with an
3226    incorrect descriptor which would cause the GC to drop data on the floor...)
3227    
3228    ----------------------------------------------------------------------
3229    Name: Matthias Blume
3230    Date: 2001/06/15 15:05:00 EDT
3231    Tag: blume-20010615-moresparc
3232    Description:
3233    
3234    Here is a short late-hour update related to Sparc c-calls:
3235    
3236     -- made handling of double-word arguments a bit smarter
3237    
3238     -- instruction selection phase tries to collapse certain clumsily
3239        constructed ML-Trees; typical example:
3240    
3241            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
3242    
3243        This currently has no further impact on SML/NJ since mlriscGen does
3244        not seem to generate such patterns in the first place, and c-calls
3245        (which did generate them in the beginning) has meanwhile been fixed
3246        so as to avoid them as well.
3247    
3248    ----------------------------------------------------------------------
3249    Name: Matthias Blume
3250    Date: 2001/06/15 15:05:00 EDT
3251    Tag: blume-20010615-sparc
3252    Description:
3253    
3254    The purpose of this update is to provide an implementation of NLFFI
3255    on Sparc machines.
3256    
3257    Here are the changes in detail:
3258    
3259       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
3260       the Sparc implementation of the c-calls API.
3261       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
3262       for accessing the ML frame.  Thus, we have a real frame pointer and
3263       can freely modify %sp without need for an omit-frame-ptr phase.
3264       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
3265       this case.
3266       * ml-nlffigen has been taught to produce code for different architectures
3267       and calling conventions.
3268       * In a way similar to what was done in the x86 case, the Sparc
3269       backend uses its own specific extension to mltree.  (For example,
3270       it needs to be able to generate UNIMP instructions which are part
3271       of the calling convention.)
3272       * ml-nlffi-lib was reorganized to make it more modular (in particular,
3273       to make it easier to plug in new machine- and os-dependent parts).
3274    
3275    There are some other fairly unrelated bug fixes and cleanups as well:
3276    
3277       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
3278       that they properly share their libraries with existing SML/NJ libraries.
3279       * I fixed a minor cosmetic bug in CM, supressing certain spurious
3280       follow-up error messages.
3281       * Updates to CM/CMB documentation.
3282    
3283    TODO items:
3284    
3285       * MLRISC should use a different register as its asmTemp on the Sparc.
3286         (The current %o2 is a really bad choice because it is part of the
3287         calling conventions, so things might interfere in unexpected ways.)
3288    
3289    ----------------------------------------------------------------------
3290    Name: Matthias Blume
3291    Date: 2001/06/07
3292    Tag: blume-20010607-calls
3293    Description:
3294    
3295    A number of internal changes related to C calls and calling conventions:
3296    
3297    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
3298       number of bytes popped implicitly (by the callee).  In most cases
3299       this field is 0 but on x86/win32 it is some non-zero value.  This
3300       is information provided for the benefit of the "omit-frameptr" pass.
3301    2. The CALL instruction on the x86 carries a similar "pops" field.
3302       The instruction selection phase copies its value from the ML-Tree
3303       CALL statement.
3304    3. On all other architectures, the instruction selection phase checks
3305       whether "pops=0" and complains if not.
3306    4. The c-calls implementation for x86 now accepts two calling conventions:
3307       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
3308       up after the call and pops is set to 0.  For "stdcall", the caller
3309       does nothing, leaving the cleanup to the callee; pops is set to
3310       the number of bytes that were pushed onto the stack.
3311    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
3312       distinguish between "ccall" and "stdcall".
3313    6. The UNIMP instruction has been added to the supported Sparc instruction
3314       set. (This is needed for implementing the official C calling convention
3315       on this architecture.)
3316    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
3317       work with the latest CM.
3318    
3319    ----------------------------------------------------------------------
3320    Name: Matthias Blume
3321    Date: 2001/06/05 15:10:00 EDT
3322    Tag: blume-20010605-cm-index
3323    Description:
3324    
3325    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
3326    
3327    1. CM can now generate "index files".  These are human-readable files
3328       that list on a per-.cm-file basis each toplevel symbol defined or
3329       imported.  The location of the index file for
3330       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
3331       To enable index-file generation, set CM.Control.generate_index to true
3332       or export an environment-symbol: export CM_GENERATE_INDEX=true.
3333    
3334       The CM manual has been updated accordingly.
3335    
3336    2. I made some slight modifications to the c-calls API in MLRISC.
3337    
3338         a) There is now a callback to support saving/restoring of
3339            dedicated but caller-save registers around the actual call
3340            instruction.
3341         b) One can optionally specify a comment-annotation for the
3342            call instruction.
3343    
3344    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
3345       (For example, the comment annotation shows the C prototype of
3346        the function being called.)
3347    
3348    ----------------------------------------------------------------------
3349    Name: Matthias Blume
3350    Date: 2001/06/01 13:30:00 EDT
3351    Tag: blume-20010601-nlffi-cleanup
3352    Description:
3353    
3354    This is mostly a cleanup of MLFFI stuff:
3355    
3356       - some signature files have been put into a more exposed place
3357       - the ugly 'f type parameter is gone (simplifies types tremendously!)
3358       - ml-nlffigen changed accordingly
3359       - tutorial updated
3360    
3361    Other changes:
3362    
3363       - author's affiliation in CM manual(s) updated
3364       - some more recognized keywords added to Allen's sml.sty
3365    
3366    ----------------------------------------------------------------------
3367    Name: Matthias Blume
3368    Date: 2001/05/25 15:30:00 EDT
3369    Tag: blume-20010525-iptr
3370    Description:
3371    
3372      - put the official 110.33-README (as it appears on the ftp server) under
3373        CVS
3374      - fixed a small bug related to incomplete pointer types in
3375        ml-nlffigen
3376      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
3377        (it does not need the 'f type parameter)
3378    
3379    ----------------------------------------------------------------------
3380    Name: Matthias Blume
3381    Date: 2001/05/23 14:30:00 EDT
3382    Tag: Release_110_33
3383    Description:
3384    
3385    New version number (110.33).  New bootfiles.
3386    
3387    ----------------------------------------------------------------------
3388    Name: Matthias Blume
3389    Date: 2001/05/22 18:06:00 EDT
3390    Tag: blume-20010522-targets
3391    Description:
3392    
3393    Made install.sh use file config/targets.customized if it exists, falling
3394    back to config/targets if it doesn't.  This way one can have a customized
3395    version of the targets file without touching the "real thing", thus
3396    eliminating the constant fear of accidentally checking something bogus
3397    back into the CVS repository...  (File config/targets.customized must
3398    not be added to the repository!)
3399    
3400    ----------------------------------------------------------------------
3401    Name: Matthias Blume
3402    Date: 2001/05/22 16:30:00 EDT
3403    Tag: blume-20010522-minitut
3404    Description:
3405    
3406    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
3407       struct returns.
3408    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
3409       incomplete, preliminary documentation for NLFFI.
3410    
3411    ----------------------------------------------------------------------
3412    Name: Matthias Blume
3413    Date: 2001/05/14 11:30:00 EDT
3414    Tag: blume-20010514-script
3415    Description:
3416    
3417    Some bugs in install script fixed.
3418    
3419    In addition to that I also made a slight change to the NLFFI API:
3420    Functors generated by ml-nlffigen now take the dynamic library as a
3421    straight functor argument, not as a suspended one.  (The original
3422    functor code used to force the suspension right away anyway, so there
3423    was nothing gained by this complication of the interface.)
3424    
3425    ----------------------------------------------------------------------
3426    Name: Matthias Blume
3427    Date: 2001/05/11 14:35:00 EDT
3428    Tag: blume-20010511-ml-nlffi
3429    Description:
3430    
3431    I finally took the plunge and added my new FFI code to the main
3432    repository.  For x86-linux it is now ready for prime-time.
3433    
3434    There are two new subdirectories of "src":
3435    
3436      - ml-nlffi-lib:
3437           The utility library for programs using the FFI interface.
3438           Here is the implementation of $/c.cm and its associated low-level
3439           partners $/c-int.cm and $/memory.cm.
3440      - ml-nlffigen:
3441           A stand-alone program for generating ML glue code from C source
3442           code.
3443    
3444    Building ml-nlffigen requires $/ckit-lib.cm.
3445    
3446    The config/install.sh script has been updates to do the Right Thing
3447    (hopefully).
3448    
3449    Notice that the source tree for the C-Kit will not be put under "src"
3450    but directly under the installation root directory.  (This is the
3451    structure that currently exists on the CVS server when you check out
3452    module "sml".)  Fortunately, config/install.sh knows about this oddity.
3453    
3454    Bugs: No documentation yet.
3455    
3456    ----------------------------------------------------------------------
3457    Name: Matthias Blume
3458    Date: 2001/05/09 16:35:00 EDT
3459    Tag: blume-20010509-cpscontract
3460    Description:
3461    
3462    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
3463    wrapper/unwrapper elimination did not decrement usage counts and some
3464    dead variables got overlooked by the dead-up logic.)
3465    
3466    ----------------------------------------------------------------------
3467    Name: Lal George
3468    Date: 2001/05/08  17:26:09 EDT
3469    Tag: george-20010508-omit-frameptr
3470    Description:
3471    
3472    Changes to implement the omit-frame-pointer optimization to support
3473    raw C calls. For now, there is only support on the Intel x86, but
3474    other architectures will follow as more experience is gained with this.
3475    
3476    
3477    ----------------------------------------------------------------------
3478    Name: Matthias Blume
3479    Date: 2001/05/07 14:40:00 EDT
3480    Tag: blume-20010507-proxies
3481    Description:
3482    
3483    I made into "proxy libraries" all libraries that qualify for such a
3484    change.  (A qualifying library is a library that has another library or
3485    groups as its sole member and repeats that member's export list
3486    verbatim.  A proxy library avoids this repetition by omitting its export
3487    list, effectively inheriting the list that its (only) member exports.
3488    See the CM manual for more explanation.)
3489    The main effect is that explicit export lists for these libraries
3490    do not have to be kepts in sync, making maintenance a bit easier.
3491    
3492    I also added copyright notices to many .cm-files.
3493    
3494    Last but not least, I made a new set of bootfiles.
3495    
3496    ----------------------------------------------------------------------
3497    Name: Matthias Blume
3498    Date: 2001/05/04 17:00:00 EDT
3499    Tag: blume-20010504-cm-lsplit
3500    Description:
3501    
3502    0. John merged pending changes to $/smlnj-lib.cm
3503    
3504    1. Allen's previous change accidentally backed out of one of Lal's
3505       earlier changes.  I undid this mistake (re-introducing Lal's change).
3506    
3507    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
3508       within the compiler where applicable.  There is some code simplification
3509       because of that.
3510    
3511    3. The "split" phase (in FLINT) is now part of the default list of phases.
3512       Compiler.Control.LambdaSplitting.* can be used to globally control the
3513       lambda-splitting (cross-module-inlining) engine.  In addition to that,
3514       it can now also be controlled on a per-source basis: CM has been taught
3515       a new tool parameter applicable to ML source files.
3516    
3517       - To turn lambda-splitting off completely:
3518            local open Compiler.Control.LambdaSplitting in
3519                val _ = set Off
3520            end
3521       - To make "no lambda-splitting" the global default (but allow per-source
3522         overriding); this is the initial setting:
3523            local open Compiler.Control.LambdaSplitting in
3524                val _ = set (Default NONE)
3525            end
3526       - To make "lambda-splitting with aggressiveness a" the global default
3527         (and allow per-source overriding):
3528            local open Compiler.Control.LambdaSplitting in
3529                val _ = set (Default (SOME a))
3530            end
3531    
3532       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
3533         write (in the respective .cm-file):
3534            a.sml (lambdasplitting:off)
3535       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
3536            a.sml (lambdasplitting:on)
3537       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
3538         <a> is a decimal non-negative integer):
3539            a.sml (lambdasplitting:<a>)
3540       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
3541            a.sml (lambdasplitting:infinity)
3542       - To use the global default for a.sml:
3543            a.sml (lambdasplitting:default)
3544         or simply
3545            a.sml
3546    
3547    ----------------------------------------------------------------------
3548    Name: Allen Leung
3549    Date: 2001/05/04 01:57:00 EDT
3550    Tag: leunga-20010504-sync
3551    Description:
3552    
3553      MLRISC features.
3554    
3555      1. Fix to CMPXCHG instructions.
3556      2. Changed RA interface to allow annotations in callbacks.
3557      3. Added a new method to the stream interface to allow annotations updates.
3558    
3559    ----------------------------------------------------------------------
3560    Name: Matthias Blume
3561    Date: 2001/05/01 11:45:00 EDT
3562    Tag: blume-20010501-pcedittmp
3563    Description:
3564    
3565    Changed install.sh to use the current working directory instead of
3566    /usr/tmp for a temporary file (pcedittmp).  The previous choice
3567    of /usr/tmp caused trouble with MacOS X because of file premission
3568    problems.
3569    
3570    ----------------------------------------------------------------------
3571    Name: Matthias Blume
3572    Date: 2001/04/20 11:10:00 EDT
3573    Tag: blume-20010420-inMLflag
3574    Description:
3575    
3576     - added vp_limitPtrMask to vproc-state.h
3577       (for use by the raw-C-calls mechanism to implement proper interrupt
3578        handling)
3579     - made the ML compiler aware of various data-structure offsets so it
3580       can generate code for accessing the vp_inML flag and vp_limitPtrMask
3581     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
3582       raw C-calls
3583    
3584    ----------------------------------------------------------------------
3585    Name: Lal George
3586    Date: 2001/04/20 09:15:28 EDT
3587    Tag: george-20010420-macosX
3588    Description:
3589    
3590     - Changes to port to Mac OS X; Darwin.
3591    
3592     - In the process I found that sqrt was broken on the PPC, because the
3593       fsqrt instruction is not implemented.
3594    
3595    ----------------------------------------------------------------------
3596    Name: Matthias Blume
3597    Date: 2001/04/18 12:45:00 EDT
3598    Tag: blume-20010418-ccalls
3599    Description:
3600    
3601     - fixed two off-by-4 errors in the x86-specific c-calls implementation
3602       (this bug prevented structure arguments containing pointers from being
3603        passed correctly)
3604     - changed the raw-C-call code in mlriscGen.sml in such a way that
3605       structure arguments are represented as a pointer to the beginning
3606       of the structure (instead of having a series of synthesized arguments,
3607       one for each structure member)
3608    
3609     - made makeml script's verbosity level configurable via environment
3610       variable (MAKEML_VERBOSITY)
3611    
3612     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
3613       in rawmem-x86.sml; we are now using the real thing
3614    
3615    ----------------------------------------------------------------------
3616    Name: Matthias Blume
3617    Date: 2001/03/22 16:25:00 EST
3618    Tag: blume-20010322-bootfiles
3619    Description:
3620    
3621    Created a new set of bootfiles (for your automatic installation convenience).
3622    
3623    ----------------------------------------------------------------------
3624    Name: Matthias Blume
3625    Date: 2001/03/22 15:10:00 EST
3626    Tag: blume-20010322-rawmem-parcm
3627    Description:
3628    
3629    1. All "raw memory access" primitives for the new FFI are implemented now
3630       (at least on the x86).
3631    2. Some further cleanup of CM's parallel make mechanism.
3632    
3633    ----------------------------------------------------------------------
3634    Name: Matthias Blume
3635    Date: 2001/03/19 17:53:00 EST
3636    Tag: blume-20010319-parallel
3637    Description:
3638    
3639    Parallel make (using compile servers) now works again.
3640    
3641    To this end, CM.stabilize and CMB.make have been modified to work in
3642    two passes when compile servers are attached:
3643       1. Compile everything, do not perform stabilization; this pass
3644          uses compile servers
3645       2. Stabilize everything; this pass does not use compile servers
3646    If there are no compile servers, the two passes are combined into one
3647    (as before).  Splitting the passes increases the inherent parallelism
3648    in the dependency graph because the entire graph including all
3649    libraries is available at the same time.  This, in turn, improves
3650    server utilization.  The downside is that the master process will
3651    have to do some extra work after compilation is done (because for
3652    technical reasons it must re-read all the binfiles during stabilization).
3653    
3654    ----------------------------------------------------------------------
3655    Name: Matthias Blume
3656    Date: 2001/03/16 12:22:00 EST
3657    Tag: blume-20010316-bootfiles
3658    Description:
3659    
3660    Created a new set of bootfiles (for your automatic installation convenience).
3661    
3662    ----------------------------------------------------------------------
3663    Name: Matthias Blume
3664    Date: 2001/03/16 11:00:00 EST
3665    Tag: blume-20010316-MLTREE-fixup
3666    Description:
3667    
3668    This is a minor fixup for an (untagged) earlier commit by Allen.
3669    (A file was missing).
3670    
3671    ----------------------------------------------------------------------
3672    Name: Allen Leung
3673    Date: Mon Mar  5 18:54:57 EST 2001
3674    Tag: leunga-20010305-cut-support
3675    
3676    1. New support for alternative control-flow in MLTREE.
3677       Currently we support
3678    
3679          FLOW_TO(CALL ...., [k1,...,kn])
3680    
3681       This is needed for 'cuts to' in C-- and try/handle-like constructs
3682       in Moby
3683    
3684       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
3685    
3686    2. Register Allocator
3687    
3688       Changes in interface [from Fermin, John]
3689    
3690    3. Alpha 8-bit SLL support [Fermin]
3691    
3692    4. All architectures
3693    
3694       A new module (ClusterExpandCopies) for expanding parallel copies.
3695    
3696    ----------------------------------------------------------------------
3697    Name: Allen Leung
3698    Date: 2001/02/27 23:07:00 EST
3699    Tag: leunga-20010227-minor-stuff
3700    
3701    1. Alpha bug fix for CMOVNE
3702    2. Handle mltree COND(..,FCMP ...,...)
3703    3. Bug fix in simplifier
3704    
3705    ----------------------------------------------------------------------
3706    Name: Matthias Blume
3707    Date: 2001/01/30 17:50:00 EST
3708    Tag: blume-20010130-sync
3709    Description:
3710    
3711    This is just a minor update to sync my devel branch with the main brach.
3712    The only visible change is the addition of some README files.
3713    
3714    ----------------------------------------------------------------------
3715    Name: Matthias Blume
3716    Date: 2001/01/12 23:30:00 JST
3717    Tag: blume-20010112-bootfiles
3718    Description:
3719    
3720    Made a new set of bootfiles that goes with the current state of the
3721    repository.
3722    
3723    ----------------------------------------------------------------------
3724    Name: Matthias Blume
3725    Date: 2001/01/12 21:20:00 JST
3726    Tag: blume-20010112-sync
3727    Description:
3728    
3729    I am just flushing out some minor changes that had accumulated in
3730    my private branch in order to sync with the main tree.  (This is
3731    mainly because I had CVS trouble when trying to merge _into_ my
3732    private branch.)
3733    
3734    Most people should be completely unaffected by this.
3735    
3736    ----------------------------------------------------------------------
3737    Name: Allen Leung
3738    Date: Thu Jan 11 21:03:00 EST 2001
3739    Tag: leunga-20010111-labexp=mltree
3740    Description:
3741    
3742    1.  Removed the type LabelExp and replace it by MLTree.
3743    2.  Rewritten mltree-simplify with the pattern matcher tool.
3744    3.  There were some bugs in alpha code generator which would break
3745        64-bit code generation.
3746    4.  Redo the tools to generate code with the
3747    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
3748        are now generated by perl scripts.
3749    
3750    ----------------------------------------------------------------------
3751    Name: Matthias Blume
3752    Date: 2001/01/10 21:55:00 JST
3753    Tag: blume-20010110-rcc
3754    Description:
3755    
3756    The RCC stuff now seems to work (but only on the x86).
3757    This required hacking of the c-calls interface (and -implementation) in
3758    MLRISC.
3759    
3760    Normal compiler users should be unaffected.
3761    
3762    ----------------------------------------------------------------------
3763    Name: Matthias Blume
3764    Date: 2001/01/09 01:20:00 JST
3765    Tag: blume-20010109-rcc
3766    Description:
3767    
3768    This is a fairly big patch, flushing out a large number of pending
3769    changes that I made to my development copy over the last couple of days.
3770    
3771    Of practical relevance at this moment is a workaround for a pickling
3772    bug that Allen ran into the other day.  The cause of the bug itself is
3773    still unknown and it might be hard to fix it properly, but the
3774    workaround has some merits of its own (namely somewhat reducing pickling
3775    overhead for certain libraries).  Therefore, I think this solution should
3776    be satisfactory at this time.
3777    
3778    The rest of the changes (i.e., the vast majority) has to do with my
3779    ongoing efforts of providing direct support for C function calls from
3780    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
3781    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
3782    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
3783    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
3784    handle RCC.
3785    
3786    The last part (the changes to mlriscGen.sml) are still known to be
3787    wrong on the x86 and not implemented on all other architectures.  But
3788    the infrastructure is in place. I had to change a few functor
3789    signatures in the backend to be able to route the CCalls interface
3790    from MLRISC there, and I had to specialize the mltree type (on the
3791    x86) to include the necessary extensions. (The extensions themselves
3792    were already there and redy to go in MLRISC/x86).
3793    
3794    Everything should be very happy as soon as someone helps me with
3795    mlriscGen.sml...
3796    
3797    In any case, nothing of this should matter to anyone as long as the
3798    new primop is not being used (which is going to be the case unless you
3799    find it where I hid it :). The rest of the compiler is completely
3800    unaffected.
3801    
3802    ----------------------------------------------------------------------
3803    Name: Matthias Blume
3804    Date: 2001/01/05 00:30:00 JST
3805    Tag: blume-20010105-primops
3806    Description:
3807    
3808    Added some experimental support for work that I am doing right now.
3809    These changes mostly concern added primops, but there is also a new
3810    experimental C library in the runtime system (but currently not enabled
3811    anywhere except on Linux/X86).
3812    
3813    In the course of adding primops (and playing with them), I discovered that
3814    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
3815    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
3816    To recover, I made type information in INL_PRIM mandatory and changed
3817    prim.sml as well as built-in.sml accordingly.  The InLine structure now
3818    has complete, correct type information (i.e., no bottom types).
3819    
3820    Since all these changes mean that we need new binfiles, I also bumped the
3821    version number to 110.32.1.
3822    
3823    ----------------------------------------------------------------------
3824    Name: Matthias Blume
3825    Date: 2000/12/30 22:10:00 JST
3826    Tag: blume-20001230-various
3827    Description:
3828    
3829    Added proxy libraries for MLRISC and let MLRISC libraries refer
3830    to each other using path anchors.  (See CM manual for explanation.)
3831    
3832    Updated CM documentation.
3833    
3834    Fixed some bugs in CM.
3835    
3836    Implemented "proxy" libraries (= syntactic sugar for CM).
3837    
3838    Added "-quiet" option to makeml and changed runtime system accordingly.
3839