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 749, Fri Dec 8 15:16:36 2000 UTC revision 1034, Thu Jan 24 05:53:53 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: Lal George
17    Date: 2002/01/24
18    Tag: george-20020124-risc-ra-interface
19    Description:
20    
21       There is a dramatic simplification in the interface to the
22       register allocator for RISC architectures as a result of making
23       parallel copy instructions explicit.
24    
25    ----------------------------------------------------------------------
26    Name: Matthias Blume
27    Date: 2002/01/22
28    Tag: blume-20020122-x86-ccalls
29    Description:
30    
31    Bug fix for c-calls on x86 (having to do with how char- and
32    short-arguments are being handled).
33    
34    ----------------------------------------------------------------------
35    Name: Matthias Blume
36    Date: 2002/01/21
37    Tag: blume-20020121-ff
38    Description:
39    
40    Another day of fiddling with the FFI...
41    
42    1. Bug fix/workaround:  CKIT does not complain about negative array
43       dimensions, so ml-nlffigen has to guard itself against this possibility.
44       (Otherwise a negative dimension would send it into an infinite loop.)
45    
46    2. Some of the abstract types (light objects, light pointers, most "base"
47       types) in structure C are now eqtypes.
48    
49    3. Added constructors and test functions for NULL function pointers.
50    
51    ----------------------------------------------------------------------
52    Name: Matthias Blume
53    Date: 2002/01/18
54    Tag: blume-20020118-ready-for-new-release
55    Description:
56    
57    Made config/srcarchiveurl point to a new place.  (Will provide boot
58    files shortly.)
59    
60    Maybe we christen this to be 110.38?
61    
62    ----------------------------------------------------------------------
63    Name: Matthias Blume
64    Date: 2002/01/18
65    Tag: blume-20020118-more-ffifiddle
66    Description:
67    
68    Today's FFI fiddling:
69    
70      - Provided a structure CGetSet with "convenient" versions of C.Get.* and
71        C.Set.* that use concrete (MLRep.*) arguments and results instead
72        of abstract ones.
73    
74      - Provided word-style bit operations etc. for "int" representation
75        types in MLRep.S<Foo>Bitops where <Foo> ranges over Char, Int, Short,
76        and Long.
77    
78    ----------------------------------------------------------------------
79    Name: Matthias Blume
80    Date: 2002/01/18
81    Tag: blume-20020118-use-x86-fp
82    Description:
83    
84    Now that x86-fast-fp seems to be working, I turned it back on again
85    by default.  (Seems to work fine now, even with the FFI.)
86    
87    Other than that, I added some documentation about the FFI to
88    src/ml-nlffigen/README and updated the FFI test examples in
89    src/ml-nlffi-lib/Tests/*.
90    
91    ----------------------------------------------------------------------
92    Name: Allen Leung
93    Date: 2002/01/17
94    Tag: leunga-20020117-x86-fast-fp-call
95    Description:
96    
97       1. Fixed a problem with handling return fp values when x86's fast fp
98          mode is turned on.
99    
100       2. Minor pretty printing fix for cellset.  Print %st(0) as %st(0) instead
101          of %f32.
102    
103       3. Added a constructor INT32lit to the ast of MLRISC tools.
104    
105    ----------------------------------------------------------------------
106    Name: Matthias Blume
107    Date: 2002/01/16
108    Tag: blume-20020116-ffifiddle
109    Description:
110    
111    More fiddling with the FFI interface:
112    
113     - Make constness 'c instead of rw wherever possible.  This eliminates
114       the need for certain explicit coercions.  (However, due to ML's
115       value polymorphism, there will still be many cases where explicit
116       coercions are necessary.  Phantom types are not the whole answer
117       to modeling a subtyping relationship in ML.)
118    
119     - ro/rw coersions for pointers added.  (Avoids the detour through */&.)
120    
121     - "printf" test example added to src/ml-nlffi-lib/Tests.  (Demonstrates
122       clumsy workaround for varargs problem.)
123    
124    ----------------------------------------------------------------------
125    Name: Lal George
126    Date: 2002/01/15
127    Tag: <none>
128    Description:
129    
130    1. Since COPY instructions are no longer native to the architecture,
131       a generic functor can be used to implement the expandCopies function.
132    
133    2. Allowed EXPORT and IMPORT pseudo-op declarations to appear inside a
134       TEXT segment.
135    
136    ----------------------------------------------------------------------
137    Name: Matthias Blume
138    Date: 2002/01/15
139    Tag: blume-20020115-ffiupdates
140    Description:
141    
142    1. Fix for bug resulting in single-precision float values being returned
143       incorrectly from FFI calls.
144    
145    2. Small modifications to C FFI API:
146    
147        - memory-allocation routines return straight objects (no options)
148          and raise an exception in out-of-memory situations
149        - unsafe extensions to cast between function pointers and pointers
150          from/to ints
151        - added structure C_Debug as an alternative to structure C where
152          pointer-dereferencing (|*| and |*!) always check for null-pointers
153        - added open_lib' to DynLinkage;  open_lib' works like open_lib
154          but also takes a (possibly empty) list of existing library handles
155          that the current library depends on
156    
157    ----------------------------------------------------------------------
158    Name: Matthias Blume
159    Date: 2002/01/10
160    Tag: blume-20020110-newffigen
161    Description:
162    
163    1. Updates to portable graph code.
164    
165    2. Major update to ml-nlffigen and ml-nlffi-lib.  Things are much
166       more scalable now so that even huge interfaces such as the one
167       for GTK compile in finite time and space. :-)
168       See src/ml-nlffigen/README for details on what's new.
169    
170    ----------------------------------------------------------------------
171    Name: Lal George
172    Date: 2001/01/09 14:31:35 EST 2002
173    Tag: george-20011206-rm-native-copy
174    Description:
175    
176            Removed the native COPY and FCOPY instructions
177            from all the architectures and replaced it with the
178            explicit COPY instruction from the previous commit.
179    
180            It is now possible to simplify many of the optimizations
181            modules that manipulate copies. This has not been
182            done in this change.
183    
184    ----------------------------------------------------------------------
185    Name: Lal George
186    Date: 2001/12/06 16:50:13 EST 2001
187    Tag: george-20011206-mlrisc-instruction
188    Description:
189    
190    Changed the representation of instructions from being fully abstract
191    to being partially concrete. That is to say:
192    
193      from
194            type instruction
195    
196      to
197            type instr                              (* machine instruction *)
198    
199            datatype instruction =
200                LIVE of {regs: C.cellset, spilled: C.cellset}
201              | KILL of {regs: C.cellset, spilled: C.cellset}
202              | COPYXXX of {k: CB.cellkind, dst: CB.cell list, src: CB.cell list}
203              | ANNOTATION of {i: instruction, a: Annotations.annotation}
204              | INSTR of instr
205    
206    This makes the handling of certain special instructions that appear on
207    all architectures easier and uniform.
208    
209    LIVE and KILL say that a list of registers are live or killed at the
210    program point where they appear. No spill code is generated when an
211    element of the 'regs' field is spilled, but the register is moved to
212    the 'spilled' (which is present, more for debugging than anything else).
213    
214    LIVE replaces the (now deprecated) DEFFREG instruction on the alpha.
215    We used to generate:
216    
217            DEFFREG f1
218            f1 := f2 + f3
219            trapb
220    
221    but now generate:
222    
223            f1 := f2 + f3
224            trapb
225            LIVE {regs=[f1,f2,f3], spilled=[]}
226    
227    Furthermore, the DEFFREG (hack) required that all floating point instruction
228    use all registers mentioned in the instruction. Therefore f1 := f2 + f3,
229    defines f1 and uses [f1,f2,f3]! This hack is no longer required resulting
230    in a cleaner alpha implementation. (Hopefully, intel will not get rid of
231    this architecture).
232    
233    COPYXXX is intended to replace the parallel COPY and FCOPY  available on
234    all the architectures. This will result in further simplification of the
235    register allocator that must be aware of them for coalescing purposes, and
236    will also simplify certain aspects of the machine description that provides
237    callbacks related to parallel copies.
238    
239    ANNOTATION should be obvious, and now INSTR represents the honest to God
240    machine instruction set!
241    
242    The <arch>/instructions/<arch>Instr.sml files define certain utility
243    functions for making porting easier -- essentially converting upper case
244    to lower case. All machine instructions (of type instr) are in upper case,
245    and the lower case form generates an MLRISC instruction. For example on
246    the alpha we have:
247    
248      datatype instr =
249         LDA of {r:cell, b:cell, d:operand}
250       | ...
251    
252      val lda : {r:cell, b:cell, d:operand} -> instruction
253        ...
254    
255    where lda is just (INSTR o LDA), etc.
256    
257    ----------------------------------------------------------------------
258    Name: Matthias Blume
259    Date: 2001/11/22 21:40:00 EST
260    Tag: Release_110_37
261    Description:
262    
263    Release 110.37.  This time for real.
264    
265    ----------------------------------------------------------------------
266    Name: Matthias Blume
267    Date: 2001/11/21 16:35:00 EST
268    Tag: blume-20011121-foot-in-mouth
269    Description:
270    
271    Removed the "Release_110_37" tag because of a serious bug.
272    This will be re-tagged once the bug is fixed.
273    
274    ----------------------------------------------------------------------
275    Name: Matthias Blume
276    Date: 2001/11/21 16:14:00 EST
277    Tag: blume-20011121-forgottenfile
278    Description:
279    
280    Forgot to add a file.  (Just a .tex-file -- part of
281    the CM manual source.)
282    
283    ----------------------------------------------------------------------
284    Name: Matthias Blume
285    Date: 2001/11/21 16:10:00 EST
286    Tag: blume-20011121-invalid_110_37
287    Description:
288    
289    Note: I removed the original tag "Release_110_37" from this commit
290          because we found a serious bug in all non-x86 backends.
291          - Matthias
292    
293    1. Modifications to the SML/NJ code generator and to the runtime system
294       so that code object name strings are directly inserted into code
295       objects at code generation time.  The only business the runtime system
296       has with this is now to read the name strings on occasions.
297       (The encoding of the name string has also changed somewhat.)
298    
299    2. CM now implements a simple "set calculus" for specifying export lists.
300       In particular, it is now possible to refer to the export lists of
301       other libraries/groups/sources and form unions as well as differences.
302       See the latest CM manual for details.
303    
304    3. An separate notion of "proxy" libraries has again be eliminated from
305       CM's model.  (Proxy libraries are now simply a special case of using
306       the export list calculus.)
307    
308    4. Some of the existing libraries now take advantage of the new set
309       calculus.
310       (Notice that not all libraries have been converted because some
311       of the existing .cm-files are supposed to be backward compatible
312       with 110.0.x.)
313    
314    5. Some cleanup in stand-alone programs.  (Don't use "exnMessage" -- use
315       "General.exnMessage"!  The former relies on a certain hook to be
316       initialized, and that often does not happen in the stand-alone case.)
317    
318    ----------------------------------------------------------------------
319    Name: Lal George
320    Date: 2001/11/21  13:56:18 EST
321    Tag: george-2001121-pseudo-ops
322    Description:
323    
324      Implemented a complete redesign of MLRISC pseudo-ops. Now there
325      ought to never be any question of incompatabilities with
326      pseudo-op syntax expected by host assemblers.
327    
328      For now, only modules supporting GAS syntax are implemented
329      but more should follow, such as MASM, and vendor assembler
330      syntax, e.g. IBM as, Sun as, etc.
331    
332    ----------------------------------------------------------------------
333    Name: Matthias Blume
334    Date: 2001/11/14 11:52:00 EST
335    Tag: blume-20011114-srcname
336    Description:
337    
338    1. Routed the name of the current source file to mlriscgen where it
339       should be directly emitted into the code object.  (This last part
340       is yet to be done.)
341    
342    2. Some cleanup of the pgraph code to make it match the proposal that
343       I put out the other day.  (The proposal notwithstanding, things are
344       still in flux here.)
345    
346    ----------------------------------------------------------------------
347    Name: Lal George
348    Date: 2001/11/14 09:44:04 EST
349    Tag:
350    Description:
351    
352      Fix for a backpatching bug reported by Allen.
353    
354      Because the boundary between short and long span-dependent
355      instructions is +/- 128, there are an astounding number of
356      span-dependent instructions whose size is over estimated.
357    
358      Allen came up with the idea of letting the size of span
359      dependent instructions be non-monotonic, for a maxIter
360      number of times, after which the size must be monotonically
361      increasing.
362    
363      This table shows the number of span-dependent instructions
364      whose size was over-estimated as a function of maxIter, for the
365      file Parse/parse/ml.grm.sml:
366    
367         maxIter            # of instructions:
368            10                      687
369            20                      438
370            30                      198
371            40                        0
372    
373      In compiling the compiler, there is no significant difference in
374      compilation speed between maxIter=10 and maxIter=40. Actually,
375      my measurements showed that maxIter=40 was a tad faster than
376      maxIter=10! Also 96% of the  files in the compiler reach a fix
377      point within 13 iterations, so fixing maxIter at 40, while high,
378      is okay.
379    
380    ----------------------------------------------------------------------
381    Name: Matthias Blume
382    Date: 2001/10/31 15:25:00 EST
383    Tag: blume-20011031-pgraph
384    Description:
385    
386    CKIT:
387    * Changed the "Function" constructor of type Ast.ctype to carry optional
388      argument identifiers.
389    * Changed the return type of TypeUtil.getFunction accordingly.
390    * Type equality ignores the argument names.
391    * TypeUtil.composite tries to preserve argument names but gives up quickly
392      if there is a mismatch.
393    
394    installation script:
395    * attempts to use "curl" if available (unless "wget" is available as well)
396    
397    CM:
398    * has an experimental implementation of "portable graphs" which I will
399      soon propose as an implementation-independent library format
400    * there are also new libraries $/pgraph.cm and $/pgraph-util.cm
401    
402    NLFFI-LIB:
403    * some cleanup (all cosmetic)
404    
405    NLFFIGEN:
406    * temporarily disabled the mechanism that suppresses ML output for
407      C definitions whose identifiers start with an underscore character
408    * generate val bindings for enum constants
409    * user can request that only one style (light or heavy) is being used;
410      default is to use both (command-line arguments: -heavy and -light)
411    * fixed bug in handling of function types involving incomplete pointers
412    * generate ML entry points that take record arguments (i.e., using
413      named arguments) for C functions that have a prototype with named
414      arguments
415      (see changes to CKIT)
416    
417    ----------------------------------------------------------------------
418    Name: Allen Leung
419    Date: 2001/10/27 20:34:00 EDT
420    Tag: leunga-20011027-x86-fast-fp-call
421    Description:
422    
423       Fixed the bug described in blume-20010920-slowfp.
424    
425       The fix involves
426          1. generating FCOPYs in FSTP in ia32-svid
427          2. marking a CALL with the appropriate annotation
428    
429    ----------------------------------------------------------------------
430    Name: Matthias Blume
431    Date: 2001/10/16 11:32:00 EDT
432    Tag: blume-20011016-netbsd
433    Description:
434    
435    Underscore patch from Chris Richards (fixing problem with compiling
436    runtime system under recent NetBSD).
437    
438    ----------------------------------------------------------------------
439    Name: Allen Leung
440    Date: 2001/10/12 17:18:32 EDT 2001
441    Tag: leung-20011012-x86-printflowgraph
442    Description:
443    
444    X86RA now uses a valid (instead of dummy) PrintFlowgraph module.
445    
446    ----------------------------------------------------------------------
447    Name: Lal George
448    Date: 2001/10/11 23:51:34 EDT
449    Tag: george-20011011-too-many-instrs
450    Description:
451    
452    The representation of a program point never expected to see more
453    than 65536 instructions in a basic block!
454    
455    ----------------------------------------------------------------------
456    Name: Lal George
457    Date: 2001/10/09 09:41:37 EDT
458    Tag: george-20011008-mlrisc-labels
459    Description:
460    
461    Changed the machine description files to support printing of
462    local and global labels in assembly code, based on host assembler
463    conventions.
464    
465    ----------------------------------------------------------------------
466    Name: Matthias Blume
467    Date: 2001/09/25 15:25:00 EDT
468    Tag: blume-20010925-exninfo
469    Description:
470    
471    I provided a non-hook implementation of exnName (at the toplevel) and
472    made the "dummy" implementation of exnMessage (at the toplevel) more
473    useful: if nothing gets "hooked in", then at least you are going to
474    see the exception name and a message indicating why you don't see more.
475    
476    [For the time being, programs that need exnMessage and want to use
477    ml-build should either use General.exnMessage (strongly recommended) or
478    refer to structure General at some other point so that CM sees a
479    static dependency.]
480    
481    [Similar remarks go for "print" and "use":  If you want to use their
482    functionality in stand-alone programs generated by ml-build, then use
483    TextIO.output and Backend.Interact.useFile (from $smlnj/compiler.cm).]
484    
485    ----------------------------------------------------------------------
486    Name: Matthias Blume
487    Date: 2001/09/20 17:28:00 EDT
488    Tag: blume-20010920-slowfp
489    Description:
490    
491    Allen says that x86-fast-fp is not safe yet, so I turned it off again...
492    
493    ----------------------------------------------------------------------
494    Name: Matthias Blume
495    Date: 2001/09/20 17:20:00 EDT
496    Tag: blume-20010920-canonicalpaths
497    Description:
498    
499    0. Updated the BOOT file (something that I forgot to do earlier).
500    
501    1. Small internal change to CM so that it avoids "/../" in filenames
502       as much as possible (but only where it is safe).
503    
504    2. Changed config/_run-sml (resulting in a changed bin/.run-sml) so
505       that arguments that contain delimiters are passed through correctly.
506       This change also means that all "special" arguments of the form
507       @SMLxxx... must come first.
508    
509    3. Changed install script to put relative anchor names for tool commands
510       into pathconfig.
511    
512    ----------------------------------------------------------------------
513    Name: Matthias Blume
514    >>>>>>> 1.169
515    Date: 2001/09/18 15:35:00 EDT
516    Tag: blume-20010918-readme11036
517    Description:
518    
519    Added README files.
520    
521    ----------------------------------------------------------------------
522    Name: Matthias Blume
523    Date: 2001/09/18 11:45:00 EDT
524    Tag: Release_110_36 (retag)
525    Description:
526    
527    Fixed mistake in config/preloads. Retagged as 110.36.
528    
529    ----------------------------------------------------------------------
530    Name: Matthias Blume
531    Date: 2001/09/18 09:40:00 EDT
532    Tag: Release_110_36_orig (tag changed)
533    Description:
534    
535    New version (110.36).  New bootfiles.
536    
537    ----------------------------------------------------------------------
538    Name: Matthias Blume
539    Date: 2001/09/14 16:15:00 EDT
540    Tag: blume-20010914-x86fastfp
541    Description:
542    
543    John committed some changes that Allen made, in particular a (hopefully)
544    correctly working version of the x86-fp module.
545    
546    I changed the default setting of the Control.MLRISC.getFlag "x86-fast-fp"
547    flag to "true".  Everything seems to compile to a fixpoint ok, and
548    "mandelbrot" speeds up by about 15%.
549    
550    ----------------------------------------------------------------------
551    Name: Matthias Blume
552    Date: 2001/09/13 11:20:00 EDT
553    Tag: blume-20010913-minimal
554    Description:
555    
556    1. Stefan Monnier's patch to fix a miscompilation problem that
557       was brought to light by John Reppy's work on Moby.
558    
559    2. Implemented a minimal "structure Compiler" that contains just
560       "version" and "architecture".  The minimal version will be
561       available when the full version is not.  This is for backward-
562       compatibility with code that wants to test Compiler.version.
563    
564    ----------------------------------------------------------------------
565    Name: Matthias Blume
566    Date: 2001/08/28 14:03:00 EDT
567    Tag: blume-20010828-ml-lex
568    Description:
569    
570    Fix for bug 1581, received from Neophytos Michael.
571    
572    ----------------------------------------------------------------------
573    Name: Matthias Blume
574    Date: 2001/08/27 11:20:00 EDT
575    Tag: blume-20010827-readme11035
576    Description:
577    
578    Fleshed out the README file for 110.35.
579    
580    ----------------------------------------------------------------------
581    Name: Matthias Blume
582    Date: 2001/08/24 17:10:00 EDT
583    Tag: Release_110_35
584    Description:
585    
586    New version number (110.35).  New bootfiles.
587    
588    ----------------------------------------------------------------------
589    Name: Lal George
590    Date: 2001/08/24 13:47:18 EDT 2001
591    Tag: george-20010824-MLRISC-graphs
592    Description:
593    
594     removed clusters from MLRISC completely and replaced with graphs.
595    
596    ----------------------------------------------------------------------
597    Name: Matthias Blume
598    Date: 2001/08/23 17:50:00 EDT
599    Tag: blume-20010823-toplevel
600    Description:
601    
602    - some reorganization of the code that implements various kinds of
603      environments in the compiler (static, dynamic, symbolic, combined)
604    - re-implemented the EnvRef module so that evalStream works properly
605      (if the stream contains references to "use", "CM.make", etc.)
606    - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
607    
608    ----------------------------------------------------------------------
609    Name: Matthias Blume
610    Date: 2001/08/20 15:50 EDT
611    Tag: blume20010820-slipup
612    Description:
613    
614    I forgot to commit a few files.  Here they are...
615    
616    ----------------------------------------------------------------------
617    Name: Matthias Blume
618    Date: 2001/08/20 15:35:00 EDT
619    Tag: blume-20010820-debugprof
620    Description:
621    
622    !!!! NEW BOOTFILES !!!!
623    
624    This is another round of reorganizing the compiler sources.  This
625    time the main goal was to factor out all the "instrumentation"
626    passes (for profiling and backtracing) into their own library.
627    The difficulty was to do it in such a way that it does not depend
628    on elaborate.cm but only on elabdata.cm.
629    
630    Therefore there have been further changes to both elaborate.cm and
631    elabdata.cm -- more "generic" things have been moved from the former
632    to the latter.  As a result, I was forced to split the assignment
633    of numbers indicating "primtyc"s into two portions: SML-generic and
634    SML/NJ-specific.  Since it would have been awkward to maintain,
635    I bit the bullet and actually _changed_ the mapping between these
636    numbers and primtycs.  The bottom line of this is that you need
637    a new set of bin- and bootfiles.
638    
639    I have built new bootfiles for all architectures, so doing a fresh
640    checkout and config/install.sh should be all you need.
641    
642    The newly created library's name is
643    
644        $smlnj/viscomp/debugprof.cm
645    
646    and its sources live under
647    
648        src/compiler/DebugProf
649    
650    ----------------------------------------------------------------------
651    Name: Matthias Blume
652    Date: 2001/08/15 17:15:00 EDT
653    Tag: blume-20010815-compreorg
654    Description:
655    
656    This is a first cut at reorganizing the CM libraries that make up the
657    core of the compiler.  The idea is to separate out pieces that could
658    be used independently by tools, e.g., the parser, the typechecker, etc.
659    
660    The current status is a step in this direction, but it is not quite
661    satisfactory yet.  Expect more changes in the future.
662    
663    Here is the current (new) organization...
664    
665        What used to be $smlnj/viscomp/core.cm is now divided into
666        six CM libraries:
667    
668             $smlnj/viscomp/basics.cm
669                           /parser.cm
670                           /elabdata.cm
671                           /elaborate.cm
672                           /execute.cm
673                           /core.cm
674    
675        The CM files for these libraries live under src/system/smlnj/viscomp.
676        All these libraries are proxy libraries that contain precisely
677        one CM library component.  Here are the locations of the components
678        (all within the src/compiler tree):
679    
680             Basics/basics.cm
681             Parse/parser.cm
682             ElabData/elabdata.cm
683             Elaborator/elaborate.cm
684             Execution/execute.cm
685             core.cm
686    
687         [This organization is the same that has been used already
688         for a while for the architecture-specific parts of the visible
689         compiler and for the old version of core.cm.]
690    
691         As you will notice, many source files have been moved from their
692         respective original locations to a new home in one of the above
693         subtrees.
694    
695         The division of labor between the new libraries is the following:
696    
697             basics.cm:
698                - Simple, basic definitions that pertain to many (or all) of
699                  the other libraries.
700             parser.cm:
701                - The SML parser, producing output of type Ast.dec.
702                - The type family for Ast is also defined and exported here.
703             elabdata.cm:
704                - The datatypes that describe input and output of the elaborator.
705                  This includes types, absyn, and static environments.
706             elaborator.cm:
707                - The SML/NJ type checker and elaborator.
708                  This maps an Ast.dec (with a given static environment) to
709                  an Absyn.dec (with a new static environment).
710                - This libraries implements certain modules that used to be
711                  structures as functors (to remove dependencies on FLINT).
712             execute.cm:
713                - Everything having to do with executing binary code objects.
714                - Dynamic environments.
715             core.cm:
716                - SML/NJ-specific instantiations of the elaborator and MLRISC.
717                - Top-level modules.
718                - FLINT (this should eventually become its own library)
719    
720    Notes:
721    
722    I am not 100% happy with the way I separated the elaborator (and its
723    data structures) from FLINT.  Two instances of the same problem:
724    
725        1. Data structures contain certain fields that carry FLINT-specific
726           information.  I hacked around this using exn and the property list
727           module from smlnj-lib.  But the fact that there are middle-end
728           specific fields around at all is a bit annoying.
729    
730        2. The elaborator calculates certain FLINT-related information.  I tried
731           to make this as abstract as I could using functorization, but, again,
732           the fact that the elaborator has to perform calculations on behalf
733           of the middle-end at all is not nice.
734    
735        3. Having to used exn and property lists is unfortunate because it
736           weakens type checking.  The other alternative (parameterizing
737           nearly *everything*) is not appealing, though.
738    
739    I removed the "rebinding =" warning hack because due to the new organization
740    it was awkward to maintain it.  As a result, the compiler now issues some of
741    these warnings when compiling init.cmi during bootstrap compilation. On
742    the plus side, you also get a warning when you do, for example:
743       val op = = Int32.+
744    which was not the case up to now.
745    
746    I placed "assign" and "deref" into the _Core structure so that the
747    code that deals with the "lazy" keyword can find them there.  This
748    removes the need for having access to the primitive environment
749    during elaboration.
750    
751    ----------------------------------------------------------------------
752    Name: Matthias Blume
753    Date: 2001/08/13
754    Tag: blume-20010813-closures
755    Description:
756    
757    This fix was sent to us by Zhong Shao.  It is supposed to improve the
758    performance of certain loops by avoiding needless closure allocation.
759    
760    ----------------------------------------------------------------------
761    Name: Lal George
762    Date: 2001/07/31 10:03:23 EDT 2001
763    Tag: george-20010731-x86-fmalloc
764    Description: Fixed bug in x86 calls
765    
766        There was a bug where call instructions would mysteriously
767        vanish. The call instruction had to be one that returned
768        a floating point value.
769    
770    ----------------------------------------------------------------------
771    Name: Lal George
772    Date: 2001/07/19 16:36:29 EDT 2001
773    Tag: george-20010719-simple-cells
774    Description:
775    
776    I have dramatically simplified the interface for CELLS in MLRISC.
777    
778    In summary, the cells interface is broken up into three parts:
779    
780      1. CellsBasis : CELLS_BASIS
781    
782            CellsBasis is a top level structure and common for all
783            architectures.  it contains the definitions of basic datatypes
784            and utility  functions over these types.
785    
786      2. functor Cells() : CELLS
787    
788            Cells generates an interface for CELLS that incorporates the
789            specific resources on the target architecture, such as the
790            presence of special register classes, their number and size,
791            and various useful substructures.
792    
793      3. <ARCH>CELLS
794    
795            e.g. SparcCells: SPARCCELLS
796    
797            <ARCH>CELLS usually contains additional bindings for special
798            registers  on the architecture, such as:
799    
800                    val r0 : cell           (* register zero *)
801                    val y : cell            (* Y register *)
802                    val psr : cell          (* processor status register *)
803                    ...
804    
805            The structure returned by applying the Cells functor is opened
806            in this interface.
807    
808    The main implication of all this is that the datatypes for cells is
809    split between CellsBasis and CELLS -- a fairly simple change for user
810    code.
811    
812    In the old scheme the CELLS interface had a definitional binding of
813    the form:
814    
815            signature CELLS = sig
816    
817               structure CellsBasis = CellsBasis
818    
819               ...
820    
821            end
822    
823    With all the sharing constraints that goes on in MLRISC, this old
824    design  quickly leads to errors such as:
825    
826            "structure definition spec inside of sharing ... "
827    
828    
829    and appears to require an unacceptable amount of sharing and where
830    constraint hackery.
831    
832    I think this error message (the interaction of definitional specs and
833    sharing) requires more explanation on our web page.
834    
835    ----------------------------------------------------------------------
836    Name: Matthias Blume
837    Date: 2001/07/19 15:00:00 EDT
838    Tag: blume-20010719-libreorg
839    Description:
840    
841    This update puts together a fairly extensive but straightforward change
842    to the way the libraries that implement the interactive system are
843    organized:
844    
845       The biggest change is the elimination of structure Compiler.  As a
846       replacement for this structure, there is now a CM library
847       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
848       that exports all the substructures of the original structure Compiler
849       directly.  So instead of saying Compiler.Foo.bar one now simply
850       says Foo.bar.  (The CM libraries actually export a collection of
851       structures that is richer than the collection of substructures of
852       structure Compiler.)
853    
854       To make the transition smooth, there is a separate library called
855       $smlnj/compiler/compiler.cm which puts together and exports the
856       original structure Compiler (or at least something very close to it).
857    
858       There are five members of the original structure Compiler
859       that are not exported directly but which instead became members
860       of a new structure Backend (described by signature BACKEND).  These are:
861       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
862       Interact (: INTERACT), structure Machine (: MACHINE), and val
863       architecture (: string).
864    
865       Structure Compiler.Version has become structure CompilerVersion.
866    
867       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
868       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
869       or x86, respectively.
870       Each of these exports the same frontend structures that
871       $smlnj/compiler.cm exports.  But they do not have a structure Backend
872       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
873       Hppa, PPC, Sparc, or X86, respectively.
874    
875       Library $smlnj/compiler/all.cm exports the union of the exports of
876       $smlnj/compiler/<arch>.cm
877    
878       There are no structures <Arch>Compiler anymore, use
879       $smlnj/compiler/<arch>.cm instead.
880    
881       Library host-compiler-0.cm is gone.  Instead, the internal library
882       that instantiates CM is now called cm0.cm.  Selection of the host
883       compiler (backend) is no longer done here but. (Responsibility for it
884       now lies with $smlnj/compiler/current.cm.  This seems to be more
885       logical.)
886    
887       Many individual files have been moved or renamed.  Some files have
888       been split into multiple files, and some "dead" files have been deleted.
889    
890    Aside from these changes to library organization, there are also changes
891    to the way the code itself is organized:
892    
893       Structure Binfile has been re-implemented in such a way that it no
894       longer needs any knowledge of the compiler.  It exclusively deals
895       with the details of binfile layout.  It no longer invokes the
896       compiler (for the purpose of creating new prospective binfile
897       content), and it no longer has any knowledge of how to interpret
898       pickles.
899    
900       Structure Compile (: COMPILE) has been stripped down to the bare
901       essentials of compilation.  It no longer deals with linking/execution.
902       The interface has been cleaned up considerably.
903    
904       Utility routines for dealing with linking and execution have been
905       moved into their own substructures.
906    
907       (The ultimate goal of these changes is to provide a light-weight
908       binfile loader/linker (at least for, e.g., stable libraries) that
909       does not require CM or the compiler to be present.)
910    
911    CM documentation has been updated to reflect the changes to library
912    organization.
913    
914    ----------------------------------------------------------------------
915    Name: Matthias Blume
916    Date: 2001/07/10 17:30:00 EDT
917    Tag: Release_110_34
918    Description:
919    
920    Minor tweak to 110.34 (re-tagged):
921    
922      - README.html file added to CVS repository
923      - runtime compiles properly under FreeBSD 3.X and 4.X
924    
925    ----------------------------------------------------------------------
926    Name: Matthias Blume
927    Date: 2001/07/10 17:30:00 EDT
928    Tag: Release_110_34
929    Description:
930    
931    New version number (110.34). New bootfiles.
932    
933    ----------------------------------------------------------------------
934    Name: Matthias Blume
935    Date: 2001/07/09 16:00:00 EDT
936    Tag: blume-20010709-more-varargs
937    Description:
938    
939    I changed the handling of varargs in ml-nlffigen again:
940    The ellipsis ... will now simply be ignored (with an accompanying warning).
941    
942    The immediate effect is that you can actually call a varargs function
943    from ML -- but you can't actually supply any arguments beyond the ones
944    specified explicitly.  (For example, you can call printf with its format
945    string, but you cannot pass additional arguments.)
946    
947    This behavior is only marginally more useful than the one before, but
948    it has the advantage that a function or, more importantly, a function
949    type never gets dropped on the floor, thus avoiding follow-up problems with
950    other types that refer to the offending one.
951    
952    ----------------------------------------------------------------------
953    Name: Matthias Blume
954    Date: 2001/07/09 11:25:00 EDT
955    Tag: blume-20010709-varargs
956    Description:
957    
958    1. ckit-lib.cm now exports structure Error
959    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
960       with a warning accompanied by a source location.  Moreover, it
961       merely skips the offending function or type and proceeds with the
962       rest of its work.u  As a result, one can safely feed C code containing
963       "..." to ml-nlffigen.
964    3. There are some internal improvements to CM, providing slightly
965       more general string substitutions in the tools subsystem.
966    
967    ----------------------------------------------------------------------
968    Name: Matthias Blume
969    Date: 2001/06/27 15:10:00 EDT
970    Tag: blume-20010627-concur
971    Description:
972    
973    Fixed a small bug in CM's handling of parallel compilation.
974    (You could observe the bug by Control-C-interrupting an ordinary
975    CMB.make or CM.stabilize and then attaching some compile servers.
976    The result was that all of a sudden the previously interrupted
977    compilation would continue on its own.  This was because of
978    an over-optimization: CM did not bother to clean out certain queues
979    when no servers were attached "anyway", resulting in the contents
980    of these queues to grab control when new servers did get attached.)
981    
982    There is also another minor update to the CM manual.
983    
984    ----------------------------------------------------------------------
985    Name: Matthias Blume
986    Date: 2001/06/26 16:15:00 EDT
987    Tag: blume-20010626-cmdoc
988    Description:
989    
990    Minor typo fixed in CM manual (syntax diagram for libraries).
991    
992    ----------------------------------------------------------------------
993    Name: Matthias Blume
994    Date: 2001/06/25 22:55:00 EDT
995    Tag: blume-20010625-x86pc
996    Description:
997    
998    Fixed a nasty bug in the X86 assembly code that caused signal
999    handlers to fail (crash) randomly.
1000    
1001    ----------------------------------------------------------------------
1002    Name: Matthias Blume
1003    Date: 2001/06/25 12:05:00 EDT
1004    Tag: blume-20010625-nlffigen
1005    Description:
1006    
1007    This update fixes a number of minor bugs in ml-nlffigen as reported by
1008    Nick Carter <nbc@andrew.cmu.edu>.
1009    
1010      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
1011      2. Default names for generated files are now derived from the name of
1012         the C file *without its directory*.  In particular, this causes generated
1013         files to be placed locally even if the C file is in some system directory.
1014      3. Default names for generated signatures and structures are also derived
1015         from the C file name without its directory.  This avoids silly things
1016         like "structure GL/GL".
1017         (Other silly names are still possible because ml-nlffigen does not do
1018          a thorough check of whether generated names are legal ML identifiers.
1019          When in doubt, use command line arguments to force particular names.)
1020    
1021    ----------------------------------------------------------------------
1022    Name: Matthias Blume
1023    Date: 2001/06/21 12:25:00 EDT
1024    Tag: blume-20010621-eXene
1025    Description:
1026    
1027    eXene now compiles and (sort of) works again.
1028    
1029    The library name (for version > 110.33) is $/eXene.cm.
1030    
1031    I also added an new example in src/eXene/examples/nbody.  See the
1032    README file there for details.
1033    
1034    ----------------------------------------------------------------------
1035    Name: Matthias Blume
1036    Date: 2001/06/20 16:40:00 EDT
1037    Tag: blume-20010620-cml
1038    Description:
1039    
1040    CML now compiles and works again.
1041    
1042    Libraries (for version > 110.33):
1043    
1044      $cml/cml.cm            Main CML library.
1045      $cml/basis.cm          CML's version of $/basis.cm.
1046      $cml/cml-internal.cm   Internal helper library.
1047      $cml/core-cml.cm       Internal helper library.
1048      $cml-lib/trace-cml.cm  Tracing facility.
1049      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
1050    
1051    The installer (config/install.sh) has been taught how to properly
1052    install this stuff.
1053    
1054    ----------------------------------------------------------------------
1055    Name: Matthias Blume
1056    Date: 2001/06/19 17:55:00 EDT
1057    Tag: blume-20010619-instantiate
1058    Description:
1059    
1060    This un-breaks the fix for bug 1432.
1061    (The bug was originally fixed in 110.9 but I broke it again some
1062    time after that.)
1063    
1064    ----------------------------------------------------------------------
1065    Name: Matthias Blume
1066    Date: 2001/06/19 17:25:00 EDT
1067    Tag: blume-20010619-signals
1068    Description:
1069    
1070    This should (hopefully) fix the long-standing signal handling bug.
1071    (The runtime system was constructing a continuation record with an
1072    incorrect descriptor which would cause the GC to drop data on the floor...)
1073    
1074    ----------------------------------------------------------------------
1075    Name: Matthias Blume
1076    Date: 2001/06/15 15:05:00 EDT
1077    Tag: blume-20010615-moresparc
1078    Description:
1079    
1080    Here is a short late-hour update related to Sparc c-calls:
1081    
1082     -- made handling of double-word arguments a bit smarter
1083    
1084     -- instruction selection phase tries to collapse certain clumsily
1085        constructed ML-Trees; typical example:
1086    
1087            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
1088    
1089        This currently has no further impact on SML/NJ since mlriscGen does
1090        not seem to generate such patterns in the first place, and c-calls
1091        (which did generate them in the beginning) has meanwhile been fixed
1092        so as to avoid them as well.
1093    
1094    ----------------------------------------------------------------------
1095    Name: Matthias Blume
1096    Date: 2001/06/15 15:05:00 EDT
1097    Tag: blume-20010615-sparc
1098    Description:
1099    
1100    The purpose of this update is to provide an implementation of NLFFI
1101    on Sparc machines.
1102    
1103    Here are the changes in detail:
1104    
1105       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
1106       the Sparc implementation of the c-calls API.
1107       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
1108       for accessing the ML frame.  Thus, we have a real frame pointer and
1109       can freely modify %sp without need for an omit-frame-ptr phase.
1110       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
1111       this case.
1112       * ml-nlffigen has been taught to produce code for different architectures
1113       and calling conventions.
1114       * In a way similar to what was done in the x86 case, the Sparc
1115       backend uses its own specific extension to mltree.  (For example,
1116       it needs to be able to generate UNIMP instructions which are part
1117       of the calling convention.)
1118       * ml-nlffi-lib was reorganized to make it more modular (in particular,
1119       to make it easier to plug in new machine- and os-dependent parts).
1120    
1121    There are some other fairly unrelated bug fixes and cleanups as well:
1122    
1123       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
1124       that they properly share their libraries with existing SML/NJ libraries.
1125       * I fixed a minor cosmetic bug in CM, supressing certain spurious
1126       follow-up error messages.
1127       * Updates to CM/CMB documentation.
1128    
1129    TODO items:
1130    
1131       * MLRISC should use a different register as its asmTemp on the Sparc.
1132         (The current %o2 is a really bad choice because it is part of the
1133         calling conventions, so things might interfere in unexpected ways.)
1134    
1135    ----------------------------------------------------------------------
1136    Name: Matthias Blume
1137    Date: 2001/06/07
1138    Tag: blume-20010607-calls
1139    Description:
1140    
1141    A number of internal changes related to C calls and calling conventions:
1142    
1143    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
1144       number of bytes popped implicitly (by the callee).  In most cases
1145       this field is 0 but on x86/win32 it is some non-zero value.  This
1146       is information provided for the benefit of the "omit-frameptr" pass.
1147    2. The CALL instruction on the x86 carries a similar "pops" field.
1148       The instruction selection phase copies its value from the ML-Tree
1149       CALL statement.
1150    3. On all other architectures, the instruction selection phase checks
1151       whether "pops=0" and complains if not.
1152    4. The c-calls implementation for x86 now accepts two calling conventions:
1153       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
1154       up after the call and pops is set to 0.  For "stdcall", the caller
1155       does nothing, leaving the cleanup to the callee; pops is set to
1156       the number of bytes that were pushed onto the stack.
1157    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
1158       distinguish between "ccall" and "stdcall".
1159    6. The UNIMP instruction has been added to the supported Sparc instruction
1160       set. (This is needed for implementing the official C calling convention
1161       on this architecture.)
1162    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
1163       work with the latest CM.
1164    
1165    ----------------------------------------------------------------------
1166    Name: Matthias Blume
1167    Date: 2001/06/05 15:10:00 EDT
1168    Tag: blume-20010605-cm-index
1169    Description:
1170    
1171    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
1172    
1173    1. CM can now generate "index files".  These are human-readable files
1174       that list on a per-.cm-file basis each toplevel symbol defined or
1175       imported.  The location of the index file for
1176       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
1177       To enable index-file generation, set CM.Control.generate_index to true
1178       or export an environment-symbol: export CM_GENERATE_INDEX=true.
1179    
1180       The CM manual has been updated accordingly.
1181    
1182    2. I made some slight modifications to the c-calls API in MLRISC.
1183    
1184         a) There is now a callback to support saving/restoring of
1185            dedicated but caller-save registers around the actual call
1186            instruction.
1187         b) One can optionally specify a comment-annotation for the
1188            call instruction.
1189    
1190    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
1191       (For example, the comment annotation shows the C prototype of
1192        the function being called.)
1193    
1194    ----------------------------------------------------------------------
1195    Name: Matthias Blume
1196    Date: 2001/06/01 13:30:00 EDT
1197    Tag: blume-20010601-nlffi-cleanup
1198    Description:
1199    
1200    This is mostly a cleanup of MLFFI stuff:
1201    
1202       - some signature files have been put into a more exposed place
1203       - the ugly 'f type parameter is gone (simplifies types tremendously!)
1204       - ml-nlffigen changed accordingly
1205       - tutorial updated
1206    
1207    Other changes:
1208    
1209       - author's affiliation in CM manual(s) updated
1210       - some more recognized keywords added to Allen's sml.sty
1211    
1212    ----------------------------------------------------------------------
1213    Name: Matthias Blume
1214    Date: 2001/05/25 15:30:00 EDT
1215    Tag: blume-20010525-iptr
1216    Description:
1217    
1218      - put the official 110.33-README (as it appears on the ftp server) under
1219        CVS
1220      - fixed a small bug related to incomplete pointer types in
1221        ml-nlffigen
1222      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
1223        (it does not need the 'f type parameter)
1224    
1225    ----------------------------------------------------------------------
1226    Name: Matthias Blume
1227    Date: 2001/05/23 14:30:00 EDT
1228    Tag: Release_110_33
1229    Description:
1230    
1231    New version number (110.33).  New bootfiles.
1232    
1233    ----------------------------------------------------------------------
1234    Name: Matthias Blume
1235    Date: 2001/05/22 18:06:00 EDT
1236    Tag: blume-20010522-targets
1237    Description:
1238    
1239    Made install.sh use file config/targets.customized if it exists, falling
1240    back to config/targets if it doesn't.  This way one can have a customized
1241    version of the targets file without touching the "real thing", thus
1242    eliminating the constant fear of accidentally checking something bogus
1243    back into the CVS repository...  (File config/targets.customized must
1244    not be added to the repository!)
1245    
1246    ----------------------------------------------------------------------
1247    Name: Matthias Blume
1248    Date: 2001/05/22 16:30:00 EDT
1249    Tag: blume-20010522-minitut
1250    Description:
1251    
1252    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
1253       struct returns.
1254    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
1255       incomplete, preliminary documentation for NLFFI.
1256    
1257    ----------------------------------------------------------------------
1258    Name: Matthias Blume
1259    Date: 2001/05/14 11:30:00 EDT
1260    Tag: blume-20010514-script
1261    Description:
1262    
1263    Some bugs in install script fixed.
1264    
1265    In addition to that I also made a slight change to the NLFFI API:
1266    Functors generated by ml-nlffigen now take the dynamic library as a
1267    straight functor argument, not as a suspended one.  (The original
1268    functor code used to force the suspension right away anyway, so there
1269    was nothing gained by this complication of the interface.)
1270    
1271    ----------------------------------------------------------------------
1272    Name: Matthias Blume
1273    Date: 2001/05/11 14:35:00 EDT
1274    Tag: blume-20010511-ml-nlffi
1275    Description:
1276    
1277    I finally took the plunge and added my new FFI code to the main
1278    repository.  For x86-linux it is now ready for prime-time.
1279    
1280    There are two new subdirectories of "src":
1281    
1282      - ml-nlffi-lib:
1283           The utility library for programs using the FFI interface.
1284           Here is the implementation of $/c.cm and its associated low-level
1285           partners $/c-int.cm and $/memory.cm.
1286      - ml-nlffigen:
1287           A stand-alone program for generating ML glue code from C source
1288           code.
1289    
1290    Building ml-nlffigen requires $/ckit-lib.cm.
1291    
1292    The config/install.sh script has been updates to do the Right Thing
1293    (hopefully).
1294    
1295    Notice that the source tree for the C-Kit will not be put under "src"
1296    but directly under the installation root directory.  (This is the
1297    structure that currently exists on the CVS server when you check out
1298    module "sml".)  Fortunately, config/install.sh knows about this oddity.
1299    
1300    Bugs: No documentation yet.
1301    
1302    ----------------------------------------------------------------------
1303    Name: Matthias Blume
1304    Date: 2001/05/09 16:35:00 EDT
1305    Tag: blume-20010509-cpscontract
1306    Description:
1307    
1308    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
1309    wrapper/unwrapper elimination did not decrement usage counts and some
1310    dead variables got overlooked by the dead-up logic.)
1311    
1312    ----------------------------------------------------------------------
1313    Name: Lal George
1314    Date: 2001/05/08  17:26:09 EDT
1315    Tag: george-20010508-omit-frameptr
1316    Description:
1317    
1318    Changes to implement the omit-frame-pointer optimization to support
1319    raw C calls. For now, there is only support on the Intel x86, but
1320    other architectures will follow as more experience is gained with this.
1321    
1322    
1323    ----------------------------------------------------------------------
1324    Name: Matthias Blume
1325    Date: 2001/05/07 14:40:00 EDT
1326    Tag: blume-20010507-proxies
1327    Description:
1328    
1329    I made into "proxy libraries" all libraries that qualify for such a
1330    change.  (A qualifying library is a library that has another library or
1331    groups as its sole member and repeats that member's export list
1332    verbatim.  A proxy library avoids this repetition by omitting its export
1333    list, effectively inheriting the list that its (only) member exports.
1334    See the CM manual for more explanation.)
1335    The main effect is that explicit export lists for these libraries
1336    do not have to be kepts in sync, making maintenance a bit easier.
1337    
1338    I also added copyright notices to many .cm-files.
1339    
1340    Last but not least, I made a new set of bootfiles.
1341    
1342    ----------------------------------------------------------------------
1343    Name: Matthias Blume
1344    Date: 2001/05/04 17:00:00 EDT
1345    Tag: blume-20010504-cm-lsplit
1346    Description:
1347    
1348    0. John merged pending changes to $/smlnj-lib.cm
1349    
1350    1. Allen's previous change accidentally backed out of one of Lal's
1351       earlier changes.  I undid this mistake (re-introducing Lal's change).
1352    
1353    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
1354       within the compiler where applicable.  There is some code simplification
1355       because of that.
1356    
1357    3. The "split" phase (in FLINT) is now part of the default list of phases.
1358       Compiler.Control.LambdaSplitting.* can be used to globally control the
1359       lambda-splitting (cross-module-inlining) engine.  In addition to that,
1360       it can now also be controlled on a per-source basis: CM has been taught
1361       a new tool parameter applicable to ML source files.
1362    
1363       - To turn lambda-splitting off completely:
1364            local open Compiler.Control.LambdaSplitting in
1365                val _ = set Off
1366            end
1367       - To make "no lambda-splitting" the global default (but allow per-source
1368         overriding); this is the initial setting:
1369            local open Compiler.Control.LambdaSplitting in
1370                val _ = set (Default NONE)
1371            end
1372       - To make "lambda-splitting with aggressiveness a" the global default
1373         (and allow per-source overriding):
1374            local open Compiler.Control.LambdaSplitting in
1375                val _ = set (Default (SOME a))
1376            end
1377    
1378       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
1379         write (in the respective .cm-file):
1380            a.sml (lambdasplitting:off)
1381       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
1382            a.sml (lambdasplitting:on)
1383       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
1384         <a> is a decimal non-negative integer):
1385            a.sml (lambdasplitting:<a>)
1386       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
1387            a.sml (lambdasplitting:infinity)
1388       - To use the global default for a.sml:
1389            a.sml (lambdasplitting:default)
1390         or simply
1391            a.sml
1392    
1393    ----------------------------------------------------------------------
1394    Name: Allen Leung
1395    Date: 2001/05/04 01:57:00 EDT
1396    Tag: leunga-20010504-sync
1397    Description:
1398    
1399      MLRISC features.
1400    
1401      1. Fix to CMPXCHG instructions.
1402      2. Changed RA interface to allow annotations in callbacks.
1403      3. Added a new method to the stream interface to allow annotations updates.
1404    
1405    ----------------------------------------------------------------------
1406    Name: Matthias Blume
1407    Date: 2001/05/01 11:45:00 EDT
1408    Tag: blume-20010501-pcedittmp
1409    Description:
1410    
1411    Changed install.sh to use the current working directory instead of
1412    /usr/tmp for a temporary file (pcedittmp).  The previous choice
1413    of /usr/tmp caused trouble with MacOS X because of file premission
1414    problems.
1415    
1416    ----------------------------------------------------------------------
1417    Name: Matthias Blume
1418    Date: 2001/04/20 11:10:00 EDT
1419    Tag: blume-20010420-inMLflag
1420    Description:
1421    
1422     - added vp_limitPtrMask to vproc-state.h
1423       (for use by the raw-C-calls mechanism to implement proper interrupt
1424        handling)
1425     - made the ML compiler aware of various data-structure offsets so it
1426       can generate code for accessing the vp_inML flag and vp_limitPtrMask
1427     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
1428       raw C-calls
1429    
1430    ----------------------------------------------------------------------
1431    Name: Lal George
1432    Date: 2001/04/20 09:15:28 EDT
1433    Tag: george-20010420-macosX
1434    Description:
1435    
1436     - Changes to port to Mac OS X; Darwin.
1437    
1438     - In the process I found that sqrt was broken on the PPC, because the
1439       fsqrt instruction is not implemented.
1440    
1441    ----------------------------------------------------------------------
1442    Name: Matthias Blume
1443    Date: 2001/04/18 12:45:00 EDT
1444    Tag: blume-20010418-ccalls
1445    Description:
1446    
1447     - fixed two off-by-4 errors in the x86-specific c-calls implementation
1448       (this bug prevented structure arguments containing pointers from being
1449        passed correctly)
1450     - changed the raw-C-call code in mlriscGen.sml in such a way that
1451       structure arguments are represented as a pointer to the beginning
1452       of the structure (instead of having a series of synthesized arguments,
1453       one for each structure member)
1454    
1455     - made makeml script's verbosity level configurable via environment
1456       variable (MAKEML_VERBOSITY)
1457    
1458     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
1459       in rawmem-x86.sml; we are now using the real thing
1460    
1461    ----------------------------------------------------------------------
1462    Name: Matthias Blume
1463    Date: 2001/03/22 16:25:00 EST
1464    Tag: blume-20010322-bootfiles
1465    Description:
1466    
1467    Created a new set of bootfiles (for your automatic installation convenience).
1468    
1469    ----------------------------------------------------------------------
1470    Name: Matthias Blume
1471    Date: 2001/03/22 15:10:00 EST
1472    Tag: blume-20010322-rawmem-parcm
1473    Description:
1474    
1475    1. All "raw memory access" primitives for the new FFI are implemented now
1476       (at least on the x86).
1477    2. Some further cleanup of CM's parallel make mechanism.
1478    
1479    ----------------------------------------------------------------------
1480    Name: Matthias Blume
1481    Date: 2001/03/19 17:53:00 EST
1482    Tag: blume-20010319-parallel
1483    Description:
1484    
1485    Parallel make (using compile servers) now works again.
1486    
1487    To this end, CM.stabilize and CMB.make have been modified to work in
1488    two passes when compile servers are attached:
1489       1. Compile everything, do not perform stabilization; this pass
1490          uses compile servers
1491       2. Stabilize everything; this pass does not use compile servers
1492    If there are no compile servers, the two passes are combined into one
1493    (as before).  Splitting the passes increases the inherent parallelism
1494    in the dependency graph because the entire graph including all
1495    libraries is available at the same time.  This, in turn, improves
1496    server utilization.  The downside is that the master process will
1497    have to do some extra work after compilation is done (because for
1498    technical reasons it must re-read all the binfiles during stabilization).
1499    
1500    ----------------------------------------------------------------------
1501    Name: Matthias Blume
1502    Date: 2001/03/16 12:22:00 EST
1503    Tag: blume-20010316-bootfiles
1504    Description:
1505    
1506    Created a new set of bootfiles (for your automatic installation convenience).
1507    
1508    ----------------------------------------------------------------------
1509    Name: Matthias Blume
1510    Date: 2001/03/16 11:00:00 EST
1511    Tag: blume-20010316-MLTREE-fixup
1512    Description:
1513    
1514    This is a minor fixup for an (untagged) earlier commit by Allen.
1515    (A file was missing).
1516    
1517    ----------------------------------------------------------------------
1518    Name: Allen Leung
1519    Date: Mon Mar  5 18:54:57 EST 2001
1520    Tag: leunga-20010305-cut-support
1521    
1522    1. New support for alternative control-flow in MLTREE.
1523       Currently we support
1524    
1525          FLOW_TO(CALL ...., [k1,...,kn])
1526    
1527       This is needed for 'cuts to' in C-- and try/handle-like constructs
1528       in Moby
1529    
1530       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
1531    
1532    2. Register Allocator
1533    
1534       Changes in interface [from Fermin, John]
1535    
1536    3. Alpha 8-bit SLL support [Fermin]
1537    
1538    4. All architectures
1539    
1540       A new module (ClusterExpandCopies) for expanding parallel copies.
1541    
1542    ----------------------------------------------------------------------
1543    Name: Allen Leung
1544    Date: 2001/02/27 23:07:00 EST
1545    Tag: leunga-20010227-minor-stuff
1546    
1547    1. Alpha bug fix for CMOVNE
1548    2. Handle mltree COND(..,FCMP ...,...)
1549    3. Bug fix in simplifier
1550    
1551    ----------------------------------------------------------------------
1552    Name: Matthias Blume
1553    Date: 2001/01/30 17:50:00 EST
1554    Tag: blume-20010130-sync
1555    Description:
1556    
1557    This is just a minor update to sync my devel branch with the main brach.
1558    The only visible change is the addition of some README files.
1559    
1560    ----------------------------------------------------------------------
1561    Name: Matthias Blume
1562    Date: 2001/01/12 23:30:00 JST
1563    Tag: blume-20010112-bootfiles
1564    Description:
1565    
1566    Made a new set of bootfiles that goes with the current state of the
1567    repository.
1568    
1569    ----------------------------------------------------------------------
1570    Name: Matthias Blume
1571    Date: 2001/01/12 21:20:00 JST
1572    Tag: blume-20010112-sync
1573    Description:
1574    
1575    I am just flushing out some minor changes that had accumulated in
1576    my private branch in order to sync with the main tree.  (This is
1577    mainly because I had CVS trouble when trying to merge _into_ my
1578    private branch.)
1579    
1580    Most people should be completely unaffected by this.
1581    
1582    ----------------------------------------------------------------------
1583    Name: Allen Leung
1584    Date: Thu Jan 11 21:03:00 EST 2001
1585    Tag: leunga-20010111-labexp=mltree
1586    Description:
1587    
1588    1.  Removed the type LabelExp and replace it by MLTree.
1589    2.  Rewritten mltree-simplify with the pattern matcher tool.
1590    3.  There were some bugs in alpha code generator which would break
1591        64-bit code generation.
1592    4.  Redo the tools to generate code with the
1593    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
1594        are now generated by perl scripts.
1595    
1596    ----------------------------------------------------------------------
1597    Name: Matthias Blume
1598    Date: 2001/01/10 21:55:00 JST
1599    Tag: blume-20010110-rcc
1600    Description:
1601    
1602    The RCC stuff now seems to work (but only on the x86).
1603    This required hacking of the c-calls interface (and -implementation) in
1604    MLRISC.
1605    
1606    Normal compiler users should be unaffected.
1607    
1608    ----------------------------------------------------------------------
1609    Name: Matthias Blume
1610    Date: 2001/01/09 01:20:00 JST
1611    Tag: blume-20010109-rcc
1612    Description:
1613    
1614    This is a fairly big patch, flushing out a large number of pending
1615    changes that I made to my development copy over the last couple of days.
1616    
1617    Of practical relevance at this moment is a workaround for a pickling
1618    bug that Allen ran into the other day.  The cause of the bug itself is
1619    still unknown and it might be hard to fix it properly, but the
1620    workaround has some merits of its own (namely somewhat reducing pickling
1621    overhead for certain libraries).  Therefore, I think this solution should
1622    be satisfactory at this time.
1623    
1624    The rest of the changes (i.e., the vast majority) has to do with my
1625    ongoing efforts of providing direct support for C function calls from
1626    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
1627    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
1628    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
1629    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
1630    handle RCC.
1631    
1632    The last part (the changes to mlriscGen.sml) are still known to be
1633    wrong on the x86 and not implemented on all other architectures.  But
1634    the infrastructure is in place. I had to change a few functor
1635    signatures in the backend to be able to route the CCalls interface
1636    from MLRISC there, and I had to specialize the mltree type (on the
1637    x86) to include the necessary extensions. (The extensions themselves
1638    were already there and redy to go in MLRISC/x86).
1639    
1640    Everything should be very happy as soon as someone helps me with
1641    mlriscGen.sml...
1642    
1643    In any case, nothing of this should matter to anyone as long as the
1644    new primop is not being used (which is going to be the case unless you
1645    find it where I hid it :). The rest of the compiler is completely
1646    unaffected.
1647    
1648    ----------------------------------------------------------------------
1649    Name: Matthias Blume
1650    Date: 2001/01/05 00:30:00 JST
1651    Tag: blume-20010105-primops
1652    Description:
1653    
1654    Added some experimental support for work that I am doing right now.
1655    These changes mostly concern added primops, but there is also a new
1656    experimental C library in the runtime system (but currently not enabled
1657    anywhere except on Linux/X86).
1658    
1659    In the course of adding primops (and playing with them), I discovered that
1660    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
1661    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
1662    To recover, I made type information in INL_PRIM mandatory and changed
1663    prim.sml as well as built-in.sml accordingly.  The InLine structure now
1664    has complete, correct type information (i.e., no bottom types).
1665    
1666    Since all these changes mean that we need new binfiles, I also bumped the
1667    version number to 110.32.1.
1668    
1669    ----------------------------------------------------------------------
1670    Name: Matthias Blume
1671    Date: 2000/12/30 22:10:00 JST
1672    Tag: blume-20001230-various
1673    Description:
1674    
1675    Added proxy libraries for MLRISC and let MLRISC libraries refer
1676    to each other using path anchors.  (See CM manual for explanation.)
1677    
1678    Updated CM documentation.
1679    
1680    Fixed some bugs in CM.
1681    
1682    Implemented "proxy" libraries (= syntactic sugar for CM).
1683    
1684    Added "-quiet" option to makeml and changed runtime system accordingly.
1685    
1686    Added cleanup handler for exportML to reset timers and compiler stats.
1687    
1688    ----------------------------------------------------------------------
1689    Name: Lal George
1690    Date: 2000/12/22 22:22:58 EST 2000
1691    Tag: Release_110_32
1692    Description:
1693    
1694            Infinite precision used throughout MLRISC.
1695            see MLRISC/mltree/machine-int.sig
1696    
1697    ----------------------------------------------------------------------
1698    Name: Matthias Blume
1699    Date: 2000/12/22 23:16:00 JST
1700    Tag: blume-20001222-warn
1701    Description:
1702    
1703    Corrected wording and formatting of some CM warning message which I
1704    broke in my previous patch.
1705    
1706    ----------------------------------------------------------------------
1707    Name: Matthias Blume
1708    Date: 2000/12/22 21:20:00 JST
1709    Tag: blume-20001222-anchorenv
1710    Description:
1711    
1712    Fixed CM's handling of anchor environments in connection with CMB.make.
1713    
1714    ----------------------------------------------------------------------
1715    Name: Matthias Blume
1716    Date: 2000/12/22 13:15:00 JST
1717    Tag: blume-20001222-cleanup
1718    Description:
1719    
1720    Removed src/cm/ffi which does not (and did not) belong here.
1721    
1722    ----------------------------------------------------------------------
1723    Name: Matthias Blume
1724    Date: 2000/12/21 23:55:00 JST
1725    Tag: blume-20001221-exn
1726    Description:
1727    
1728    Probably most important: CM no longer silently swallows all exceptions
1729    in the compiler.
1730    Plus: some other minor CM changes.  For example, CM now reports some
1731    sizes for generated binfiles (code, data, envpickle, lambdapickle).
1732    
1733    ----------------------------------------------------------------------
1734    Name: Matthias Blume
1735    Date: 2000/12/15 00:01:05 JST
1736    Tag: blume-20001215-dirtool
1737    Description:
1738    
1739    - "dir" tool added.
1740    - improvements and cleanup to Tools structure
1741    - documentation updates
1742    
1743    ----------------------------------------------------------------------
1744    Name: Allen Leung
1745    Date: Thu Dec 14 03:45:24 EST 2000
1746    Description:
1747    Tag:  leunga-20001214-int-inf
1748    Description:
1749    
1750       In IntInf, added these standard functions, which are missing from our
1751    implementation:
1752    
1753        andb : int * int -> int
1754        xorb : int * int -> int
1755        orb  : int * int -> int
1756        notb : int -> int
1757         <<   : int * word -> int
1758        ~>>  : int * word -> int
1759    
1760       Not tested, I hope they are correct.
1761    
1762    ----------------------------------------------------------------------
1763    Name: Allen Leung
1764    Date: Fri Dec  8 19:23:26 EST 2000
1765    Description:
1766    Tag:  leunga-20001208-nowhere
1767    Description:
1768    
1769      Slight improvements to the 'nowhere' tool to handle OR-patterns,
1770    to generate better error messages etc.  Plus a brief manual.
1771    
1772  ----------------------------------------------------------------------  ----------------------------------------------------------------------
1773  Name: Lal George  Name: Lal George
1774  Date: 2000/12/08 09:54:02 EST 2000  Date: 2000/12/08 09:54:02 EST 2000
# Line 1730  Line 3488 
3488       elaborator). There were a lot of changes during my "linkpath" trials       elaborator). There were a lot of changes during my "linkpath" trials
3489       that could have been reverted to their original state but weren't.       that could have been reverted to their original state but weren't.
3490       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
3491       than what was strictly necessary...  (I _did_ resist the tempation       than what was strictly necessary...  (I _did_ resist the temptation
3492       of doing any "global reformatting" to avoid an untimely death at       of doing any "global reformatting" to avoid an untimely death at
3493       Dave's hands. :)       Dave's hands. :)
3494    

Legend:
Removed from v.749  
changed lines
  Added in v.1034

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