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 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  Name: Lal George
1856  Date: 2000/12/08 09:54:02 EST 2000  Date: 2000/12/08 09:54:02 EST 2000
# Line 1730  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    

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

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