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 593, Tue Apr 4 07:26:33 2000 UTC revision 1045, Mon Jan 28 22:13:13 2002 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: 2002/01/28
18    Tag: blume-20020128-sparc-ccalls
19    Description:
20    
21    - Fixed problem with calculation of "used" registers in sparc-c-calls.
22    - Make use of the allocParam argument in sparc-c-calls.
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume
26    Date: 2002/01/28
27    Tag: blume-20020128-allocParam
28    Description:
29    
30    John Reppy:  Changes c-calls API to accept client-callback for
31    allocating extra stack space.
32    me: Corresponding changes to mlriscGen (using a dummy argument that
33        does not change the current behavior).
34    
35    ----------------------------------------------------------------------
36    Name: Matthias Blume
37    Date: 2002/01/28 12:00:00
38    Tag: Release_110_38
39    Description:
40    
41    This time for real!!!
42    
43    ----------------------------------------------------------------------
44    Name: Matthias Blume
45    Date: 2002/01/28 10:56:00 EST
46    Tag: blume-20020128-retraction
47    Description:
48    
49    0. Retracted earlier 110.38.  (The Release_110_38 tag has been replaced
50       with blume-Release_110_38-retracted.)
51    
52    1. Fixed a problem with incorrect rounding modes in real64.sml.
53       (Thanks to Andrew Mccreight <andrew.mccreight@yale.edu>.)
54    
55    2. A bug in ml-nlffigen related to the handling of unnamed structs, unions,
56       and enums fixed.  The naming of corresponding ML identifiers should
57       now be consistent again.
58    
59    ----------------------------------------------------------------------
60    Name: Allen Leung
61    Date: 2002/01/27
62    Tag: leunga-20020127-nowhere
63    Description:
64    
65       Added a target called nowhere in the configuration scripts.
66       Enabling this will build the MLRISC 'nowhere' tool (for translating
67       programs with where-clauses into legal SML code) during installation.
68    
69    ----------------------------------------------------------------------
70    Name: Matthias Blume
71    Date: 2002/01/25 21:27:00 EST
72    Tag: blume-Release_110_38-retracted
73    Description:
74    
75    Call it a (working) release!  Version is 110.38. Bootfiles are ready.
76    
77    README will be added later.
78    
79    !!! NOTE:  Re-tagged as blume-Release_110_38-retracted. Original tag
80    (Release_110_38) removed.  Reason: Last-minute bug fixes.
81    
82    ----------------------------------------------------------------------
83    Name: Matthias Blume
84    Date: 2002/01/25
85    Tag: blume-20020125-ffi
86    Description:
87    
88    A large number of tweaks and improvements to ml-nlffi-lib and
89    ml-nlffigen:
90    
91       - ML represenation types have been streamlined
92       - getter and setter functions work with concrete values, not abstract
93         ones where possible
94       - ml-nlffigen command line more flexible (see README file there)
95       - some bugs have been fixed (hopefully)
96    
97    ----------------------------------------------------------------------
98    Name: Lal George
99    Date: 2002/01/24
100    Tag: george-20020124-risc-ra-interface
101    Description:
102    
103       There is a dramatic simplification in the interface to the
104       register allocator for RISC architectures as a result of making
105       parallel copy instructions explicit.
106    
107    ----------------------------------------------------------------------
108    Name: Matthias Blume
109    Date: 2002/01/22
110    Tag: blume-20020122-x86-ccalls
111    Description:
112    
113    Bug fix for c-calls on x86 (having to do with how char- and
114    short-arguments are being handled).
115    
116    ----------------------------------------------------------------------
117    Name: Matthias Blume
118    Date: 2002/01/21
119    Tag: blume-20020121-ff
120    Description:
121    
122    Another day of fiddling with the FFI...
123    
124    1. Bug fix/workaround:  CKIT does not complain about negative array
125       dimensions, so ml-nlffigen has to guard itself against this possibility.
126       (Otherwise a negative dimension would send it into an infinite loop.)
127    
128    2. Some of the abstract types (light objects, light pointers, most "base"
129       types) in structure C are now eqtypes.
130    
131    3. Added constructors and test functions for NULL function pointers.
132    
133    ----------------------------------------------------------------------
134    Name: Matthias Blume
135    Date: 2002/01/18
136    Tag: blume-20020118-ready-for-new-release
137    Description:
138    
139    Made config/srcarchiveurl point to a new place.  (Will provide boot
140    files shortly.)
141    
142    Maybe we christen this to be 110.38?
143    
144    ----------------------------------------------------------------------
145    Name: Matthias Blume
146    Date: 2002/01/18
147    Tag: blume-20020118-more-ffifiddle
148    Description:
149    
150    Today's FFI fiddling:
151    
152      - Provided a structure CGetSet with "convenient" versions of C.Get.* and
153        C.Set.* that use concrete (MLRep.*) arguments and results instead
154        of abstract ones.
155    
156      - Provided word-style bit operations etc. for "int" representation
157        types in MLRep.S<Foo>Bitops where <Foo> ranges over Char, Int, Short,
158        and Long.
159    
160    ----------------------------------------------------------------------
161    Name: Matthias Blume
162    Date: 2002/01/18
163    Tag: blume-20020118-use-x86-fp
164    Description:
165    
166    Now that x86-fast-fp seems to be working, I turned it back on again
167    by default.  (Seems to work fine now, even with the FFI.)
168    
169    Other than that, I added some documentation about the FFI to
170    src/ml-nlffigen/README and updated the FFI test examples in
171    src/ml-nlffi-lib/Tests/*.
172    
173    ----------------------------------------------------------------------
174    Name: Allen Leung
175    Date: 2002/01/17
176    Tag: leunga-20020117-x86-fast-fp-call
177    Description:
178    
179       1. Fixed a problem with handling return fp values when x86's fast fp
180          mode is turned on.
181    
182       2. Minor pretty printing fix for cellset.  Print %st(0) as %st(0) instead
183          of %f32.
184    
185       3. Added a constructor INT32lit to the ast of MLRISC tools.
186    
187    ----------------------------------------------------------------------
188    Name: Matthias Blume
189    Date: 2002/01/16
190    Tag: blume-20020116-ffifiddle
191    Description:
192    
193    More fiddling with the FFI interface:
194    
195     - Make constness 'c instead of rw wherever possible.  This eliminates
196       the need for certain explicit coercions.  (However, due to ML's
197       value polymorphism, there will still be many cases where explicit
198       coercions are necessary.  Phantom types are not the whole answer
199       to modeling a subtyping relationship in ML.)
200    
201     - ro/rw coersions for pointers added.  (Avoids the detour through */&.)
202    
203     - "printf" test example added to src/ml-nlffi-lib/Tests.  (Demonstrates
204       clumsy workaround for varargs problem.)
205    
206    ----------------------------------------------------------------------
207    Name: Lal George
208    Date: 2002/01/15
209    Tag: <none>
210    Description:
211    
212    1. Since COPY instructions are no longer native to the architecture,
213       a generic functor can be used to implement the expandCopies function.
214    
215    2. Allowed EXPORT and IMPORT pseudo-op declarations to appear inside a
216       TEXT segment.
217    
218    ----------------------------------------------------------------------
219    Name: Matthias Blume
220    Date: 2002/01/15
221    Tag: blume-20020115-ffiupdates
222    Description:
223    
224    1. Fix for bug resulting in single-precision float values being returned
225       incorrectly from FFI calls.
226    
227    2. Small modifications to C FFI API:
228    
229        - memory-allocation routines return straight objects (no options)
230          and raise an exception in out-of-memory situations
231        - unsafe extensions to cast between function pointers and pointers
232          from/to ints
233        - added structure C_Debug as an alternative to structure C where
234          pointer-dereferencing (|*| and |*!) always check for null-pointers
235        - added open_lib' to DynLinkage;  open_lib' works like open_lib
236          but also takes a (possibly empty) list of existing library handles
237          that the current library depends on
238    
239    ----------------------------------------------------------------------
240    Name: Matthias Blume
241    Date: 2002/01/10
242    Tag: blume-20020110-newffigen
243    Description:
244    
245    1. Updates to portable graph code.
246    
247    2. Major update to ml-nlffigen and ml-nlffi-lib.  Things are much
248       more scalable now so that even huge interfaces such as the one
249       for GTK compile in finite time and space. :-)
250       See src/ml-nlffigen/README for details on what's new.
251    
252    ----------------------------------------------------------------------
253    Name: Lal George
254    Date: 2001/01/09 14:31:35 EST 2002
255    Tag: george-20011206-rm-native-copy
256    Description:
257    
258            Removed the native COPY and FCOPY instructions
259            from all the architectures and replaced it with the
260            explicit COPY instruction from the previous commit.
261    
262            It is now possible to simplify many of the optimizations
263            modules that manipulate copies. This has not been
264            done in this change.
265    
266    ----------------------------------------------------------------------
267    Name: Lal George
268    Date: 2001/12/06 16:50:13 EST 2001
269    Tag: george-20011206-mlrisc-instruction
270    Description:
271    
272    Changed the representation of instructions from being fully abstract
273    to being partially concrete. That is to say:
274    
275      from
276            type instruction
277    
278      to
279            type instr                              (* machine instruction *)
280    
281            datatype instruction =
282                LIVE of {regs: C.cellset, spilled: C.cellset}
283              | KILL of {regs: C.cellset, spilled: C.cellset}
284              | COPYXXX of {k: CB.cellkind, dst: CB.cell list, src: CB.cell list}
285              | ANNOTATION of {i: instruction, a: Annotations.annotation}
286              | INSTR of instr
287    
288    This makes the handling of certain special instructions that appear on
289    all architectures easier and uniform.
290    
291    LIVE and KILL say that a list of registers are live or killed at the
292    program point where they appear. No spill code is generated when an
293    element of the 'regs' field is spilled, but the register is moved to
294    the 'spilled' (which is present, more for debugging than anything else).
295    
296    LIVE replaces the (now deprecated) DEFFREG instruction on the alpha.
297    We used to generate:
298    
299            DEFFREG f1
300            f1 := f2 + f3
301            trapb
302    
303    but now generate:
304    
305            f1 := f2 + f3
306            trapb
307            LIVE {regs=[f1,f2,f3], spilled=[]}
308    
309    Furthermore, the DEFFREG (hack) required that all floating point instruction
310    use all registers mentioned in the instruction. Therefore f1 := f2 + f3,
311    defines f1 and uses [f1,f2,f3]! This hack is no longer required resulting
312    in a cleaner alpha implementation. (Hopefully, intel will not get rid of
313    this architecture).
314    
315    COPYXXX is intended to replace the parallel COPY and FCOPY  available on
316    all the architectures. This will result in further simplification of the
317    register allocator that must be aware of them for coalescing purposes, and
318    will also simplify certain aspects of the machine description that provides
319    callbacks related to parallel copies.
320    
321    ANNOTATION should be obvious, and now INSTR represents the honest to God
322    machine instruction set!
323    
324    The <arch>/instructions/<arch>Instr.sml files define certain utility
325    functions for making porting easier -- essentially converting upper case
326    to lower case. All machine instructions (of type instr) are in upper case,
327    and the lower case form generates an MLRISC instruction. For example on
328    the alpha we have:
329    
330      datatype instr =
331         LDA of {r:cell, b:cell, d:operand}
332       | ...
333    
334      val lda : {r:cell, b:cell, d:operand} -> instruction
335        ...
336    
337    where lda is just (INSTR o LDA), etc.
338    
339    ----------------------------------------------------------------------
340    Name: Matthias Blume
341    Date: 2001/11/22 21:40:00 EST
342    Tag: Release_110_37
343    Description:
344    
345    Release 110.37.  This time for real.
346    
347    ----------------------------------------------------------------------
348    Name: Matthias Blume
349    Date: 2001/11/21 16:35:00 EST
350    Tag: blume-20011121-foot-in-mouth
351    Description:
352    
353    Removed the "Release_110_37" tag because of a serious bug.
354    This will be re-tagged once the bug is fixed.
355    
356    ----------------------------------------------------------------------
357    Name: Matthias Blume
358    Date: 2001/11/21 16:14:00 EST
359    Tag: blume-20011121-forgottenfile
360    Description:
361    
362    Forgot to add a file.  (Just a .tex-file -- part of
363    the CM manual source.)
364    
365    ----------------------------------------------------------------------
366    Name: Matthias Blume
367    Date: 2001/11/21 16:10:00 EST
368    Tag: blume-20011121-invalid_110_37
369    Description:
370    
371    Note: I removed the original tag "Release_110_37" from this commit
372          because we found a serious bug in all non-x86 backends.
373          - Matthias
374    
375    1. Modifications to the SML/NJ code generator and to the runtime system
376       so that code object name strings are directly inserted into code
377       objects at code generation time.  The only business the runtime system
378       has with this is now to read the name strings on occasions.
379       (The encoding of the name string has also changed somewhat.)
380    
381    2. CM now implements a simple "set calculus" for specifying export lists.
382       In particular, it is now possible to refer to the export lists of
383       other libraries/groups/sources and form unions as well as differences.
384       See the latest CM manual for details.
385    
386    3. An separate notion of "proxy" libraries has again be eliminated from
387       CM's model.  (Proxy libraries are now simply a special case of using
388       the export list calculus.)
389    
390    4. Some of the existing libraries now take advantage of the new set
391       calculus.
392       (Notice that not all libraries have been converted because some
393       of the existing .cm-files are supposed to be backward compatible
394       with 110.0.x.)
395    
396    5. Some cleanup in stand-alone programs.  (Don't use "exnMessage" -- use
397       "General.exnMessage"!  The former relies on a certain hook to be
398       initialized, and that often does not happen in the stand-alone case.)
399    
400    ----------------------------------------------------------------------
401    Name: Lal George
402    Date: 2001/11/21  13:56:18 EST
403    Tag: george-2001121-pseudo-ops
404    Description:
405    
406      Implemented a complete redesign of MLRISC pseudo-ops. Now there
407      ought to never be any question of incompatabilities with
408      pseudo-op syntax expected by host assemblers.
409    
410      For now, only modules supporting GAS syntax are implemented
411      but more should follow, such as MASM, and vendor assembler
412      syntax, e.g. IBM as, Sun as, etc.
413    
414    ----------------------------------------------------------------------
415    Name: Matthias Blume
416    Date: 2001/11/14 11:52:00 EST
417    Tag: blume-20011114-srcname
418    Description:
419    
420    1. Routed the name of the current source file to mlriscgen where it
421       should be directly emitted into the code object.  (This last part
422       is yet to be done.)
423    
424    2. Some cleanup of the pgraph code to make it match the proposal that
425       I put out the other day.  (The proposal notwithstanding, things are
426       still in flux here.)
427    
428    ----------------------------------------------------------------------
429    Name: Lal George
430    Date: 2001/11/14 09:44:04 EST
431    Tag:
432    Description:
433    
434      Fix for a backpatching bug reported by Allen.
435    
436      Because the boundary between short and long span-dependent
437      instructions is +/- 128, there are an astounding number of
438      span-dependent instructions whose size is over estimated.
439    
440      Allen came up with the idea of letting the size of span
441      dependent instructions be non-monotonic, for a maxIter
442      number of times, after which the size must be monotonically
443      increasing.
444    
445      This table shows the number of span-dependent instructions
446      whose size was over-estimated as a function of maxIter, for the
447      file Parse/parse/ml.grm.sml:
448    
449         maxIter            # of instructions:
450            10                      687
451            20                      438
452            30                      198
453            40                        0
454    
455      In compiling the compiler, there is no significant difference in
456      compilation speed between maxIter=10 and maxIter=40. Actually,
457      my measurements showed that maxIter=40 was a tad faster than
458      maxIter=10! Also 96% of the  files in the compiler reach a fix
459      point within 13 iterations, so fixing maxIter at 40, while high,
460      is okay.
461    
462    ----------------------------------------------------------------------
463    Name: Matthias Blume
464    Date: 2001/10/31 15:25:00 EST
465    Tag: blume-20011031-pgraph
466    Description:
467    
468    CKIT:
469    * Changed the "Function" constructor of type Ast.ctype to carry optional
470      argument identifiers.
471    * Changed the return type of TypeUtil.getFunction accordingly.
472    * Type equality ignores the argument names.
473    * TypeUtil.composite tries to preserve argument names but gives up quickly
474      if there is a mismatch.
475    
476    installation script:
477    * attempts to use "curl" if available (unless "wget" is available as well)
478    
479    CM:
480    * has an experimental implementation of "portable graphs" which I will
481      soon propose as an implementation-independent library format
482    * there are also new libraries $/pgraph.cm and $/pgraph-util.cm
483    
484    NLFFI-LIB:
485    * some cleanup (all cosmetic)
486    
487    NLFFIGEN:
488    * temporarily disabled the mechanism that suppresses ML output for
489      C definitions whose identifiers start with an underscore character
490    * generate val bindings for enum constants
491    * user can request that only one style (light or heavy) is being used;
492      default is to use both (command-line arguments: -heavy and -light)
493    * fixed bug in handling of function types involving incomplete pointers
494    * generate ML entry points that take record arguments (i.e., using
495      named arguments) for C functions that have a prototype with named
496      arguments
497      (see changes to CKIT)
498    
499    ----------------------------------------------------------------------
500    Name: Allen Leung
501    Date: 2001/10/27 20:34:00 EDT
502    Tag: leunga-20011027-x86-fast-fp-call
503    Description:
504    
505       Fixed the bug described in blume-20010920-slowfp.
506    
507       The fix involves
508          1. generating FCOPYs in FSTP in ia32-svid
509          2. marking a CALL with the appropriate annotation
510    
511    ----------------------------------------------------------------------
512    Name: Matthias Blume
513    Date: 2001/10/16 11:32:00 EDT
514    Tag: blume-20011016-netbsd
515    Description:
516    
517    Underscore patch from Chris Richards (fixing problem with compiling
518    runtime system under recent NetBSD).
519    
520    ----------------------------------------------------------------------
521    Name: Allen Leung
522    Date: 2001/10/12 17:18:32 EDT 2001
523    Tag: leung-20011012-x86-printflowgraph
524    Description:
525    
526    X86RA now uses a valid (instead of dummy) PrintFlowgraph module.
527    
528    ----------------------------------------------------------------------
529    Name: Lal George
530    Date: 2001/10/11 23:51:34 EDT
531    Tag: george-20011011-too-many-instrs
532    Description:
533    
534    The representation of a program point never expected to see more
535    than 65536 instructions in a basic block!
536    
537    ----------------------------------------------------------------------
538    Name: Lal George
539    Date: 2001/10/09 09:41:37 EDT
540    Tag: george-20011008-mlrisc-labels
541    Description:
542    
543    Changed the machine description files to support printing of
544    local and global labels in assembly code, based on host assembler
545    conventions.
546    
547    ----------------------------------------------------------------------
548    Name: Matthias Blume
549    Date: 2001/09/25 15:25:00 EDT
550    Tag: blume-20010925-exninfo
551    Description:
552    
553    I provided a non-hook implementation of exnName (at the toplevel) and
554    made the "dummy" implementation of exnMessage (at the toplevel) more
555    useful: if nothing gets "hooked in", then at least you are going to
556    see the exception name and a message indicating why you don't see more.
557    
558    [For the time being, programs that need exnMessage and want to use
559    ml-build should either use General.exnMessage (strongly recommended) or
560    refer to structure General at some other point so that CM sees a
561    static dependency.]
562    
563    [Similar remarks go for "print" and "use":  If you want to use their
564    functionality in stand-alone programs generated by ml-build, then use
565    TextIO.output and Backend.Interact.useFile (from $smlnj/compiler.cm).]
566    
567    ----------------------------------------------------------------------
568    Name: Matthias Blume
569    Date: 2001/09/20 17:28:00 EDT
570    Tag: blume-20010920-slowfp
571    Description:
572    
573    Allen says that x86-fast-fp is not safe yet, so I turned it off again...
574    
575    ----------------------------------------------------------------------
576    Name: Matthias Blume
577    Date: 2001/09/20 17:20:00 EDT
578    Tag: blume-20010920-canonicalpaths
579    Description:
580    
581    0. Updated the BOOT file (something that I forgot to do earlier).
582    
583    1. Small internal change to CM so that it avoids "/../" in filenames
584       as much as possible (but only where it is safe).
585    
586    2. Changed config/_run-sml (resulting in a changed bin/.run-sml) so
587       that arguments that contain delimiters are passed through correctly.
588       This change also means that all "special" arguments of the form
589       @SMLxxx... must come first.
590    
591    3. Changed install script to put relative anchor names for tool commands
592       into pathconfig.
593    
594    ----------------------------------------------------------------------
595    Name: Matthias Blume
596    >>>>>>> 1.169
597    Date: 2001/09/18 15:35:00 EDT
598    Tag: blume-20010918-readme11036
599    Description:
600    
601    Added README files.
602    
603    ----------------------------------------------------------------------
604    Name: Matthias Blume
605    Date: 2001/09/18 11:45:00 EDT
606    Tag: Release_110_36 (retag)
607    Description:
608    
609    Fixed mistake in config/preloads. Retagged as 110.36.
610    
611    ----------------------------------------------------------------------
612    Name: Matthias Blume
613    Date: 2001/09/18 09:40:00 EDT
614    Tag: Release_110_36_orig (tag changed)
615    Description:
616    
617    New version (110.36).  New bootfiles.
618    
619    ----------------------------------------------------------------------
620    Name: Matthias Blume
621    Date: 2001/09/14 16:15:00 EDT
622    Tag: blume-20010914-x86fastfp
623    Description:
624    
625    John committed some changes that Allen made, in particular a (hopefully)
626    correctly working version of the x86-fp module.
627    
628    I changed the default setting of the Control.MLRISC.getFlag "x86-fast-fp"
629    flag to "true".  Everything seems to compile to a fixpoint ok, and
630    "mandelbrot" speeds up by about 15%.
631    
632    ----------------------------------------------------------------------
633    Name: Matthias Blume
634    Date: 2001/09/13 11:20:00 EDT
635    Tag: blume-20010913-minimal
636    Description:
637    
638    1. Stefan Monnier's patch to fix a miscompilation problem that
639       was brought to light by John Reppy's work on Moby.
640    
641    2. Implemented a minimal "structure Compiler" that contains just
642       "version" and "architecture".  The minimal version will be
643       available when the full version is not.  This is for backward-
644       compatibility with code that wants to test Compiler.version.
645    
646    ----------------------------------------------------------------------
647    Name: Matthias Blume
648    Date: 2001/08/28 14:03:00 EDT
649    Tag: blume-20010828-ml-lex
650    Description:
651    
652    Fix for bug 1581, received from Neophytos Michael.
653    
654    ----------------------------------------------------------------------
655    Name: Matthias Blume
656    Date: 2001/08/27 11:20:00 EDT
657    Tag: blume-20010827-readme11035
658    Description:
659    
660    Fleshed out the README file for 110.35.
661    
662    ----------------------------------------------------------------------
663    Name: Matthias Blume
664    Date: 2001/08/24 17:10:00 EDT
665    Tag: Release_110_35
666    Description:
667    
668    New version number (110.35).  New bootfiles.
669    
670    ----------------------------------------------------------------------
671    Name: Lal George
672    Date: 2001/08/24 13:47:18 EDT 2001
673    Tag: george-20010824-MLRISC-graphs
674    Description:
675    
676     removed clusters from MLRISC completely and replaced with graphs.
677    
678    ----------------------------------------------------------------------
679    Name: Matthias Blume
680    Date: 2001/08/23 17:50:00 EDT
681    Tag: blume-20010823-toplevel
682    Description:
683    
684    - some reorganization of the code that implements various kinds of
685      environments in the compiler (static, dynamic, symbolic, combined)
686    - re-implemented the EnvRef module so that evalStream works properly
687      (if the stream contains references to "use", "CM.make", etc.)
688    - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
689    
690    ----------------------------------------------------------------------
691    Name: Matthias Blume
692    Date: 2001/08/20 15:50 EDT
693    Tag: blume20010820-slipup
694    Description:
695    
696    I forgot to commit a few files.  Here they are...
697    
698    ----------------------------------------------------------------------
699    Name: Matthias Blume
700    Date: 2001/08/20 15:35:00 EDT
701    Tag: blume-20010820-debugprof
702    Description:
703    
704    !!!! NEW BOOTFILES !!!!
705    
706    This is another round of reorganizing the compiler sources.  This
707    time the main goal was to factor out all the "instrumentation"
708    passes (for profiling and backtracing) into their own library.
709    The difficulty was to do it in such a way that it does not depend
710    on elaborate.cm but only on elabdata.cm.
711    
712    Therefore there have been further changes to both elaborate.cm and
713    elabdata.cm -- more "generic" things have been moved from the former
714    to the latter.  As a result, I was forced to split the assignment
715    of numbers indicating "primtyc"s into two portions: SML-generic and
716    SML/NJ-specific.  Since it would have been awkward to maintain,
717    I bit the bullet and actually _changed_ the mapping between these
718    numbers and primtycs.  The bottom line of this is that you need
719    a new set of bin- and bootfiles.
720    
721    I have built new bootfiles for all architectures, so doing a fresh
722    checkout and config/install.sh should be all you need.
723    
724    The newly created library's name is
725    
726        $smlnj/viscomp/debugprof.cm
727    
728    and its sources live under
729    
730        src/compiler/DebugProf
731    
732    ----------------------------------------------------------------------
733    Name: Matthias Blume
734    Date: 2001/08/15 17:15:00 EDT
735    Tag: blume-20010815-compreorg
736    Description:
737    
738    This is a first cut at reorganizing the CM libraries that make up the
739    core of the compiler.  The idea is to separate out pieces that could
740    be used independently by tools, e.g., the parser, the typechecker, etc.
741    
742    The current status is a step in this direction, but it is not quite
743    satisfactory yet.  Expect more changes in the future.
744    
745    Here is the current (new) organization...
746    
747        What used to be $smlnj/viscomp/core.cm is now divided into
748        six CM libraries:
749    
750             $smlnj/viscomp/basics.cm
751                           /parser.cm
752                           /elabdata.cm
753                           /elaborate.cm
754                           /execute.cm
755                           /core.cm
756    
757        The CM files for these libraries live under src/system/smlnj/viscomp.
758        All these libraries are proxy libraries that contain precisely
759        one CM library component.  Here are the locations of the components
760        (all within the src/compiler tree):
761    
762             Basics/basics.cm
763             Parse/parser.cm
764             ElabData/elabdata.cm
765             Elaborator/elaborate.cm
766             Execution/execute.cm
767             core.cm
768    
769         [This organization is the same that has been used already
770         for a while for the architecture-specific parts of the visible
771         compiler and for the old version of core.cm.]
772    
773         As you will notice, many source files have been moved from their
774         respective original locations to a new home in one of the above
775         subtrees.
776    
777         The division of labor between the new libraries is the following:
778    
779             basics.cm:
780                - Simple, basic definitions that pertain to many (or all) of
781                  the other libraries.
782             parser.cm:
783                - The SML parser, producing output of type Ast.dec.
784                - The type family for Ast is also defined and exported here.
785             elabdata.cm:
786                - The datatypes that describe input and output of the elaborator.
787                  This includes types, absyn, and static environments.
788             elaborator.cm:
789                - The SML/NJ type checker and elaborator.
790                  This maps an Ast.dec (with a given static environment) to
791                  an Absyn.dec (with a new static environment).
792                - This libraries implements certain modules that used to be
793                  structures as functors (to remove dependencies on FLINT).
794             execute.cm:
795                - Everything having to do with executing binary code objects.
796                - Dynamic environments.
797             core.cm:
798                - SML/NJ-specific instantiations of the elaborator and MLRISC.
799                - Top-level modules.
800                - FLINT (this should eventually become its own library)
801    
802    Notes:
803    
804    I am not 100% happy with the way I separated the elaborator (and its
805    data structures) from FLINT.  Two instances of the same problem:
806    
807        1. Data structures contain certain fields that carry FLINT-specific
808           information.  I hacked around this using exn and the property list
809           module from smlnj-lib.  But the fact that there are middle-end
810           specific fields around at all is a bit annoying.
811    
812        2. The elaborator calculates certain FLINT-related information.  I tried
813           to make this as abstract as I could using functorization, but, again,
814           the fact that the elaborator has to perform calculations on behalf
815           of the middle-end at all is not nice.
816    
817        3. Having to used exn and property lists is unfortunate because it
818           weakens type checking.  The other alternative (parameterizing
819           nearly *everything*) is not appealing, though.
820    
821    I removed the "rebinding =" warning hack because due to the new organization
822    it was awkward to maintain it.  As a result, the compiler now issues some of
823    these warnings when compiling init.cmi during bootstrap compilation. On
824    the plus side, you also get a warning when you do, for example:
825       val op = = Int32.+
826    which was not the case up to now.
827    
828    I placed "assign" and "deref" into the _Core structure so that the
829    code that deals with the "lazy" keyword can find them there.  This
830    removes the need for having access to the primitive environment
831    during elaboration.
832    
833    ----------------------------------------------------------------------
834    Name: Matthias Blume
835    Date: 2001/08/13
836    Tag: blume-20010813-closures
837    Description:
838    
839    This fix was sent to us by Zhong Shao.  It is supposed to improve the
840    performance of certain loops by avoiding needless closure allocation.
841    
842    ----------------------------------------------------------------------
843    Name: Lal George
844    Date: 2001/07/31 10:03:23 EDT 2001
845    Tag: george-20010731-x86-fmalloc
846    Description: Fixed bug in x86 calls
847    
848        There was a bug where call instructions would mysteriously
849        vanish. The call instruction had to be one that returned
850        a floating point value.
851    
852    ----------------------------------------------------------------------
853    Name: Lal George
854    Date: 2001/07/19 16:36:29 EDT 2001
855    Tag: george-20010719-simple-cells
856    Description:
857    
858    I have dramatically simplified the interface for CELLS in MLRISC.
859    
860    In summary, the cells interface is broken up into three parts:
861    
862      1. CellsBasis : CELLS_BASIS
863    
864            CellsBasis is a top level structure and common for all
865            architectures.  it contains the definitions of basic datatypes
866            and utility  functions over these types.
867    
868      2. functor Cells() : CELLS
869    
870            Cells generates an interface for CELLS that incorporates the
871            specific resources on the target architecture, such as the
872            presence of special register classes, their number and size,
873            and various useful substructures.
874    
875      3. <ARCH>CELLS
876    
877            e.g. SparcCells: SPARCCELLS
878    
879            <ARCH>CELLS usually contains additional bindings for special
880            registers  on the architecture, such as:
881    
882                    val r0 : cell           (* register zero *)
883                    val y : cell            (* Y register *)
884                    val psr : cell          (* processor status register *)
885                    ...
886    
887            The structure returned by applying the Cells functor is opened
888            in this interface.
889    
890    The main implication of all this is that the datatypes for cells is
891    split between CellsBasis and CELLS -- a fairly simple change for user
892    code.
893    
894    In the old scheme the CELLS interface had a definitional binding of
895    the form:
896    
897            signature CELLS = sig
898    
899               structure CellsBasis = CellsBasis
900    
901               ...
902    
903            end
904    
905    With all the sharing constraints that goes on in MLRISC, this old
906    design  quickly leads to errors such as:
907    
908            "structure definition spec inside of sharing ... "
909    
910    
911    and appears to require an unacceptable amount of sharing and where
912    constraint hackery.
913    
914    I think this error message (the interaction of definitional specs and
915    sharing) requires more explanation on our web page.
916    
917    ----------------------------------------------------------------------
918    Name: Matthias Blume
919    Date: 2001/07/19 15:00:00 EDT
920    Tag: blume-20010719-libreorg
921    Description:
922    
923    This update puts together a fairly extensive but straightforward change
924    to the way the libraries that implement the interactive system are
925    organized:
926    
927       The biggest change is the elimination of structure Compiler.  As a
928       replacement for this structure, there is now a CM library
929       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
930       that exports all the substructures of the original structure Compiler
931       directly.  So instead of saying Compiler.Foo.bar one now simply
932       says Foo.bar.  (The CM libraries actually export a collection of
933       structures that is richer than the collection of substructures of
934       structure Compiler.)
935    
936       To make the transition smooth, there is a separate library called
937       $smlnj/compiler/compiler.cm which puts together and exports the
938       original structure Compiler (or at least something very close to it).
939    
940       There are five members of the original structure Compiler
941       that are not exported directly but which instead became members
942       of a new structure Backend (described by signature BACKEND).  These are:
943       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
944       Interact (: INTERACT), structure Machine (: MACHINE), and val
945       architecture (: string).
946    
947       Structure Compiler.Version has become structure CompilerVersion.
948    
949       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
950       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
951       or x86, respectively.
952       Each of these exports the same frontend structures that
953       $smlnj/compiler.cm exports.  But they do not have a structure Backend
954       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
955       Hppa, PPC, Sparc, or X86, respectively.
956    
957       Library $smlnj/compiler/all.cm exports the union of the exports of
958       $smlnj/compiler/<arch>.cm
959    
960       There are no structures <Arch>Compiler anymore, use
961       $smlnj/compiler/<arch>.cm instead.
962    
963       Library host-compiler-0.cm is gone.  Instead, the internal library
964       that instantiates CM is now called cm0.cm.  Selection of the host
965       compiler (backend) is no longer done here but. (Responsibility for it
966       now lies with $smlnj/compiler/current.cm.  This seems to be more
967       logical.)
968    
969       Many individual files have been moved or renamed.  Some files have
970       been split into multiple files, and some "dead" files have been deleted.
971    
972    Aside from these changes to library organization, there are also changes
973    to the way the code itself is organized:
974    
975       Structure Binfile has been re-implemented in such a way that it no
976       longer needs any knowledge of the compiler.  It exclusively deals
977       with the details of binfile layout.  It no longer invokes the
978       compiler (for the purpose of creating new prospective binfile
979       content), and it no longer has any knowledge of how to interpret
980       pickles.
981    
982       Structure Compile (: COMPILE) has been stripped down to the bare
983       essentials of compilation.  It no longer deals with linking/execution.
984       The interface has been cleaned up considerably.
985    
986       Utility routines for dealing with linking and execution have been
987       moved into their own substructures.
988    
989       (The ultimate goal of these changes is to provide a light-weight
990       binfile loader/linker (at least for, e.g., stable libraries) that
991       does not require CM or the compiler to be present.)
992    
993    CM documentation has been updated to reflect the changes to library
994    organization.
995    
996    ----------------------------------------------------------------------
997    Name: Matthias Blume
998    Date: 2001/07/10 17:30:00 EDT
999    Tag: Release_110_34
1000    Description:
1001    
1002    Minor tweak to 110.34 (re-tagged):
1003    
1004      - README.html file added to CVS repository
1005      - runtime compiles properly under FreeBSD 3.X and 4.X
1006    
1007    ----------------------------------------------------------------------
1008    Name: Matthias Blume
1009    Date: 2001/07/10 17:30:00 EDT
1010    Tag: Release_110_34
1011    Description:
1012    
1013    New version number (110.34). New bootfiles.
1014    
1015    ----------------------------------------------------------------------
1016    Name: Matthias Blume
1017    Date: 2001/07/09 16:00:00 EDT
1018    Tag: blume-20010709-more-varargs
1019    Description:
1020    
1021    I changed the handling of varargs in ml-nlffigen again:
1022    The ellipsis ... will now simply be ignored (with an accompanying warning).
1023    
1024    The immediate effect is that you can actually call a varargs function
1025    from ML -- but you can't actually supply any arguments beyond the ones
1026    specified explicitly.  (For example, you can call printf with its format
1027    string, but you cannot pass additional arguments.)
1028    
1029    This behavior is only marginally more useful than the one before, but
1030    it has the advantage that a function or, more importantly, a function
1031    type never gets dropped on the floor, thus avoiding follow-up problems with
1032    other types that refer to the offending one.
1033    
1034    ----------------------------------------------------------------------
1035    Name: Matthias Blume
1036    Date: 2001/07/09 11:25:00 EDT
1037    Tag: blume-20010709-varargs
1038    Description:
1039    
1040    1. ckit-lib.cm now exports structure Error
1041    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
1042       with a warning accompanied by a source location.  Moreover, it
1043       merely skips the offending function or type and proceeds with the
1044       rest of its work.u  As a result, one can safely feed C code containing
1045       "..." to ml-nlffigen.
1046    3. There are some internal improvements to CM, providing slightly
1047       more general string substitutions in the tools subsystem.
1048    
1049    ----------------------------------------------------------------------
1050    Name: Matthias Blume
1051    Date: 2001/06/27 15:10:00 EDT
1052    Tag: blume-20010627-concur
1053    Description:
1054    
1055    Fixed a small bug in CM's handling of parallel compilation.
1056    (You could observe the bug by Control-C-interrupting an ordinary
1057    CMB.make or CM.stabilize and then attaching some compile servers.
1058    The result was that all of a sudden the previously interrupted
1059    compilation would continue on its own.  This was because of
1060    an over-optimization: CM did not bother to clean out certain queues
1061    when no servers were attached "anyway", resulting in the contents
1062    of these queues to grab control when new servers did get attached.)
1063    
1064    There is also another minor update to the CM manual.
1065    
1066    ----------------------------------------------------------------------
1067    Name: Matthias Blume
1068    Date: 2001/06/26 16:15:00 EDT
1069    Tag: blume-20010626-cmdoc
1070    Description:
1071    
1072    Minor typo fixed in CM manual (syntax diagram for libraries).
1073    
1074    ----------------------------------------------------------------------
1075    Name: Matthias Blume
1076    Date: 2001/06/25 22:55:00 EDT
1077    Tag: blume-20010625-x86pc
1078    Description:
1079    
1080    Fixed a nasty bug in the X86 assembly code that caused signal
1081    handlers to fail (crash) randomly.
1082    
1083    ----------------------------------------------------------------------
1084    Name: Matthias Blume
1085    Date: 2001/06/25 12:05:00 EDT
1086    Tag: blume-20010625-nlffigen
1087    Description:
1088    
1089    This update fixes a number of minor bugs in ml-nlffigen as reported by
1090    Nick Carter <nbc@andrew.cmu.edu>.
1091    
1092      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
1093      2. Default names for generated files are now derived from the name of
1094         the C file *without its directory*.  In particular, this causes generated
1095         files to be placed locally even if the C file is in some system directory.
1096      3. Default names for generated signatures and structures are also derived
1097         from the C file name without its directory.  This avoids silly things
1098         like "structure GL/GL".
1099         (Other silly names are still possible because ml-nlffigen does not do
1100          a thorough check of whether generated names are legal ML identifiers.
1101          When in doubt, use command line arguments to force particular names.)
1102    
1103    ----------------------------------------------------------------------
1104    Name: Matthias Blume
1105    Date: 2001/06/21 12:25:00 EDT
1106    Tag: blume-20010621-eXene
1107    Description:
1108    
1109    eXene now compiles and (sort of) works again.
1110    
1111    The library name (for version > 110.33) is $/eXene.cm.
1112    
1113    I also added an new example in src/eXene/examples/nbody.  See the
1114    README file there for details.
1115    
1116    ----------------------------------------------------------------------
1117    Name: Matthias Blume
1118    Date: 2001/06/20 16:40:00 EDT
1119    Tag: blume-20010620-cml
1120    Description:
1121    
1122    CML now compiles and works again.
1123    
1124    Libraries (for version > 110.33):
1125    
1126      $cml/cml.cm            Main CML library.
1127      $cml/basis.cm          CML's version of $/basis.cm.
1128      $cml/cml-internal.cm   Internal helper library.
1129      $cml/core-cml.cm       Internal helper library.
1130      $cml-lib/trace-cml.cm  Tracing facility.
1131      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
1132    
1133    The installer (config/install.sh) has been taught how to properly
1134    install this stuff.
1135    
1136    ----------------------------------------------------------------------
1137    Name: Matthias Blume
1138    Date: 2001/06/19 17:55:00 EDT
1139    Tag: blume-20010619-instantiate
1140    Description:
1141    
1142    This un-breaks the fix for bug 1432.
1143    (The bug was originally fixed in 110.9 but I broke it again some
1144    time after that.)
1145    
1146    ----------------------------------------------------------------------
1147    Name: Matthias Blume
1148    Date: 2001/06/19 17:25:00 EDT
1149    Tag: blume-20010619-signals
1150    Description:
1151    
1152    This should (hopefully) fix the long-standing signal handling bug.
1153    (The runtime system was constructing a continuation record with an
1154    incorrect descriptor which would cause the GC to drop data on the floor...)
1155    
1156    ----------------------------------------------------------------------
1157    Name: Matthias Blume
1158    Date: 2001/06/15 15:05:00 EDT
1159    Tag: blume-20010615-moresparc
1160    Description:
1161    
1162    Here is a short late-hour update related to Sparc c-calls:
1163    
1164     -- made handling of double-word arguments a bit smarter
1165    
1166     -- instruction selection phase tries to collapse certain clumsily
1167        constructed ML-Trees; typical example:
1168    
1169            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
1170    
1171        This currently has no further impact on SML/NJ since mlriscGen does
1172        not seem to generate such patterns in the first place, and c-calls
1173        (which did generate them in the beginning) has meanwhile been fixed
1174        so as to avoid them as well.
1175    
1176    ----------------------------------------------------------------------
1177    Name: Matthias Blume
1178    Date: 2001/06/15 15:05:00 EDT
1179    Tag: blume-20010615-sparc
1180    Description:
1181    
1182    The purpose of this update is to provide an implementation of NLFFI
1183    on Sparc machines.
1184    
1185    Here are the changes in detail:
1186    
1187       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
1188       the Sparc implementation of the c-calls API.
1189       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
1190       for accessing the ML frame.  Thus, we have a real frame pointer and
1191       can freely modify %sp without need for an omit-frame-ptr phase.
1192       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
1193       this case.
1194       * ml-nlffigen has been taught to produce code for different architectures
1195       and calling conventions.
1196       * In a way similar to what was done in the x86 case, the Sparc
1197       backend uses its own specific extension to mltree.  (For example,
1198       it needs to be able to generate UNIMP instructions which are part
1199       of the calling convention.)
1200       * ml-nlffi-lib was reorganized to make it more modular (in particular,
1201       to make it easier to plug in new machine- and os-dependent parts).
1202    
1203    There are some other fairly unrelated bug fixes and cleanups as well:
1204    
1205       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
1206       that they properly share their libraries with existing SML/NJ libraries.
1207       * I fixed a minor cosmetic bug in CM, supressing certain spurious
1208       follow-up error messages.
1209       * Updates to CM/CMB documentation.
1210    
1211    TODO items:
1212    
1213       * MLRISC should use a different register as its asmTemp on the Sparc.
1214         (The current %o2 is a really bad choice because it is part of the
1215         calling conventions, so things might interfere in unexpected ways.)
1216    
1217    ----------------------------------------------------------------------
1218    Name: Matthias Blume
1219    Date: 2001/06/07
1220    Tag: blume-20010607-calls
1221    Description:
1222    
1223    A number of internal changes related to C calls and calling conventions:
1224    
1225    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
1226       number of bytes popped implicitly (by the callee).  In most cases
1227       this field is 0 but on x86/win32 it is some non-zero value.  This
1228       is information provided for the benefit of the "omit-frameptr" pass.
1229    2. The CALL instruction on the x86 carries a similar "pops" field.
1230       The instruction selection phase copies its value from the ML-Tree
1231       CALL statement.
1232    3. On all other architectures, the instruction selection phase checks
1233       whether "pops=0" and complains if not.
1234    4. The c-calls implementation for x86 now accepts two calling conventions:
1235       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
1236       up after the call and pops is set to 0.  For "stdcall", the caller
1237       does nothing, leaving the cleanup to the callee; pops is set to
1238       the number of bytes that were pushed onto the stack.
1239    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
1240       distinguish between "ccall" and "stdcall".
1241    6. The UNIMP instruction has been added to the supported Sparc instruction
1242       set. (This is needed for implementing the official C calling convention
1243       on this architecture.)
1244    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
1245       work with the latest CM.
1246    
1247    ----------------------------------------------------------------------
1248    Name: Matthias Blume
1249    Date: 2001/06/05 15:10:00 EDT
1250    Tag: blume-20010605-cm-index
1251    Description:
1252    
1253    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
1254    
1255    1. CM can now generate "index files".  These are human-readable files
1256       that list on a per-.cm-file basis each toplevel symbol defined or
1257       imported.  The location of the index file for
1258       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
1259       To enable index-file generation, set CM.Control.generate_index to true
1260       or export an environment-symbol: export CM_GENERATE_INDEX=true.
1261    
1262       The CM manual has been updated accordingly.
1263    
1264    2. I made some slight modifications to the c-calls API in MLRISC.
1265    
1266         a) There is now a callback to support saving/restoring of
1267            dedicated but caller-save registers around the actual call
1268            instruction.
1269         b) One can optionally specify a comment-annotation for the
1270            call instruction.
1271    
1272    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
1273       (For example, the comment annotation shows the C prototype of
1274        the function being called.)
1275    
1276    ----------------------------------------------------------------------
1277    Name: Matthias Blume
1278    Date: 2001/06/01 13:30:00 EDT
1279    Tag: blume-20010601-nlffi-cleanup
1280    Description:
1281    
1282    This is mostly a cleanup of MLFFI stuff:
1283    
1284       - some signature files have been put into a more exposed place
1285       - the ugly 'f type parameter is gone (simplifies types tremendously!)
1286       - ml-nlffigen changed accordingly
1287       - tutorial updated
1288    
1289    Other changes:
1290    
1291       - author's affiliation in CM manual(s) updated
1292       - some more recognized keywords added to Allen's sml.sty
1293    
1294    ----------------------------------------------------------------------
1295    Name: Matthias Blume
1296    Date: 2001/05/25 15:30:00 EDT
1297    Tag: blume-20010525-iptr
1298    Description:
1299    
1300      - put the official 110.33-README (as it appears on the ftp server) under
1301        CVS
1302      - fixed a small bug related to incomplete pointer types in
1303        ml-nlffigen
1304      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
1305        (it does not need the 'f type parameter)
1306    
1307    ----------------------------------------------------------------------
1308    Name: Matthias Blume
1309    Date: 2001/05/23 14:30:00 EDT
1310    Tag: Release_110_33
1311    Description:
1312    
1313    New version number (110.33).  New bootfiles.
1314    
1315    ----------------------------------------------------------------------
1316    Name: Matthias Blume
1317    Date: 2001/05/22 18:06:00 EDT
1318    Tag: blume-20010522-targets
1319    Description:
1320    
1321    Made install.sh use file config/targets.customized if it exists, falling
1322    back to config/targets if it doesn't.  This way one can have a customized
1323    version of the targets file without touching the "real thing", thus
1324    eliminating the constant fear of accidentally checking something bogus
1325    back into the CVS repository...  (File config/targets.customized must
1326    not be added to the repository!)
1327    
1328    ----------------------------------------------------------------------
1329    Name: Matthias Blume
1330    Date: 2001/05/22 16:30:00 EDT
1331    Tag: blume-20010522-minitut
1332    Description:
1333    
1334    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
1335       struct returns.
1336    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
1337       incomplete, preliminary documentation for NLFFI.
1338    
1339    ----------------------------------------------------------------------
1340    Name: Matthias Blume
1341    Date: 2001/05/14 11:30:00 EDT
1342    Tag: blume-20010514-script
1343    Description:
1344    
1345    Some bugs in install script fixed.
1346    
1347    In addition to that I also made a slight change to the NLFFI API:
1348    Functors generated by ml-nlffigen now take the dynamic library as a
1349    straight functor argument, not as a suspended one.  (The original
1350    functor code used to force the suspension right away anyway, so there
1351    was nothing gained by this complication of the interface.)
1352    
1353    ----------------------------------------------------------------------
1354    Name: Matthias Blume
1355    Date: 2001/05/11 14:35:00 EDT
1356    Tag: blume-20010511-ml-nlffi
1357    Description:
1358    
1359    I finally took the plunge and added my new FFI code to the main
1360    repository.  For x86-linux it is now ready for prime-time.
1361    
1362    There are two new subdirectories of "src":
1363    
1364      - ml-nlffi-lib:
1365           The utility library for programs using the FFI interface.
1366           Here is the implementation of $/c.cm and its associated low-level
1367           partners $/c-int.cm and $/memory.cm.
1368      - ml-nlffigen:
1369           A stand-alone program for generating ML glue code from C source
1370           code.
1371    
1372    Building ml-nlffigen requires $/ckit-lib.cm.
1373    
1374    The config/install.sh script has been updates to do the Right Thing
1375    (hopefully).
1376    
1377    Notice that the source tree for the C-Kit will not be put under "src"
1378    but directly under the installation root directory.  (This is the
1379    structure that currently exists on the CVS server when you check out
1380    module "sml".)  Fortunately, config/install.sh knows about this oddity.
1381    
1382    Bugs: No documentation yet.
1383    
1384    ----------------------------------------------------------------------
1385    Name: Matthias Blume
1386    Date: 2001/05/09 16:35:00 EDT
1387    Tag: blume-20010509-cpscontract
1388    Description:
1389    
1390    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
1391    wrapper/unwrapper elimination did not decrement usage counts and some
1392    dead variables got overlooked by the dead-up logic.)
1393    
1394    ----------------------------------------------------------------------
1395    Name: Lal George
1396    Date: 2001/05/08  17:26:09 EDT
1397    Tag: george-20010508-omit-frameptr
1398    Description:
1399    
1400    Changes to implement the omit-frame-pointer optimization to support
1401    raw C calls. For now, there is only support on the Intel x86, but
1402    other architectures will follow as more experience is gained with this.
1403    
1404    
1405    ----------------------------------------------------------------------
1406    Name: Matthias Blume
1407    Date: 2001/05/07 14:40:00 EDT
1408    Tag: blume-20010507-proxies
1409    Description:
1410    
1411    I made into "proxy libraries" all libraries that qualify for such a
1412    change.  (A qualifying library is a library that has another library or
1413    groups as its sole member and repeats that member's export list
1414    verbatim.  A proxy library avoids this repetition by omitting its export
1415    list, effectively inheriting the list that its (only) member exports.
1416    See the CM manual for more explanation.)
1417    The main effect is that explicit export lists for these libraries
1418    do not have to be kepts in sync, making maintenance a bit easier.
1419    
1420    I also added copyright notices to many .cm-files.
1421    
1422    Last but not least, I made a new set of bootfiles.
1423    
1424    ----------------------------------------------------------------------
1425    Name: Matthias Blume
1426    Date: 2001/05/04 17:00:00 EDT
1427    Tag: blume-20010504-cm-lsplit
1428    Description:
1429    
1430    0. John merged pending changes to $/smlnj-lib.cm
1431    
1432    1. Allen's previous change accidentally backed out of one of Lal's
1433       earlier changes.  I undid this mistake (re-introducing Lal's change).
1434    
1435    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
1436       within the compiler where applicable.  There is some code simplification
1437       because of that.
1438    
1439    3. The "split" phase (in FLINT) is now part of the default list of phases.
1440       Compiler.Control.LambdaSplitting.* can be used to globally control the
1441       lambda-splitting (cross-module-inlining) engine.  In addition to that,
1442       it can now also be controlled on a per-source basis: CM has been taught
1443       a new tool parameter applicable to ML source files.
1444    
1445       - To turn lambda-splitting off completely:
1446            local open Compiler.Control.LambdaSplitting in
1447                val _ = set Off
1448            end
1449       - To make "no lambda-splitting" the global default (but allow per-source
1450         overriding); this is the initial setting:
1451            local open Compiler.Control.LambdaSplitting in
1452                val _ = set (Default NONE)
1453            end
1454       - To make "lambda-splitting with aggressiveness a" the global default
1455         (and allow per-source overriding):
1456            local open Compiler.Control.LambdaSplitting in
1457                val _ = set (Default (SOME a))
1458            end
1459    
1460       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
1461         write (in the respective .cm-file):
1462            a.sml (lambdasplitting:off)
1463       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
1464            a.sml (lambdasplitting:on)
1465       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
1466         <a> is a decimal non-negative integer):
1467            a.sml (lambdasplitting:<a>)
1468       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
1469            a.sml (lambdasplitting:infinity)
1470       - To use the global default for a.sml:
1471            a.sml (lambdasplitting:default)
1472         or simply
1473            a.sml
1474    
1475    ----------------------------------------------------------------------
1476    Name: Allen Leung
1477    Date: 2001/05/04 01:57:00 EDT
1478    Tag: leunga-20010504-sync
1479    Description:
1480    
1481      MLRISC features.
1482    
1483      1. Fix to CMPXCHG instructions.
1484      2. Changed RA interface to allow annotations in callbacks.
1485      3. Added a new method to the stream interface to allow annotations updates.
1486    
1487    ----------------------------------------------------------------------
1488    Name: Matthias Blume
1489    Date: 2001/05/01 11:45:00 EDT
1490    Tag: blume-20010501-pcedittmp
1491    Description:
1492    
1493    Changed install.sh to use the current working directory instead of
1494    /usr/tmp for a temporary file (pcedittmp).  The previous choice
1495    of /usr/tmp caused trouble with MacOS X because of file premission
1496    problems.
1497    
1498    ----------------------------------------------------------------------
1499    Name: Matthias Blume
1500    Date: 2001/04/20 11:10:00 EDT
1501    Tag: blume-20010420-inMLflag
1502    Description:
1503    
1504     - added vp_limitPtrMask to vproc-state.h
1505       (for use by the raw-C-calls mechanism to implement proper interrupt
1506        handling)
1507     - made the ML compiler aware of various data-structure offsets so it
1508       can generate code for accessing the vp_inML flag and vp_limitPtrMask
1509     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
1510       raw C-calls
1511    
1512    ----------------------------------------------------------------------
1513    Name: Lal George
1514    Date: 2001/04/20 09:15:28 EDT
1515    Tag: george-20010420-macosX
1516    Description:
1517    
1518     - Changes to port to Mac OS X; Darwin.
1519    
1520     - In the process I found that sqrt was broken on the PPC, because the
1521       fsqrt instruction is not implemented.
1522    
1523    ----------------------------------------------------------------------
1524    Name: Matthias Blume
1525    Date: 2001/04/18 12:45:00 EDT
1526    Tag: blume-20010418-ccalls
1527    Description:
1528    
1529     - fixed two off-by-4 errors in the x86-specific c-calls implementation
1530       (this bug prevented structure arguments containing pointers from being
1531        passed correctly)
1532     - changed the raw-C-call code in mlriscGen.sml in such a way that
1533       structure arguments are represented as a pointer to the beginning
1534       of the structure (instead of having a series of synthesized arguments,
1535       one for each structure member)
1536    
1537     - made makeml script's verbosity level configurable via environment
1538       variable (MAKEML_VERBOSITY)
1539    
1540     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
1541       in rawmem-x86.sml; we are now using the real thing
1542    
1543    ----------------------------------------------------------------------
1544    Name: Matthias Blume
1545    Date: 2001/03/22 16:25:00 EST
1546    Tag: blume-20010322-bootfiles
1547    Description:
1548    
1549    Created a new set of bootfiles (for your automatic installation convenience).
1550    
1551    ----------------------------------------------------------------------
1552    Name: Matthias Blume
1553    Date: 2001/03/22 15:10:00 EST
1554    Tag: blume-20010322-rawmem-parcm
1555    Description:
1556    
1557    1. All "raw memory access" primitives for the new FFI are implemented now
1558       (at least on the x86).
1559    2. Some further cleanup of CM's parallel make mechanism.
1560    
1561    ----------------------------------------------------------------------
1562    Name: Matthias Blume
1563    Date: 2001/03/19 17:53:00 EST
1564    Tag: blume-20010319-parallel
1565    Description:
1566    
1567    Parallel make (using compile servers) now works again.
1568    
1569    To this end, CM.stabilize and CMB.make have been modified to work in
1570    two passes when compile servers are attached:
1571       1. Compile everything, do not perform stabilization; this pass
1572          uses compile servers
1573       2. Stabilize everything; this pass does not use compile servers
1574    If there are no compile servers, the two passes are combined into one
1575    (as before).  Splitting the passes increases the inherent parallelism
1576    in the dependency graph because the entire graph including all
1577    libraries is available at the same time.  This, in turn, improves
1578    server utilization.  The downside is that the master process will
1579    have to do some extra work after compilation is done (because for
1580    technical reasons it must re-read all the binfiles during stabilization).
1581    
1582    ----------------------------------------------------------------------
1583    Name: Matthias Blume
1584    Date: 2001/03/16 12:22:00 EST
1585    Tag: blume-20010316-bootfiles
1586    Description:
1587    
1588    Created a new set of bootfiles (for your automatic installation convenience).
1589    
1590    ----------------------------------------------------------------------
1591    Name: Matthias Blume
1592    Date: 2001/03/16 11:00:00 EST
1593    Tag: blume-20010316-MLTREE-fixup
1594    Description:
1595    
1596    This is a minor fixup for an (untagged) earlier commit by Allen.
1597    (A file was missing).
1598    
1599    ----------------------------------------------------------------------
1600    Name: Allen Leung
1601    Date: Mon Mar  5 18:54:57 EST 2001
1602    Tag: leunga-20010305-cut-support
1603    
1604    1. New support for alternative control-flow in MLTREE.
1605       Currently we support
1606    
1607          FLOW_TO(CALL ...., [k1,...,kn])
1608    
1609       This is needed for 'cuts to' in C-- and try/handle-like constructs
1610       in Moby
1611    
1612       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
1613    
1614    2. Register Allocator
1615    
1616       Changes in interface [from Fermin, John]
1617    
1618    3. Alpha 8-bit SLL support [Fermin]
1619    
1620    4. All architectures
1621    
1622       A new module (ClusterExpandCopies) for expanding parallel copies.
1623    
1624    ----------------------------------------------------------------------
1625    Name: Allen Leung
1626    Date: 2001/02/27 23:07:00 EST
1627    Tag: leunga-20010227-minor-stuff
1628    
1629    1. Alpha bug fix for CMOVNE
1630    2. Handle mltree COND(..,FCMP ...,...)
1631    3. Bug fix in simplifier
1632    
1633    ----------------------------------------------------------------------
1634    Name: Matthias Blume
1635    Date: 2001/01/30 17:50:00 EST
1636    Tag: blume-20010130-sync
1637    Description:
1638    
1639    This is just a minor update to sync my devel branch with the main brach.
1640    The only visible change is the addition of some README files.
1641    
1642    ----------------------------------------------------------------------
1643    Name: Matthias Blume
1644    Date: 2001/01/12 23:30:00 JST
1645    Tag: blume-20010112-bootfiles
1646    Description:
1647    
1648    Made a new set of bootfiles that goes with the current state of the
1649    repository.
1650    
1651    ----------------------------------------------------------------------
1652    Name: Matthias Blume
1653    Date: 2001/01/12 21:20:00 JST
1654    Tag: blume-20010112-sync
1655    Description:
1656    
1657    I am just flushing out some minor changes that had accumulated in
1658    my private branch in order to sync with the main tree.  (This is
1659    mainly because I had CVS trouble when trying to merge _into_ my
1660    private branch.)
1661    
1662    Most people should be completely unaffected by this.
1663    
1664    ----------------------------------------------------------------------
1665    Name: Allen Leung
1666    Date: Thu Jan 11 21:03:00 EST 2001
1667    Tag: leunga-20010111-labexp=mltree
1668    Description:
1669    
1670    1.  Removed the type LabelExp and replace it by MLTree.
1671    2.  Rewritten mltree-simplify with the pattern matcher tool.
1672    3.  There were some bugs in alpha code generator which would break
1673        64-bit code generation.
1674    4.  Redo the tools to generate code with the
1675    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
1676        are now generated by perl scripts.
1677    
1678    ----------------------------------------------------------------------
1679    Name: Matthias Blume
1680    Date: 2001/01/10 21:55:00 JST
1681    Tag: blume-20010110-rcc
1682    Description:
1683    
1684    The RCC stuff now seems to work (but only on the x86).
1685    This required hacking of the c-calls interface (and -implementation) in
1686    MLRISC.
1687    
1688    Normal compiler users should be unaffected.
1689    
1690    ----------------------------------------------------------------------
1691    Name: Matthias Blume
1692    Date: 2001/01/09 01:20:00 JST
1693    Tag: blume-20010109-rcc
1694    Description:
1695    
1696    This is a fairly big patch, flushing out a large number of pending
1697    changes that I made to my development copy over the last couple of days.
1698    
1699    Of practical relevance at this moment is a workaround for a pickling
1700    bug that Allen ran into the other day.  The cause of the bug itself is
1701    still unknown and it might be hard to fix it properly, but the
1702    workaround has some merits of its own (namely somewhat reducing pickling
1703    overhead for certain libraries).  Therefore, I think this solution should
1704    be satisfactory at this time.
1705    
1706    The rest of the changes (i.e., the vast majority) has to do with my
1707    ongoing efforts of providing direct support for C function calls from
1708    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
1709    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
1710    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
1711    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
1712    handle RCC.
1713    
1714    The last part (the changes to mlriscGen.sml) are still known to be
1715    wrong on the x86 and not implemented on all other architectures.  But
1716    the infrastructure is in place. I had to change a few functor
1717    signatures in the backend to be able to route the CCalls interface
1718    from MLRISC there, and I had to specialize the mltree type (on the
1719    x86) to include the necessary extensions. (The extensions themselves
1720    were already there and redy to go in MLRISC/x86).
1721    
1722    Everything should be very happy as soon as someone helps me with
1723    mlriscGen.sml...
1724    
1725    In any case, nothing of this should matter to anyone as long as the
1726    new primop is not being used (which is going to be the case unless you
1727    find it where I hid it :). The rest of the compiler is completely
1728    unaffected.
1729    
1730    ----------------------------------------------------------------------
1731    Name: Matthias Blume
1732    Date: 2001/01/05 00:30:00 JST
1733    Tag: blume-20010105-primops
1734    Description:
1735    
1736    Added some experimental support for work that I am doing right now.
1737    These changes mostly concern added primops, but there is also a new
1738    experimental C library in the runtime system (but currently not enabled
1739    anywhere except on Linux/X86).
1740    
1741    In the course of adding primops (and playing with them), I discovered that
1742    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
1743    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
1744    To recover, I made type information in INL_PRIM mandatory and changed
1745    prim.sml as well as built-in.sml accordingly.  The InLine structure now
1746    has complete, correct type information (i.e., no bottom types).
1747    
1748    Since all these changes mean that we need new binfiles, I also bumped the
1749    version number to 110.32.1.
1750    
1751    ----------------------------------------------------------------------
1752    Name: Matthias Blume
1753    Date: 2000/12/30 22:10:00 JST
1754    Tag: blume-20001230-various
1755    Description:
1756    
1757    Added proxy libraries for MLRISC and let MLRISC libraries refer
1758    to each other using path anchors.  (See CM manual for explanation.)
1759    
1760    Updated CM documentation.
1761    
1762    Fixed some bugs in CM.
1763    
1764    Implemented "proxy" libraries (= syntactic sugar for CM).
1765    
1766    Added "-quiet" option to makeml and changed runtime system accordingly.
1767    
1768    Added cleanup handler for exportML to reset timers and compiler stats.
1769    
1770    ----------------------------------------------------------------------
1771    Name: Lal George
1772    Date: 2000/12/22 22:22:58 EST 2000
1773    Tag: Release_110_32
1774    Description:
1775    
1776            Infinite precision used throughout MLRISC.
1777            see MLRISC/mltree/machine-int.sig
1778    
1779    ----------------------------------------------------------------------
1780    Name: Matthias Blume
1781    Date: 2000/12/22 23:16:00 JST
1782    Tag: blume-20001222-warn
1783    Description:
1784    
1785    Corrected wording and formatting of some CM warning message which I
1786    broke in my previous patch.
1787    
1788    ----------------------------------------------------------------------
1789    Name: Matthias Blume
1790    Date: 2000/12/22 21:20:00 JST
1791    Tag: blume-20001222-anchorenv
1792    Description:
1793    
1794    Fixed CM's handling of anchor environments in connection with CMB.make.
1795    
1796    ----------------------------------------------------------------------
1797    Name: Matthias Blume
1798    Date: 2000/12/22 13:15:00 JST
1799    Tag: blume-20001222-cleanup
1800    Description:
1801    
1802    Removed src/cm/ffi which does not (and did not) belong here.
1803    
1804    ----------------------------------------------------------------------
1805    Name: Matthias Blume
1806    Date: 2000/12/21 23:55:00 JST
1807    Tag: blume-20001221-exn
1808    Description:
1809    
1810    Probably most important: CM no longer silently swallows all exceptions
1811    in the compiler.
1812    Plus: some other minor CM changes.  For example, CM now reports some
1813    sizes for generated binfiles (code, data, envpickle, lambdapickle).
1814    
1815    ----------------------------------------------------------------------
1816    Name: Matthias Blume
1817    Date: 2000/12/15 00:01:05 JST
1818    Tag: blume-20001215-dirtool
1819    Description:
1820    
1821    - "dir" tool added.
1822    - improvements and cleanup to Tools structure
1823    - documentation updates
1824    
1825    ----------------------------------------------------------------------
1826    Name: Allen Leung
1827    Date: Thu Dec 14 03:45:24 EST 2000
1828    Description:
1829    Tag:  leunga-20001214-int-inf
1830    Description:
1831    
1832       In IntInf, added these standard functions, which are missing from our
1833    implementation:
1834    
1835        andb : int * int -> int
1836        xorb : int * int -> int
1837        orb  : int * int -> int
1838        notb : int -> int
1839         <<   : int * word -> int
1840        ~>>  : int * word -> int
1841    
1842       Not tested, I hope they are correct.
1843    
1844    ----------------------------------------------------------------------
1845    Name: Allen Leung
1846    Date: Fri Dec  8 19:23:26 EST 2000
1847    Description:
1848    Tag:  leunga-20001208-nowhere
1849    Description:
1850    
1851      Slight improvements to the 'nowhere' tool to handle OR-patterns,
1852    to generate better error messages etc.  Plus a brief manual.
1853    
1854    ----------------------------------------------------------------------
1855    Name: Lal George
1856    Date: 2000/12/08 09:54:02 EST 2000
1857    Tag: Release_110_31
1858    Description:
1859    
1860    - Version 110.31
1861    ----------------------------------------------------------------------
1862    Name: Allen Leung
1863    Date: Thu Dec  7 22:01:04 EST 2000
1864    Tag:  leunga-20001207-cell-monster-hack
1865    Description:
1866    
1867    Major MLRISC internal changes.  Affect all clients.
1868    Summary:
1869    
1870    1.  Type CELLS.cell = int is now replaced by a datatype.
1871        As a result, the old regmap is now gone.  Almost all interfaces
1872        in MLRISC change as a consequence.
1873    
1874    2.  A new brand version of machine description tool (v3.0) that generates
1875        modules expecting the new interface.  The old version is removed.
1876    
1877    3.  The RA interface has been further abstracted into two new functors.
1878        RISC_RA and X86RA.  These functors have much simpler interfaces.
1879        [See also directory MLRISC/demo.]
1880    
1881    4.  Some other new source->source code generation tools are available:
1882    
1883        a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
1884        b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
1885           I use this tool to generate the peephole optimizers---with the new
1886           cell type changes, peephole rules are becoming difficult to write
1887           without conditional pattern matching.
1888    
1889    5.  More Intmap -> IntHashTable change.  Previous changes by Matthias didn't
1890        cover the entire MLRISC source tree so many things broke.
1891    
1892    6.  CM files have been moved to the subdirectory MLRISC/cm.
1893        They are moved because there are a lot of them and they clutter up the
1894        root dir.
1895    
1896    7.  More detailed documentation to come...
1897    
1898        NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
1899        a makeml -rebuild first.  This is because of other other
1900        changes that Matthias has made (see below).
1901    
1902    
1903    ----------------------------------------------------------------------
1904    Name: Matthias Blume
1905    Date: 2000/11/30 23:12:00 JST
1906    Tag: blume-20001130-filereorg
1907    Description:
1908    
1909    Some manual updates and some file reorganizations in CM.
1910    
1911    ----------------------------------------------------------------------
1912    Name: Matthias Blume
1913    Date: 2000/11/24 17:45:00 JST
1914    Tag: blume-20001124-link
1915    Description:
1916    
1917    Drastically improved link traversal code for the case that the dynamic
1918    value was already loaded at bootstrap time.  As a result, CM and CMB
1919    now both load blazingly fast -- even on a very slow machine.  Also,
1920    memory consumption has been further reduced by this.
1921    
1922    Warning: The format of the PIDMAP file has changed.  THerefore, to
1923    bootstrap you have to do this:
1924    
1925    1. Run CMB.make
1926    2. Make a symbolic link for the boot directory:
1927         ln -s sml.boot.ARCH-OS xxx
1928    3. "Rebuild" the boot directory:
1929         ./makeml -boot xxx -rebuild sml ; rm xxx
1930    4. Boot normally:
1931          ./makeml
1932    
1933    ----------------------------------------------------------------------
1934    Name: Matthias Blume
1935    Date: 2000/11/21 21:20:00 JST
1936    Tag: blume-20001121-tools
1937    Description:
1938    
1939    Continued hacking on autoloading problem -- with success this time.
1940    Also changed tool-plugin mechanism.  See new CM manual.
1941    
1942    ----------------------------------------------------------------------
1943    Name: Matthias Blume
1944    Date: 2000/11/19 14:30:00 JST
1945    Tag:  blume-20001119-autoload
1946    Description:
1947    
1948    Some hacking to make autoloading faster.  Success for CMB, no success
1949    so far for CM.  There is a reduced structure CM' that autoloads faster.
1950    (This is a temporary, non-documented hack to be eliminated again when
1951    the general problem is solved.)
1952    
1953    ----------------------------------------------------------------------
1954    Name: Matthias Blume
1955    Date: 2000/11/17 14:10:00 JST
1956    Tag: blume-20001117-pickle-lib
1957    Description:
1958    
1959    1. Eliminated comp-lib.cm
1960    2. Made pickle-lib.cm
1961    3. Eliminated all uses of intset.sml (from comp-lib.cm)
1962    4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
1963       equivalent constructs from smlnj-lib.cm (INtHashTable).
1964    5. Point 4. also goes for those uses of intmap.* in MLRISC.
1965       Duplicated intmap modules thrown out.
1966    6. Hunted down all duplicated SCC code and replaced it with
1967       equivalent stuff (GraphSCCFn from smlnj-lib.cm).
1968    7. Rewrote Feedback module.
1969    8. Moved sortedlist.sml into viscomp-lib.cm.  Eventually it
1970       should be thrown out and equivalent modules from smlnj-lib.cm
1971       should be used (IntRedBlackSet, IntListSet, ...).
1972    
1973    Confirmed that compiler compiles to fixpoint.
1974    
1975    ----------------------------------------------------------------------
1976    Name: Allen Leung
1977    Date: 2000/11/10 18:00:00
1978    Tag: leunga-20001110-new-x86-fp
1979    
1980    A new x86 floating point code generator has been added.
1981    By default this is turned off.  To turn this on, do:
1982    
1983        CM.autoload "$smlnj/compiler.cm";
1984        Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
1985    
1986    Changes:
1987    
1988    1.  Changed FTAN to FPTAN so that the assembly output is correct.
1989    2.  Changed the extension callback for FTANGENT to generate:
1990    
1991              fptan
1992              fstp  %st(0)
1993        instead of
1994              fptan
1995              fstpl ftempmem
1996    
1997    3.  Numerous assembly fixes for x86.
1998    
1999    5.  Cleaned up the machine code output module x86/x86MC.sml and added
2000        support for a whole bunch of instructions and addressing modes:
2001    
2002          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st, %st(n)
2003          faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp  %st, %st(n)
2004          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st(n), %st
2005          fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
2006          fxch %st(n)
2007          fld %st(n)
2008          fst %st(n)
2009          fst mem
2010          fstp %st(n)
2011          fucom %st(n)
2012          fucomp %st(n)
2013    
2014        All these are now generated when the fast fp mode is turned on.
2015    
2016    6.  Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
2017    
2018    ----------------------------------------------------------------------
2019    Name: Matthias Blume
2020    Date: 2000/11/09 11:20:00 JST
2021    Tag: blume-20001109-scc
2022    Description:
2023    
2024    Eliminated some code duplication:
2025    
2026    1. Added "where" clause to GraphSCCFn in SML/NJ Library.
2027       (Otherwise the functor is useless.)
2028    2. Used GraphSCCFn where SCCUtilFun was used previously.
2029    3. Got rid of SCCUtilFun (in comp-lib.cm).
2030    
2031    ----------------------------------------------------------------------
2032    Name: Lal George
2033    Date: 2000/11/06 09:02:21 EST 2000
2034    Tag: Release_110_30
2035    Description:
2036    
2037    - Version 110.30
2038    ----------------------------------------------------------------------
2039    Name: Matthias Blume
2040    Date: 2000/11/04 14:45:00
2041    Tag: blume-20001104-mlbuild
2042    Description:
2043    
2044    - Made ml-build faster on startup.
2045    - Documentation fixes.
2046    
2047    ----------------------------------------------------------------------
2048    Name: Matthias Blume
2049    Date: 2000/11/02 17:00:00 JST
2050    Tag: blume-20001102-condcomp
2051    Description:
2052    
2053    - Small tweaks to pickler -- new BOOTFILES!
2054    - Version bumped to 110.29.2.
2055    - Added conditional compilation facility to init.cmi (see comment there).
2056    ----------------------------------------------------------------------
2057    Name: Allen Leung
2058    Date: 2000/10/23 19:31:00
2059    Tag: leunga-20001023-demo-ra
2060    
2061    1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
2062    2. Test programs for the graph library updated
2063    3. Some new MLRISC demo programs added
2064    
2065    ----------------------------------------------------------------------
2066    Name: Matthias Blume
2067    Date: 2000/08/31 22:15:00 JST
2068    Tag: blume-20001017-errmsg
2069    Description:
2070    
2071    More error message grief: Where there used to be no messages, there
2072    now were some that had bogus error regions.  Fixed.
2073    
2074    ----------------------------------------------------------------------
2075    Name: Matthias Blume
2076    Date: 2000/08/31 17:30:00 JST
2077    Tag: blume-20001017-v110p29p1
2078    Description:
2079    
2080    I made a version 110.29.1 with new bootfiles.
2081    
2082    Changes:  Modified pickler/unpickler for faster and leaner unpickling.
2083              CM documentation changes and a small bugfix in CM's error reporting.
2084    
2085    ----------------------------------------------------------------------
2086    Name: Lal George
2087    Date: 2000/09/27 14:42:35 EDT
2088    Tag: george-20000927-nodestatus
2089    Description:
2090    
2091    Changed the type of the nodestatus, so that:
2092    
2093            SPILLED(~1)             is now SPILLED
2094            SPILLED(m) where m>=0   is now MEMREG(m)
2095            SPILLED(s) where s<~1   is now SPILL_LOC(~s)
2096    
2097    ----------------------------------------------------------------------
2098    Name: Matthias Blume
2099    Date: 2000/09/07 14:45:00 JST
2100    Tag: blume-20000907-cmerrmsg
2101    Description:
2102    
2103    Small tweak to CM to avoid getting ML syntax error messages twice.
2104    
2105    ----------------------------------------------------------------------
2106    Name: Matthias Blume
2107    Date: 2000/08/31 18:00:00 JST
2108    Tag: blume-20000831-cvsbootfiles
2109    Description:
2110    
2111    New URL for boot files (because the 110.29 files on the BL server do
2112    now work correctly with my updated install scripts for yacc and lex).
2113    
2114    ----------------------------------------------------------------------
2115    Name: Matthias Blume
2116    Date: 2000/08/08 12:33:00 JST
2117    Tag: blume-20000808-manual
2118    Description:
2119    
2120    Tiny update to CM manual.
2121    
2122    ----------------------------------------------------------------------
2123    Name: Allen Leung
2124    Date: 2000/08/7 19:31:00
2125    Tag: leunga-20000807-a-whole-bunch-of-stuff
2126    
2127      Moby, C--, SSA, x86, machine descriptions etc.  Should only affect C--
2128    and Mobdy.
2129    
2130    1.  x86
2131    
2132       a.  Fixes to peephole module by John and Dan.
2133       b.  Assembly fix to SETcc by Allen.
2134       c.  Fix to c-call by John.
2135       d.  Fix to spilling by John.  (This one deals with the missing FSTPT case)
2136       e.  Instruction selection optimization to SETcc as suggested by John.
2137    
2138           For example,
2139    
2140            MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
2141    
2142           should generate:
2143    
2144            MOVL a, x
2145            SUBL b, x
2146            SHRL 31, x
2147    
2148    2.  IR stuff
2149    
2150         A bunch of new DJ-graph related algorithms added.  These
2151         speed up SSA construction.
2152    
2153    3.  SSA + Scheduling
2154    
2155         Added code for SSA and scheduling to the repository
2156    
2157    ----------------------------------------------------------------------
2158    Name: Lal George
2159    Date: 2000/07/27 11:53:14 EDT
2160    
2161    Tag: lal-20000727-linux-ppc
2162    Description:
2163    
2164     Made changes to support Linux PPC.
2165     p.s. I have confirmation that the 110.29 boot files work fine.
2166    
2167    ----------------------------------------------------------------------
2168    Name: Matthias Blume
2169    Date: 2000/07/27 17:40:00 JST
2170    Tag: blume-20000727-scripts
2171    Description:
2172    
2173    !!!! WARNING !!!!
2174    You must recompile the runtime system!
2175    !!!! WARNING !!!!
2176    
2177    This is basically another round of script-enhancements:
2178    
2179    1. sml, ml-build, and ml-makedepend accept options -D and -U to define
2180       and undefine CM preprocessor symbols.
2181    
2182    2. ml-build avoids generating a new heap image if it finds that the
2183       existing one is still ok.  (The condition is that no ML file had to
2184       be recompiled and all ML files are found to be older that the heap
2185       file.)
2186    
2187       To make this work smoothly, I also hacked the runtime system as
2188       well as SMLofNJ.SysInfo to get access to the heap image suffix
2189       (.sparc-solaris, ...) that is currently being used.
2190    
2191       Moreover, the signature of CM.mk_standalone has changed.  See the
2192       CM manual.
2193    
2194    3. ml-makedepend accepts additional options -n, -a, and -o.  (See the
2195       CM manual for details.)
2196    
2197    4. More CM manual updates:
2198        - all of the above has been documented.
2199        - there is now a section describing the (CM-related) command line
2200          arguments that are accepted by the "sml" command
2201    
2202    ----------------------------------------------------------------------
2203    Name: Matthias Blume
2204    Date: 2000/07/25 16:20:00 JST
2205    Tag: blume-20000725-makedepend
2206    Description:
2207    
2208    Added a script called ml-makedepend.  This can be used in makefiles
2209    for Unix' make in a way very similar to the "makedepend" command for
2210    C.
2211    
2212    The script internally uses function CM.sources.
2213    
2214    Synopsis:
2215    
2216        ml-makedepend [-f makefile] cmfile targetname
2217    
2218    The default for the makefile is "makefile" (or "Makefile" should
2219    "makefile" not exist).
2220    
2221    ml-makedepend adds a cmfile/targetname-specific section to this
2222    makefile (after removing the previous version of this section).  The
2223    section contains a single dependency specification with targetname on
2224    the LHS (targetname is an arbitrary name), and a list of files derived
2225    from the cmfile on the RHS.  Some of the files on the RHS are
2226    ARCH/OPSYS-specific.  Therefore, ml-makedepend inserts references to
2227    "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
2228    path names.  The makefile writer is responsible for making sure that
2229    these variables have correct at the time "make" is invoked.
2230    
2231    ----------------------------------------------------------------------
2232    Name: Matthias Blume
2233    Date: 2000/07/22 23:30:00 JST
2234    Tag: blume-20000722-urlupdate
2235    Description:
2236    
2237    Changed BOOT and config/srcarchiveurl to point to BL server:
2238    
2239        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
2240    
2241    ----------------------------------------------------------------------
2242    Name: Matthias Blume
2243    Date: 2000/07/18 18:00:00 JST
2244    Tag: blume-20000718-Version_110_29
2245    Description:
2246    
2247    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
2248    
2249    2. Updated config/version to 110.29
2250    
2251    3. Updated config/srcarchiveurl
2252    
2253    3. New boot files!
2254       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
2255    
2256    ----------------------------------------------------------------------
2257    Name: Matthias Blume
2258    Date: 2000/07/11 13:58:00 JST
2259    Tag: blume-20000711-doctypo
2260    Description:
2261    
2262    Fixed a few typos in CM manual.
2263    
2264    ----------------------------------------------------------------------
2265    Name: Allen Leung
2266    Date: 2000/06/15 00:38:00
2267    Tag: leunga-20000704-sparc-x86
2268    
2269    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
2270    2. fix to x86 RET bug [found by Dan Grossman]
2271    3. sparc assembly bug fix for ticc instructions [found by Fermin]
2272    
2273       Affects c-- and moby only
2274    
2275    ----------------------------------------------------------------------
2276    Name: Matthias Blume
2277    Date: 2000/07/04 15:26:00
2278    Tag: blume-20000704-trigger
2279    Description:
2280    
2281    1. Improvements to CM manual.
2282    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
2283       of getting a back-trace.  The function, when called, raises an
2284       internal exception which explicitly carries the full back-trace history,
2285       so it is unaffected by any intervening handle-raise pairs ("trivial"
2286       or not).  The interactive loop will print that history once it arrives
2287       at top level.
2288       Short of having all exceptions implicitly carry the full history, the
2289       recommended way of using this facility is:
2290         - compile your program with instrumentation "on"
2291         - run it, when it raises an exception, look at the history
2292         - if the history is "cut off" because of some handler, go and modify
2293           your program so that it explicitly calls BTrace.trigger
2294         - recompile (still instrumented), and rerun; look at the full history
2295    
2296    ----------------------------------------------------------------------
2297    Name: Matthias Blume
2298    Date: 2000/07/03 15:36:00 JST
2299    Tag: blume-20000702-manual
2300    Description:
2301    
2302    Small corrections and updates to CM manual.
2303    
2304    ----------------------------------------------------------------------
2305    Name: Matthias Blume
2306    Date: 2000/06/29 16:04:00 JST
2307    Tag: blume-20000629-yacctool
2308    Description:
2309    
2310    Changes:
2311    
2312    1. Class "mlyacc" now takes separate arguments to pass options to
2313       generated .sml- and .sig-files independently.
2314    2. Corresponding CM manual updates.
2315    3. BTrace module now also reports call sites.  (However, for loop clusters
2316       it only shows from where the cluster was entered.)  There are associated
2317       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
2318    
2319    ----------------------------------------------------------------------
2320    Name: Matthias Blume
2321    Date: 2000/06/27 16:51:00 JST
2322    Tag: blume-20000627-noweb
2323    Description:
2324    
2325    Changes:
2326    
2327     1. Implemented "subdir" and "witness" options for noweb tool.
2328        This caused some slight internal changes in CM's tool implementation.
2329     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
2330        some remaining issues from earlier path anchor changes.
2331     3. Updated CM manual accordingly.
2332    
2333     4. Changed implementation of back-tracing so that I now consider it
2334        ready for prime-time.
2335    
2336        In particular, you don't have to explicitly trigger the back-trace
2337        anymore.  Instead, if you are running BTrace-instrumented code and
2338        there is an uncaught exception (regardless of whether or not it was
2339        raised in instrumented code), the top-level evalloop will print
2340        the back-trace.
2341    
2342        Features:
2343    
2344          - Instrumented and uninstrumented code work together seemlessly.
2345            (Of course, uninstrumented code is never mentioned in actual
2346             back-traces.)
2347    
2348          - Asymptotic time- and space-complexity of instrumented code is
2349            equal to that of uninstrumented code.  (This means that
2350            tail-recursion is preserved by the instrumentation phase.)
2351    
2352          - Modules whose code has been instrumented in different sessions
2353            work together without problem.
2354    
2355          - There is no penalty whatsoever on uninstrumented code.
2356    
2357          - There is no penalty on "raise" expressions, even in
2358            instrumented code.
2359    
2360        A potential bug (or perhaps it is a feature, too):
2361    
2362          A back-trace reaches no further than the outermost instrumented
2363          non-trivial "raise".  Here, a "trivial" raise is one that is the
2364          sole RHS of a "handle" rule.  Thus, back-traces reach trough
2365    
2366               <exp> handle e => raise e
2367    
2368          and even
2369    
2370               <exp> handle Foo => raise Bar
2371    
2372          and, of course, through
2373    
2374               <exp> handle Foo => ...
2375    
2376         if the exception was not Foo.
2377    
2378         Back-traces always reach right through any un-instrumented code
2379         including any of its "handle" expressions, trivial or not.
2380    
2381       To try this out, do the following:
2382    
2383         - Erase all existing binfiles for your program.
2384           (You may keep binfiles for those modules where you think you
2385            definitely don't need back-tracing.)
2386         - Turn on back-trace instrumentation:
2387              SMLofNJ.Internals.BTrace.mode (SOME true);
2388         - Recompile your program.  (I.e., run "CM.make" or "use".)
2389         - You may now turn instrumentation off again (if you want):
2390              SMLofNJ.Internals.BTrace.mode (SOME false);
2391         - Run your program as usual.  If it raises an exception that
2392           reaches the interactive toplevel, then a back-trace will
2393           automatically be printed.  After that, the toplevel loop
2394           will print the exception history as usual.
2395    
2396    ----------------------------------------------------------------------
2397    Name: Matthias Blume
2398    Date: 2000/06/26 09:56:46 JST
2399    Tag: blume-20000626-setup
2400    Description:
2401    
2402    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
2403          ML code before and after compiling a file (e.g., to set compiler
2404          flags)
2405    
2406    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
2407              - associated changes to btrace.sml (BTrace instrumentation pass)
2408              - cleaner implementation of btimp.sml (BTrace tracing and report
2409                module)
2410    
2411    CM manual: * new path encoding documented
2412               * description of setup-parameter to "sml" added
2413    
2414    The biggest user-visible change to back-tracing is that it is no
2415    longer necessary to compile all traced modules within the same
2416    session.  (This was a real limitation.)
2417    
2418    ----------------------------------------------------------------------
2419    Name: Matthias Blume
2420    Date: 2000/06/24 12:40:00 JST
2421    Tag: blume-20000624-startup
2422    Description:
2423    
2424    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
2425    bit too often -- to put it mildly. :)
2426    
2427    ----------------------------------------------------------------------
2428    Name: Matthias Blume
2429    Date: 2000/06/23 18:20:00 JST
2430    Tag: blume-20000623-btrace
2431    Description:
2432    
2433    This updates adds a backtrace facility to aid programmers in debugging
2434    their programs.  This involves the following changes:
2435    
2436    1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
2437       keeping track of the current call stack.  When programs are compiled
2438       in a special mode, the compiler will insert calls to these hooks
2439       into the user program.
2440       "Hook" means that it is possible for different implementations of
2441       back-tracing to register themselves (at different times).
2442    
2443    2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
2444       as an Absyn.dec->Absyn.dec rewrite.  Normally this phase is turned off.
2445       It can be turned on using this call:
2446         SMLofNJ.Internals.BTrace.mode (SOME true);
2447       Turning it off again:
2448         SMLofNJ.Internals.BTrace.mode (SOME false);
2449       Querying the current status:
2450         SMLofNJ.Internals.BTrace.mode NONE;
2451       Annotated programs are about twice as big as normal ones, and they
2452       run a factor of 2 to 4 slower with a dummy back-trace plugin (one
2453       where all hooks do nothing).  The slowdown with a plugin that is
2454       actually useful (such as the one supplied by default) is even greater,
2455       but in the case of the default plugin it is still only an constant
2456       factor (amortized).
2457    
2458    3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
2459       with a sub-structure BTrace for controlling back-tracing.  In particular,
2460       the above-mentioned function "mode" controls whether the annotation
2461       phase is invoked by the compiler.  Another important function is
2462       "trigger": when called it aborts the current execution and causes
2463       the top-level loop to print a full back-trace.
2464    
2465    4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
2466       for back-tracing.  It keeps track of the dynamic call stack and in
2467       addition to that it keeps a partial history at each "level" of that
2468       stack.  For example, if a tail-calls b, b tail-calls c, and c tail-calls
2469       d and b (at separate times, dynamically), then the report will show:
2470    
2471       GOTO   d
2472             /c
2473       GOTO  \b
2474       CALL   a
2475    
2476       This shows that there was an initial non-tail call of a, then a
2477       tail-call to b or c, looping behavior in a cluster of functions that
2478       consist of b and c, and then a goto from that cluster (i.e., either from
2479       b or from c) to d.
2480    
2481       Note that (depending on the user program) the amount of information
2482       that the back-trace module has to keep track of at each level is bounded
2483       by a constant.  Thus, the whole implementation has the same asymptotical
2484       complexity as the original program (both in space and in time).
2485    
2486    5. compiler/TopLevel/interact/evalloop.sml has been modified to
2487       handle the special exception SMLofNJ.Internals.BTrace.BTrace
2488       which is raised by the "trigger" function mentioned above.
2489    
2490    Notes on usage:
2491    
2492    - Annotated code works well together with unannotated code:
2493    Unannotated calls simply do not show up at all in the backtrace.
2494    
2495    - It is not a good idea to let modules that were annotated during
2496    different sessions run at the same time.  This is because the compiler
2497    chooses small integers to identify individual functions, and there
2498    will be clashes if different modules were compiled in separate sessions.
2499    (Nothing will crash, and you will even be told about the clashes, but
2500    back-trace information will in general not be useful.)
2501    
2502    - Back-tracing can be confused by callcc and capture.
2503    
2504    - The only way of getting a back-trace right now is to explicitly
2505    invoke the "trigger" function from your user program.  Eventually, we
2506    should make every exception carry back-trace information (if
2507    available).  But since this creates more overhead at "raise"-time
2508    (similar to the current exnHistory overhead), I have not yet
2509    implemented this.  (The implementation will be rather easy.)  With
2510    exceptions carrying back-trace information, this facility will be even
2511    more useful because users don't need to modify their programs...
2512    
2513    - While it is possible to compile the compiler with back-trace
2514    annotations turned on (I did it to get some confidence in
2515    correctness), you must make absolutely sure that core.sml and
2516    btimp.sml are compiled WITHOUT annotation!  (core.sml cannot actually
2517    be compiled with annotation because there is no core access yet, but
2518    if you compile btimp.sml with annotation, then the system will go into
2519    an infinite recursion and crash.)
2520    Since CM currently does not know about BTrace, the only way to turn
2521    annotations on and off for different modules of the compiler is to
2522    interrupt CMB.make, change the settings, and re-invoke it.  Of course,
2523    this is awkward and clumsy.
2524    
2525    Sample sessions:
2526    
2527    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
2528    - SMLofNJ.Internals.BTrace.mode (SOME true);
2529    [autoloading]
2530    [autoloading done]
2531    val it = false : bool
2532    - structure X = struct
2533    -     fun main n = let
2534    -         fun a (x, 0) = d x
2535    -           | a (x, n) = b (x, n - 1)
2536    -         and b (x, n) = c (x, n)
2537    -         and c (x, n) = a (x, n)
2538    -         and d x = e (x, 3)
2539    -         and e (x, 0) = f x
2540    -           | e (x, n) = e (x, n - 1)
2541    -         and f 0 = SMLofNJ.Internals.BTrace.trigger ()
2542    -           | f n = n * g (n - 1)
2543    -         and g n = a (n, 3)
2544    -     in
2545    -         f n
2546    -     end
2547    - end;
2548    structure X : sig val main : int -> int end
2549    - X.main 3;
2550    *** BACK-TRACE ***
2551    GOTO   stdIn:4.2-13.20: X.main[2].f
2552    GOTO-( stdIn:4.2-13.20: X.main[2].e
2553    GOTO   stdIn:4.2-13.20: X.main[2].d
2554         / stdIn:4.2-13.20: X.main[2].a
2555         | stdIn:4.2-13.20: X.main[2].b
2556    GOTO-\ stdIn:4.2-13.20: X.main[2].c
2557    CALL   stdIn:4.2-13.20: X.main[2].g
2558    GOTO   stdIn:4.2-13.20: X.main[2].f
2559    GOTO-( stdIn:4.2-13.20: X.main[2].e
2560    GOTO   stdIn:4.2-13.20: X.main[2].d
2561         / stdIn:4.2-13.20: X.main[2].a
2562         | stdIn:4.2-13.20: X.main[2].b
2563    GOTO-\ stdIn:4.2-13.20: X.main[2].c
2564    CALL   stdIn:4.2-13.20: X.main[2].g
2565    GOTO   stdIn:4.2-13.20: X.main[2].f
2566    GOTO-( stdIn:4.2-13.20: X.main[2].e
2567    GOTO   stdIn:4.2-13.20: X.main[2].d
2568         / stdIn:4.2-13.20: X.main[2].a
2569         | stdIn:4.2-13.20: X.main[2].b
2570    GOTO-\ stdIn:4.2-13.20: X.main[2].c
2571    CALL   stdIn:4.2-13.20: X.main[2].g
2572    GOTO   stdIn:4.2-13.20: X.main[2].f
2573    CALL   stdIn:2.15-17.4: X.main[2]
2574    -
2575    
2576    (Note that because of a FLINt bug the above code currently does not
2577    compile without BTrace turned on.)
2578    
2579    Here is another example, using my modified Tiger compiler:
2580    
2581    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
2582    - SMLofNJ.Internals.BTrace.mode (SOME true);
2583    [autoloading]
2584    [autoloading done]
2585    val it = false : bool
2586    - CM.make "sources.cm";
2587    [autoloading]
2588    ...
2589    [autoloading done]
2590    [scanning sources.cm]
2591    [parsing (sources.cm):parse.sml]
2592    [creating directory CM/SKEL ...]
2593    [parsing (sources.cm):tiger.lex.sml]
2594    ...
2595    [wrote CM/sparc-unix/semant.sml]
2596    [compiling (sources.cm):main.sml]
2597    [wrote CM/sparc-unix/main.sml]
2598    [New bindings added.]
2599    val it = true : bool
2600    - Main.compile ("../testcases/merge.tig", "foo.out");
2601    *** BACK-TRACE ***
2602    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
2603    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
2604    CALL   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
2605    GOTO   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
2606    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
2607    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
2608    CALL   lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
2609         / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
2610    CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
2611    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
2612    CALL   lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
2613    CALL   main.sml:1.18-118.4: Main.compile[2]
2614    -
2615    
2616    ----------------------------------------------------------------------
2617    Name: Matthias Blumen
2618    Date: 2000/06/21 18:00:00 JST
2619    Tag: blume-20000621-manual
2620    Description:
2621    
2622    CM manual update: Path environments documented.
2623    
2624    ----------------------------------------------------------------------
2625    Name: Matthias Blume
2626    Date: 2000/06/19 13:40:00
2627    Tag: blume-20000619-manual
2628    Description:
2629    
2630    CM manual and system/README update.  This only covers the fact that
2631    there are no more implicit anchors.  (Path environments and the "bind"
2632    option to "cm" have yet to be documented.)
2633    
2634    ----------------------------------------------------------------------
2635    Name: Matthias Blume
2636    Date: 2000/06/19 11:05:00 JST
2637    Tag: blume-20000619-chdir-bugfix
2638    Description:
2639    
2640    Fixed a bug in new SrcPath module that sometimes led to a bad chDir call.
2641    
2642    ----------------------------------------------------------------------
2643    Name: Matthias Blume
2644    Date: 2000/06/18 22:00:10 JST
2645    Tag: blume-20000618-implicit-anchors-really-gone
2646    Description:
2647    
2648    I updates the previous HISTORY entry where I forgot to mention that
2649    implicit anchors are no longer with us.
2650    
2651    The current update also gets rid of the (now useless) controller
2652    CM.Control.implicit_anchors.
2653    
2654    ----------------------------------------------------------------------
2655    Name: Matthias Blume
2656    Date: 2000/06/16 17:30:00 JST
2657    Tag: blume-20000616-anchorenv
2658    Description:
2659    
2660    This patch implements the long anticipated (just kidding :) "anchor
2661    environment" mechanism.  In the course of doing this, I also
2662    re-implemented CM's internal "SrcPath" module from scratch.  The new
2663    one should be more robust in certain boundary cases.  In any case, it
2664    is a lot cleaner than its predecessor (IMHO).
2665    
2666    This time, although there is yet another boot file format change, I
2667    kept the unpickler backward-compatible.  As a result, no new bootfiles
2668    are necessary and bootstrapping is straightforward.  (You cannot read
2669    new bootfiles into an old system, but the other way around is no
2670    problem.)
2671    
2672    Visible changes:
2673    
2674    ** 0. Implicit path anchors (without the leading $-symbol) are no
2675    longer recognized at all. This means that such path names are not
2676    illegal either.  For example, the name basis.cm simply refers to a
2677    local file called "basis.cm" (i.e, the name is an ordinary path
2678    relative to .cm-files directory).  Or, to put it differently, only
2679    names that start with $ are anchored paths.
2680    
2681    ** 1. The $<singlearc> abbreviation for $/<singlearc> has finally
2682    vanished.
2683    
2684    John (Reppy) had critizised this as soon as I originally proposed and
2685    implemented it, but at that time I did not really deeply believe
2686    him. :) Now I came full-circle because I need the $<singlearc> syntax
2687    in another place where it cannot be seen as an abbreviation for
2688    $/<singlearc>.  To avoid the confusion, $<singlearc> now means what it
2689    seems to mean (i.e., it "expands" into the corresponding anchor
2690    value).
2691    
2692    However, when paths are used as members in CM description files, it
2693    continues to be true that there must be at least another arc after the
2694    anchor.  This is now enforced separately during semantic analysis
2695    (i.e., from a lexical/syntactical point of view, the notation is ok.)
2696    
2697    ** 2. The "cm" class now accepts an option "bind".  The option's value
2698    is a sub-option list of precisely two items -- one labeled "anchor"
2699    and the other one labeled "value".  As you might expect, "anchor" is
2700    used to specify an anchor name to be bound, and "value" specifies what
2701    the anchor is being bound to.
2702    
2703    The value must be a directory name and can be given in either standard
2704    syntax (including the possibility that it is itself an anchored path)
2705    or native syntax.
2706    
2707    Examples:
2708    
2709       foo.cm (bind:(anchor:bar value:$mystuff/bar))
2710       lib.cm (bind:(anchor:a value:"H:\\x\\y\\z"))  (* only works under windows *)
2711    
2712    and so on.
2713    
2714    The meaning of this is that the .cm-file will be processed with an
2715    augmented anchor environment where the given anchor(s) is/are bound to
2716    the given values(s).
2717    
2718    The rationale for having this feature is this: Suppose you are trying
2719    to use two different (already stable) libraries a.cm and b.cm (that
2720    you perhaps didn't write yourself).  Further, suppose each of these
2721    two libraries internally uses its own auxiliary library $aux/lib.cm.
2722    Normally you would now have a problem because the anchor "lib" can not
2723    be bound to more than one value globally.  Therefore, the project that
2724    uses both a.cm and b.cm must locally redirect the anchor to some other
2725    place:
2726    
2727       a.cm (bind:(anchor:lib value:/usr/lib/smlnj/a-stuff))
2728       b.cm (bind:(anchor:lib value:/usr/lib/smlnj/b-stuff))
2729    
2730    This hard-wires $lib/aux.cm to /usr/lib/smlnj/a-stuff/aux.cm or
2731    /usr/lib/smlnj/b-stuff/aux.cm, respectively.
2732    
2733    Hard-wiring path names is a bit inflexible (and CM will verbosely warn
2734    you when you do so at the time of CM.stabilize).  Therefore, you can
2735    also use an anchored path as the value:
2736    
2737      a.cm (bind:(anchor:lib value:$a-lib))
2738      b.cm (bind:(anchor:lib value:$b-lib))
2739    
2740    Now you can globally configure (using the usual CM.Anchor.anchor or
2741    pathconfig machinery) bindings for "a-lib" and "b-lib".  Since "lib"
2742    itself is always locally bound, setting it globally is no longer
2743    meaningful or necessary (but it does not hurt either).  In fact, "lib"
2744    can still be used as a global anchor for separate purposes.  As a
2745    matter of fact, one can locally define "lib" in terms of a global
2746    "lib":
2747    
2748      a.cm (bind:(anchor:lib value:$lib/a))
2749      b.cm (bind:(anchor:lib value:$lib/b))
2750    
2751    ** 3: The encoding of path names has changed.  This affects the way
2752    path names are shown in CM's progress report and also the internal
2753    protocol encoding used for parallel make.
2754    
2755    The encoding now uses one or more ':'-separated segments.  Each
2756    segments corresponds to a file that has been specified relative to the
2757    file given by its preceding segment.  The first segment is either
2758    relative to the CWD, absolute, or anchored.  Each segment itself is
2759    basically a Unix pathname; all segments but the first are relative.
2760    
2761    Example:
2762    
2763       $foo/bar/baz.cm:a/b/c.sml
2764    
2765    This path denotes the file bar/a/b/c.sml relative to the directory
2766    denoted by anchor "foo".  Notice that the encoding also includes
2767    baz.cm which is the .cm-file that listed a/b/c.sml.  As usual, such
2768    paths are resolved relative to the .cm-files directory, so baz.cm must
2769    be ignored to get the "real" pathname.
2770    
2771    To make this fact more obvious, CM puts the names of such "virtual
2772    arcs" into parentheses when they appear in progress reports. (No
2773    parentheses will appear in the internal protocol encoding.)  Thus,
2774    what you really see is:
2775    
2776      $foo/bar/(baz.cm):a/b/c.sml
2777    
2778    I find this notation to be much more informative than before.
2779    
2780    Another new feature of the encoding is that special characters
2781    including parentheses, colons, (back)slashes, and white space are
2782    written as \ddd (where ddd is the decimal encoding of the character).
2783    
2784    *** The CM manual still needs to be updated.
2785    
2786    ----------------------------------------------------------------------
2787    Name: Allen Leung
2788    Date: 2000/06/15 00:38:00
2789    Tag: leunga-20000615-x86-peephole
2790    
2791    x86 Peephole fix by Fermin.  Affects c-- and moby only.
2792    
2793    ----------------------------------------------------------------------
2794    Name: Matthias Blume
2795    Date: 2000/06/12 11:40:00
2796    Tag: blume-20000612-parmakefix
2797    Description:
2798    
2799    More cleanup after changing the file naming scheme: This time I
2800    repaired the parallel make mechanism for CMB.make which I broke earlier.
2801    
2802    ----------------------------------------------------------------------
2803    Name: Allen Leung
2804    Date: 2000/06/09 01:25:00
2805    Tag: leunga-20000609-various
2806    
2807    None of these things should affect normal SML/NJ operations
2808    
2809    1. Peephole improvements provided by Fermin (c--)
2810    2. New annotation DEFUSE for adding extra dependence (moby)
2811    3. New X86 LOCK instructions (moby)
2812    4. New machine description language for reservation tables (scheduling)
2813    5. Fixes to various optimization/analysis modules (branch chaining, dominator
2814       trees etc.)
2815    6. I've changed the CM files so that they can work with versions
2816       110.0.6, 110.25 and 110.28
2817    
2818    ----------------------------------------------------------------------
2819    Name: Matthias Blume
2820    Date: 2000/06/09 12:40:00
2821    Tag: blume-20000609-log
2822    Description:
2823    
2824    - Removed all(?) remaining RCS Log entries from sources.
2825    
2826    - Fixed bug in ml-yacc and ml-lex sources (use explicit anchors for
2827      anchored paths).
2828    
2829    ----------------------------------------------------------------------
2830    Name: Matthias Blume
2831    Date: 2000/06/07 17:00:00 JST
2832    Tag: blume-20000607-no-implicit-anchors
2833    Description:
2834    
2835    1. This update changes the default setting for
2836    CM.Control.implicit_anchors from true to false.  This means that
2837    implicit anchors are no longer permitted by default.  I also tried to
2838    make sure that nothing else still relies on implicit anchors.
2839    (This is the next step on the schedule towards a CM that does not even
2840    have the notion of implicit anchors anymore.)
2841    
2842    2. More CM manual updates.
2843    
2844    3. I managed to track down and fix the pickling bug I mentioned last
2845    time.  Because of the previously existing workaround, this entails no
2846    immediate practical changes.
2847    
2848    ----------------------------------------------------------------------
2849    Name: Matthias Blume
2850    Date: 2000/06/06 11:15:00 JST
2851    Tag: blume-20000606-lazierpickle
2852    Description:
2853    
2854    !!!! NEW BOOT FILES !!!!
2855    
2856    * The main purpose of this update is to make library pickles lazier in
2857    order to reduce the initial space penalty for autoloading a library.
2858    As a result, it is now possible to have $smlnj/compiler.cm
2859    pre-registered.  This should take care of the many complaints or
2860    inquiries about missing structure Compiler.  This required changes to
2861    CM's internal data structures and small tweaks to some algorithms.
2862    
2863    As a neat additional effect, it is no longer necessary (for the sake
2864    of lean heap image files) to distinguish between a "minimal" CM and a
2865    "full" CM.  Now, there is only one CM (i.e., the "full" version:
2866    $smlnj/cm.cm aka $smlnj/cm/full.cm), and it is always available at the
2867    interactive top level. ($smlnj/cm/minimal.cm is gone.)
2868    
2869    To make the life of compiler-hackers easier, "makeml" now also
2870    pre-registers $smlnj/cmb.cm (aka $smlnj/cmb/current.cm).  In other
2871    words, after you bootstrap a new sml for the first time, you will not
2872    have to autoload $smlnj/cmb.cm again afterwards.  (The first time
2873    around you will still have to do it, though.)
2874    
2875    * A second change consists of major updates to the CM manual.  There
2876    are now several appendices with summary information and also a full
2877    specification of the CM description file syntax.
2878    
2879    * In directory src/system I added the script "allcross".  This script
2880    invokes sml and cross-compiles the compiler for all supported
2881    architectures.  (Useful when providing a new set of boot files.)
2882    
2883    * There seems to be a latent bug in my "lazy pickles" mechanism.  I
2884    added a small tweak to pickle-util.sml to work around this problem,
2885    but it is not a proper fix yet.  I will investigate further.  (The
2886    effect of the bug was an inflation of library pickle size.)
2887    
2888    * Version number increased to 110.28.1 (to avoid compatibility problems).
2889    
2890    ----------------------------------------------------------------------
2891    Name: Allen Leung
2892    Date: 2000/05/25 17:28 EDT
2893    Tag: leunga-20000525-ra
2894    Description:
2895    
2896      Fixed a bug in freezing phase of the register allocator.
2897    
2898    ----------------------------------------------------------------------
2899    Name: Allen Leung
2900    Date: 2000/05/15 22:53 EDT
2901    Tag: leunga-20000515-alpha-x86-ra
2902    Description:
2903    
2904      1. Alpha
2905    
2906          Slight cleanup.  Removed the instruction SGNXL
2907    
2908      2. X86
2909    
2910          Added the following instructions to the instruction set:
2911    
2912            ROLx, RORx,
2913            BTx, BTSx, BTLx, BTRx,
2914            XCHGx, and variants with the LOCK prefix
2915    
2916      3. Register Allocation
2917    
2918          The module ra-rewrite-with-renaming has been improved.
2919    
2920      These have no effect on SML/NJ.
2921    
2922    ----------------------------------------------------------------------
2923    Name: Matthias Blume
2924    Date: 2000/05/15 16:20:00 JST
2925    Tag: blume-20000515-lightrebuild
2926    Description:
2927    
2928    1. I added an alternative to "-rebuild" to "makeml".  The difference is
2929       that prior to calling CMB.make' the CM-variable "LIGHT" will be
2930       defined.  In effect, the command will not build any cross-compiler
2931       backends and therefore finish more quickly.
2932    
2933       The "fixpt" script also takes a "-light" switch to be able to use
2934       this new facility while compiling for a fixpoint.
2935    
2936    2. I replaced all mentions of anchored paths in group owner specifications
2937       with simple relative paths (usually starting with "..").
2938       The rationale is that a library's internal workings should not be
2939       compromised by the lack of some anchor.  (An anchor is necessary
2940       for someone who wants to refer to the library by an anchored path,
2941       but it should not be necessary to build the same library in the first
2942       place.)
2943    
2944    3. I changed the way CM's tool mechanism determines the shell command
2945       string used for things like ml-yacc etc. so that it does not break
2946       when CM.Control.implicit_anchors is turned off.
2947    
2948    ----------------------------------------------------------------------
2949    Name: Matthias Blume
2950    Date: 2000/05/12 18:20:00 JST
2951    Tag: blume-20000512-ml-build
2952    Description:
2953    
2954    Fixed a bug in config/_ml-build that prevented ml-yacc and ml-lex from
2955    getting installed properly (by config/install.sh).
2956    
2957    ----------------------------------------------------------------------
2958    Name: Matthias Blume
2959    Date: 2000/05/12 17:30:00 JST
2960    Tag: blume-20000512-anchors
2961    Description:
2962    
2963    !!! NEW BOOT FILES !!!
2964    
2965    This change is in preparation of fading out support for "implicitly
2966    anchored path names".  I went through all sources and used the
2967    explicit (and relatively new) $-notation.  See system/README and the
2968    CM manual for more info on this.
2969    
2970    I also modified the anchoring scheme for some things such as "smlnj",
2971    "MLRISC", "cm", etc. to take advantage of the fact that explicit
2972    anchors are more expressive: anchor name and first arc do not have to
2973    coincide.  This entails the following user-visible change:
2974    
2975    You have to write $smlnj/foo/bar instead of smlnj/foo/bar.  In
2976    particular, when you fire up sml with a command-line argument, say,
2977    e.g.:
2978    
2979       sml '$smlnj/cmb.cm'
2980    
2981    At the ML toplevel prompt:
2982    
2983       CM.autoload "$smlnj/cmb.cm";
2984    
2985    There is also a new controller in CM.Control that can be used to turn
2986    off all remaining support for implicit anchors by saying:
2987    
2988        CM.autoload "$smlnj/
2989        #set CM.Control.implicit_anchors false;
2990    
2991    This causes CM to reject implicitly anchored paths.  This is (for the
2992    time being) less permissive than the "final" version where there will
2993    be no more such implicit anchors and relative paths will be just that:
2994    relative.
2995    
2996    The next step (version after next version?) will be to make the
2997    default for CM.Control.implicit_anchors false.  After the dust has
2998    settled, I can then produce the "final" version of this...
2999    
3000    Note: Since bootstrapping is a bit tricky, I provided new boot files.
3001    
3002    ----------------------------------------------------------------------
3003    Name: Matthias Blume
3004    Date: 2000/05/11 16:30:00 JST
3005    Tag: blume-20000511-sources
3006    Description:
3007    
3008    The main change is that I added function CM.sources as a generalized
3009    version of the earlier CM.makedepend.  This entails the following
3010    additional changes:
3011    
3012      - CM.makedepend has been dropped.
3013    
3014      - CM manual has been updated.
3015    
3016      - TOOLS signature and API have been changed.
3017    
3018    ----------------------------------------------------------------------
3019    Name: Allen Leung
3020    Date: 2000/05/10 21:17 EDT
3021    Tag: leunga-20000510-moby-c--ssa
3022    Description:
3023    
3024      Various bug fixes and new features for C--, Moby and MLRISC optimizations.
3025    None of these affect SML/NJ.
3026    
3027    1. Register Allocation
3028    
3029        a. A new ra spilling module (ra/ra-spill-with-renaming) is implemented.
3030           This module tries to remove local (i.e. basic block level) redundancies
3031           during spilling.
3032    
3033        b. A new framework for performing region based register allocation.
3034           Not yet entirely functional.
3035    
3036    2. X86
3037    
3038       a. DefUse for POP was missing the stack pointer [found by Lal]
3039       b. Reload for CALL was incorrect in X86Spill [found by John]
3040       c. Various fixes in X86Spill so that it can be used correctly for
3041          the new spilling module.
3042    
3043    3. SSA/IR
3044    
3045       a. New module ir/dj-dataflow.sml implements elimination based
3046          data flow analysis.
3047    
3048    4. MLRiscGen
3049    
3050       a. Fix for gc type annotation
3051    
3052    5. MDGen
3053    
3054       Various fixes for machine description -> ml code translation.  For ssa
3055       only.
3056    
3057    ----------------------------------------------------------------------
3058    Name: Allen Leung
3059    Date: 2000/05/08 22:17 EDT
3060    Tag: leunga-20000508-labexp
3061    Description:
3062    
3063      Fermin has found a few assembly problems with constant expressions
3064      generated in LabelExp.  Mostly, the problems involve extra parentheses,
3065      which choke on dumb assemblers.  This is his fix.
3066    
3067    ----------------------------------------------------------------------
3068    Name: Dave MacQueen
3069    Date: 2000/04/09 14:00 EDT
3070    Tag: dbm-20000502-Version_110_28
3071    Description:
3072    
3073    1. Updated src/compiler/TopLevel/main/version.sml to version 110.28
3074    
3075    2. Updated config/version to 110.28
3076    
3077    3. Updated config/srcarchiveurl
3078    
3079    3. New boot files!
3080       ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.28/
3081    
3082    ----------------------------------------------------------------------
3083    Name: Matthias Blume
3084    Date: 2000/05/01 19:05:00 JST
3085    Tag: blume-20000501-noweb
3086    Description:
3087    
3088    A new noweb tool has been added.  The existing system is entirely
3089    unaffected by this, but some CM users have asked for renewed noweb
3090    support.  Everything is documented in the CM manual.
3091    
3092    New (plugin) libraries:
3093    
3094       noweb-tool.cm
3095       nw-ext.cm
3096    
3097    ----------------------------------------------------------------------
3098    Name: Dave MacQueen
3099    Date: 2000/04/30 12:40PM EDT
3100    Tag: dbm-20000430-bug_fixes
3101    Description:
3102    
3103    1. Fix for bug 1498
3104       smlnj/src/system/Basis/Implementation/Unsafe/object.sig
3105       smlnj/src/system/Basis/Implementation/Unsafe/object.sml
3106         added toRealArray function
3107       smlnj/src/compiler/MiscUtil/print/ppobj.sml
3108         added check for tag Obj.RealArray to array printing case in ppObj
3109    
3110    2. Fix for bug 1510
3111       smlnj/src/compiler/Semant/types/typesutil.sml
3112         fixed definition of dummyargs (used by equalTycon) so that
3113         dummy args are distinct types
3114    
3115    ----------------------------------------------------------------------
3116    Name: Matthias Blume
3117    Date: 2000/04/30 01:00:00 JST
3118    Tag: blume-20000430-versions
3119    Description:
3120    
3121    1. CM version numbering added.  This is an implementation of Lal's
3122       proposal for adding version numbers and version checking to .cm
3123       files.  Lal said that his proposal was just that -- a proposal.
3124       For the time being I went ahead and implemented it so that people
3125       can comment on it.  Everything is completely backward-compatible
3126       (except for the stable library format, i.e., new bootfiles!).
3127    
3128       As usual, see the CM manual for details.
3129    
3130    2. An alternative syntax for anchored paths has been implemented.
3131       Dave has recently voiced the same concerns that I had when I did
3132       this, so there should be some support.  My take is that eventually
3133       I will let support for the current syntax (where anchors are
3134       "implicit") fade out in favor of the new, explicit syntax.
3135       In order to be backward-compatible, both old and new syntax are
3136       currently supported.
3137    
3138       Again, see the CM manual for details.
3139    
3140    3. Parallel make is trying to be slightly smarter:  When the master
3141       process finds a "bottleneck", i.e., when there is only one
3142       compilation unit that can be compiled and everybody else is
3143       waiting on it, then it will simply compile it directly instead
3144       of clumsily telling one of the slaves to do it.
3145    
3146    4. Support for "unsharing" added.  This is necessary in order to be
3147       able to have two different versions of the same library running
3148       at the same time (e.g., for trying out a new MLRISC while still
3149       having the old MLRISC linked into the current compiler, etc.)
3150       See the CM manual.
3151    
3152    5. Simple "makedepend" functionality added for generating Makefile
3153       dependency information.  (This is rather crude at the moment.
3154       Expect some changes here in the future.)
3155    
3156    6. ".fun" added as a recognized suffix for ML files. Also documented
3157       explicitly in the manual that the fallback behavior (unknown suffix
3158       -> ML file) is not an official feature!
3159    
3160    7. Small changes to the pickler for stable libraries.
3161    
3162    8. Several internal changes to CM (for cleanup/improvement).
3163    
3164    
3165    !!!! NEW BINFILES !!!!
3166    
3167    ----------------------------------------------------------------------
3168    Name: Matthias Blume
3169    Date: 2000/04/28 17:30:00 JST
3170    Tag: blume-20000428-pathconfig
3171    Description:
3172    
3173    1. I changed config/install.sh to remove duplicate entries from the
3174       lib/pathconfig file at the end.  Moreover, the final version of
3175       lib/pathconfig is sorted alphabetically.  The same (sorting) is done
3176       in src/system/installml.
3177    
3178    2. The config/install.sh script now consistently uses relative
3179       pathnames in lib/pathconfig whenever the anchor is in the lib
3180       directory.  (So far this was true for the libraries that come
3181       pre-compiled and bundled as part of the bootfiles but not for
3182       libraries that are compiled by the script itself.)
3183    
3184    ----------------------------------------------------------------------
3185    Name: Matthias Blume
3186    Date: 2000/04/26 13:10:00 JST
3187    Tag: blume-20000426-fun_suffix
3188    Description:
3189    
3190    Added ".fun" as a recognized file name suffix (for ML code).
3191    
3192    ----------------------------------------------------------------------
3193    Name: Allen Leung
3194    Date: 2000/04/25 17:00:00 EST
3195    Tag: leunga-20000425-alpha-ra
3196    Description:
3197    
3198    1. Alpha
3199    
3200        PSEUDOARITH was missing in AlphaRewrite.  This causes an endless loop
3201    in C--.
3202    
3203    2. RA
3204    
3205       Added a flag "ra-dump-size" to print out the size of the flowgraph
3206       and the interference graph.
3207    
3208    ----------------------------------------------------------------------
3209    Name: Dave MacQueen
3210    Date: 2000/04/25/
3211    Tag: dbm-20000425-mlyacc_doc_examples
3212    Description:
3213      Updated mlyacc.tex sections 5 and 7 for SML '97 and CM.
3214      Updated all three examples in src/ml-yacc/examples to run
3215      under 110.* using CM.make.
3216    
3217    ----------------------------------------------------------------------
3218    Name: Allen Leung
3219    Date: 2000/04/20 23:04:00 EST
3220    Tag: leunga-20000420-ssa-c---stuff
3221    Description:
3222    
3223      This update synchronizes my repository with Yale's.  Most of these
3224    changes, however, do not affect SML/NJ at all (the RA is an exception).
3225    
3226    1. Register Allocator
3227    
3228       a. An improvement in the interference graph construction:
3229          Given a copy
3230    
3231                s <- t
3232    
3233          no interference edge between s and t is added for this definition of s.
3234    
3235       b. I've added two new spill heuristic modules that Fermin and I developed
3236          (in the new library RA.cm). These are unused in SML/NJ but maybe
3237          useful for others (Moby?)
3238    
3239    2. X86
3240    
3241       a. Various fixes in the backend provided by Fermin [C--] and Lal.
3242    
3243    3. Alpha
3244    
3245       a. Added the BSR instruction and code generation that goes with it [C--]
3246       b. Other fixes too numerous to recount provided by Fermin [C--]
3247    
3248    4. Regmaps
3249    
3250       a. The regmaps are not initialized with the identity physical bindings
3251          at creation time.  This is unneeded.
3252    
3253    5. MLRISC Optimizations
3254    
3255       a. The DJ-Graph module can now compute the iterated dominance frontiers
3256          intersects with liveness incrementally in linear time! Woohoo!
3257          This is now used in my new SSA construction algorithm.
3258    
3259       b. THe branch reorganization module is now smarter about linear chains of
3260          basic blocks.
3261    
3262    
3263    ----------------------------------------------------------------------
3264    Name: Matthias Blume
3265    Date: 2000/04/12 13:52:00 JST
3266    Tag: blume_main_v110p27_1
3267    Description:
3268    
3269    Changed install.sh script to handle archive files without version number
3270    and to use "boot.<arch>-<os>" instead of "sml.boot.<arch>-<os>" for the
3271    name of the boot file archive.
3272    
3273    ----------------------------------------------------------------------
3274    Name: Dave MacQueen
3275    Date: 2000/04/09 14:00 EDT
3276    Tag: dbm-20000410-Version_110_27
3277    Description:
3278    
3279    1. Updated src/compiler/TopLevel/main/version.sml to version 110.27
3280    
3281    2. Updated src/config/version to 110.27
3282    
3283    3. New boot files!
3284    
3285    ----------------------------------------------------------------------
3286    Name: Allen Leung
3287    Date: 2000/04/09 19:09:00 EST
3288    Tag: leunga-20000409-misc
3289    Description:
3290    
3291    1.  Yet another fix for x86 assembly for idivl, imull, mull and friends.
3292    
3293    2.  Miscellaneous improvements to MLRISC (unused in sml/nj)
3294    
3295    ----------------------------------------------------------------------
3296    Name: Stefan
3297    Date: 2000/04/07 10:00:00 EDT
3298    Tag: monnier-20000406-branch-handling
3299    Description:
3300    
3301    Improved handling of branches (mostly those generated from
3302    polymorphic equality), removed switchoff and changed the
3303    default optimization settings (more cpsopt and less flintopt).
3304    
3305    ----------------------------------------------------------------------
3306    Name: Allen Leung
3307    Date: 2000/04/06 01:30:00 EST
3308    Tag: leunga-20000406-peephole-x86-SSA-2
3309    Description:
3310    
3311       Forgot a few files.
3312    
3313    ----------------------------------------------------------------------
3314    Name: Allen Leung
3315    Date: 2000/04/06 00:36:00 EST
3316    Tag: leunga-20000406-peephole-x86-SSA
3317    Description:
3318    
3319    1.  New Peephole code
3320    
3321    2.  Minor improvement to X86 instruction selection
3322    
3323    3.  Various fixes to SSA and machine description -> code translator
3324    
3325    ----------------------------------------------------------------------
3326    Name: Matthias Blume
3327    Date: 2000/04/05 12:30:00 JST
3328    Tag: blume_main_v110p26p2_3
3329    Description:
3330    
3331    This update just merges three minor cosmetic updates to CM's sources
3332    to get ready for the 110.27 code freeze on Friday.  No functionality
3333    has changed.
3334    
3335    ----------------------------------------------------------------------
3336    Name: Allen Leung
3337    Date: 2000/04/04 19:39:00 EST
3338    Tag: leunga-20000404-x86-asm
3339    Description:
3340    
3341    1.  Fixed a problem in X86 assembly.
3342    
3343        Things like
3344    
3345           jmp %eax
3346           jmp (%eax)
3347    
3348        should be output as
3349    
3350           jmp *%eax
3351           jmp *(%eax)
3352    
3353    2.  Assembly output
3354    
3355          Added a new flag
3356    
3357              "asm-indent-copies" (default to false)
3358    
3359          When this flag is on, parallel copies will be indented an extra level.
3360    
3361  ----------------------------------------------------------------------  ----------------------------------------------------------------------
3362  Name: Allen Leung  Name: Allen Leung
3363  Date: 2000/04/04 03:18:00 EST  Date: 2000/04/04 03:18:00 EST
# Line 31  Line 3378 
3378    
3379  3.  Assembly  3.  Assembly
3380    
3381      When generating assemby, resolve the value of client defined constants,      When generating assembly, resolve the value of client defined constants,
3382      instead of generating symbolic values.  This is controlled by the      instead of generating symbolic values.  This is controlled by the
3383      new flag "asm-resolve-constants", which is default to true.      new flag "asm-resolve-constants", which is default to true.
3384    
# Line 54  Line 3401 
3401    
3402  To this end, I arranged that instead of "structure Core" as "structure  To this end, I arranged that instead of "structure Core" as "structure
3403  _Core" is bound in the pervasive environment.  Core access is done via  _Core" is bound in the pervasive environment.  Core access is done via
3404  _Core (which can never be accidentially rebound because _Core is not a  _Core (which can never be accidentally rebound because _Core is not a
3405  legal surface-syntax symbol).  legal surface-syntax symbol).
3406    
3407  The current solution is much cleaner because the core environment is  The current solution is much cleaner because the core environment is
# Line 64  Line 3411 
3411  with dynamic and symbolic parts of the core environment.  with dynamic and symbolic parts of the core environment.
3412    
3413  Remaining hackery (to bind the "magic" symbol _Core) is localized in the  Remaining hackery (to bind the "magic" symbol _Core) is localized in the
3414  compilation mananger's bootstrap compiler (actually: in the "init group"  compilation manager's bootstrap compiler (actually: in the "init group"
3415  handling).  See the comments in src/system/smlnj/init/init.cmi for  handling).  See the comments in src/system/smlnj/init/init.cmi for
3416  more details.  more details.
3417    
# Line 179  Line 3526 
3526     (specified in the .cm file at each instance where the tool's class is     (specified in the .cm file at each instance where the tool's class is
3527     used).     used).
3528    
3529     This was done to accomodate the new "make" and "shell" tools which     This was done to accommodate the new "make" and "shell" tools which
3530     facilitate fairly seemless hookup to portions of code managed using     facilitate fairly seamless hookup to portions of code managed using
3531     Makefiles or Shell scripts.     Makefiles or Shell scripts.
3532    
3533     There are no classes "shared" or "private" anymore.  Instead, the     There are no classes "shared" or "private" anymore.  Instead, the
# Line 192  Line 3539 
3539    
3540     All existing tools are described in the CM manual.     All existing tools are described in the CM manual.
3541    
3542     - Slightly better error handling.  (CM now surpresses many followup     - Slightly better error handling.  (CM now suppresses many followup
3543     error messages that tended to be more annoying than helpful.)     error messages that tended to be more annoying than helpful.)
3544    
3545  2. Major changes to the compiler's static environment data structures.  2. Major changes to the compiler's static environment data structures.
# Line 223  Line 3570 
3570       elaborator). There were a lot of changes during my "linkpath" trials       elaborator). There were a lot of changes during my "linkpath" trials
3571       that could have been reverted to their original state but weren't.       that could have been reverted to their original state but weren't.
3572       Please, don't be too harsh on me for messing with this code a bit more       Please, don't be too harsh on me for messing with this code a bit more
3573       than what was strictly necessary...  (I _did_ resist the tempation       than what was strictly necessary...  (I _did_ resist the temptation
3574       of doing any "global reformatting" to avoid an untimely death at       of doing any "global reformatting" to avoid an untimely death at
3575       Dave's hands. :)       Dave's hands. :)
3576    
# Line 326  Line 3673 
3673    
3674       I've changed andl to testl in the floating point test sequence       I've changed andl to testl in the floating point test sequence
3675       whenever appropriate.  The Intel optimization guide states that       whenever appropriate.  The Intel optimization guide states that
3676       testl is perferable to andl.       testl is preferable to andl.
3677    
3678  7. RA (x86 only)  7. RA (x86 only)
3679    
# Line 508  Line 3855 
3855    
3856  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an
3857  additional argument called "template" which is an optional string that  additional argument called "template" which is an optional string that
3858  specifiel the layout of the tool command line.  See the CM manual for  specifies the layout of the tool command line.  See the CM manual for
3859  explanation.  explanation.
3860    
3861  2. A special-purpose tool can be "regisitered" by simply dropping the  2. A special-purpose tool can be "registered" by simply dropping the
3862  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same
3863  directory where the .cm file lives that uses this tool.  (The  directory where the .cm file lives that uses this tool.  (The
3864  behavior/misfeature until now was to look for the tool description  behavior/misfeature until now was to look for the tool description
# Line 555  Line 3902 
3902  rebuild.  Having sets of the form <base><k>.{bin,boot}.<arch>-unix for  rebuild.  Having sets of the form <base><k>.{bin,boot}.<arch>-unix for
3903  <k>=1,2,... is normally not a good idea when invoking fixpt.  However,  <k>=1,2,... is normally not a good idea when invoking fixpt.  However,
3904  they might be the result of an earlier partial run of fixpt (which  they might be the result of an earlier partial run of fixpt (which
3905  perhaps got accidentially killed).  In this case, fixpt will quickly  perhaps got accidentally killed).  In this case, fixpt will quickly
3906  move through what exists before continuing where it left off earlier,  move through what exists before continuing where it left off earlier,
3907  and, thus, saves a lot of time.  and, thus, saves a lot of time.
3908    
# Line 605  Line 3952 
3952    it from that remote directory.    it from that remote directory.
3953    This should simplify installation further:  For machines that have    This should simplify installation further:  For machines that have
3954    access to the internet, just fetch <version>-config.tgz, unpack it,    access to the internet, just fetch <version>-config.tgz, unpack it,
3955    edit config/targets, and go (run config/install.sh).  The scipt will    edit config/targets, and go (run config/install.sh).  The script will
3956    fetch everything else that it might need all by itself.    fetch everything else that it might need all by itself.
3957    
3958    For CVS users, this mechanism is not relevant for source archives, but    For CVS users, this mechanism is not relevant for source archives, but

Legend:
Removed from v.593  
changed lines
  Added in v.1045

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