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 757, Thu Dec 21 14:54:56 2000 UTC revision 923, Thu Sep 13 15:19:18 2001 UTC
# Line 11  Line 11 
11  Date:  Date:
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    
15    ----------------------------------------------------------------------
16    Name: Matthias Blume
17    Date: 2001/09/13 11:20:00 EDT
18    Tag: blume-20010913-minimal
19    Description:
20    
21    1. Stefan Monnier's patch to fix a miscompilation problem that
22       was brought to light by John Reppy's work on Moby.
23    
24    2. Implemented a minimal "structure Compiler" that contains just
25       "version" and "architecture".  The minimal version will be
26       available when the full version is not.  This is for backward-
27       compatibility with code that wants to test Compiler.version.
28    
29    ----------------------------------------------------------------------
30    Name: Matthias Blume
31    Date: 2001/08/28 14:03:00 EDT
32    Tag: blume-20010828-ml-lex
33    Description:
34    
35    Fix for bug 1581, received from Neophytos Michael.
36    
37    ----------------------------------------------------------------------
38    Name: Matthias Blume
39    Date: 2001/08/27 11:20:00 EDT
40    Tag: blume-20010827-readme11035
41    Description:
42    
43    Fleshed out the README file for 110.35.
44    
45    ----------------------------------------------------------------------
46    Name: Matthias Blume
47    Date: 2001/08/24 17:10:00 EDT
48    Tag: Release_110_35
49    Description:
50    
51    New version number (110.35).  New bootfiles.
52    
53    ----------------------------------------------------------------------
54    Name: Lal George
55    Date: 2001/08/24 13:47:18 EDT 2001
56    Tag: george-20010824-MLRISC-graphs
57    Description:
58    
59     removed clusters from MLRISC completely and replaced with graphs.
60    
61    ----------------------------------------------------------------------
62    Name: Matthias Blume
63    Date: 2001/08/23 17:50:00 EDT
64    Tag: blume-20010823-toplevel
65    Description:
66    
67    - some reorganization of the code that implements various kinds of
68      environments in the compiler (static, dynamic, symbolic, combined)
69    - re-implemented the EnvRef module so that evalStream works properly
70      (if the stream contains references to "use", "CM.make", etc.)
71    - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
72    
73    ----------------------------------------------------------------------
74    Name: Matthias Blume
75    Date: 2001/08/20 15:50 EDT
76    Tag: blume20010820-slipup
77    Description:
78    
79    I forgot to commit a few files.  Here they are...
80    
81    ----------------------------------------------------------------------
82    Name: Matthias Blume
83    Date: 2001/08/20 15:35:00 EDT
84    Tag: blume-20010820-debugprof
85    Description:
86    
87    !!!! NEW BOOTFILES !!!!
88    
89    This is another round of reorganizing the compiler sources.  This
90    time the main goal was to factor out all the "instrumentation"
91    passes (for profiling and backtracing) into their own library.
92    The difficulty was to do it in such a way that it does not depend
93    on elaborate.cm but only on elabdata.cm.
94    
95    Therefore there have been further changes to both elaborate.cm and
96    elabdata.cm -- more "generic" things have been moved from the former
97    to the latter.  As a result, I was forced to split the assignment
98    of numbers indicating "primtyc"s into two portions: SML-generic and
99    SML/NJ-specific.  Since it would have been awkward to maintain,
100    I bit the bullet and actually _changed_ the mapping between these
101    numbers and primtycs.  The bottom line of this is that you need
102    a new set of bin- and bootfiles.
103    
104    I have built new bootfiles for all architectures, so doing a fresh
105    checkout and config/install.sh should be all you need.
106    
107    The newly created library's name is
108    
109        $smlnj/viscomp/debugprof.cm
110    
111    and its sources live under
112    
113        src/compiler/DebugProf
114    
115    ----------------------------------------------------------------------
116    Name: Matthias Blume
117    Date: 2001/08/15 17:15:00 EDT
118    Tag: blume-20010815-compreorg
119    Description:
120    
121    This is a first cut at reorganizing the CM libraries that make up the
122    core of the compiler.  The idea is to separate out pieces that could
123    be used independently by tools, e.g., the parser, the typechecker, etc.
124    
125    The current status is a step in this direction, but it is not quite
126    satisfactory yet.  Expect more changes in the future.
127    
128    Here is the current (new) organization...
129    
130        What used to be $smlnj/viscomp/core.cm is now divided into
131        six CM libraries:
132    
133             $smlnj/viscomp/basics.cm
134                           /parser.cm
135                           /elabdata.cm
136                           /elaborate.cm
137                           /execute.cm
138                           /core.cm
139    
140        The CM files for these libraries live under src/system/smlnj/viscomp.
141        All these libraries are proxy libraries that contain precisely
142        one CM library component.  Here are the locations of the components
143        (all within the src/compiler tree):
144    
145             Basics/basics.cm
146             Parse/parser.cm
147             ElabData/elabdata.cm
148             Elaborator/elaborate.cm
149             Execution/execute.cm
150             core.cm
151    
152         [This organization is the same that has been used already
153         for a while for the architecture-specific parts of the visible
154         compiler and for the old version of core.cm.]
155    
156         As you will notice, many source files have been moved from their
157         respective original locations to a new home in one of the above
158         subtrees.
159    
160         The division of labor between the new libraries is the following:
161    
162             basics.cm:
163                - Simple, basic definitions that pertain to many (or all) of
164                  the other libraries.
165             parser.cm:
166                - The SML parser, producing output of type Ast.dec.
167                - The type family for Ast is also defined and exported here.
168             elabdata.cm:
169                - The datatypes that describe input and output of the elaborator.
170                  This includes types, absyn, and static environments.
171             elaborator.cm:
172                - The SML/NJ type checker and elaborator.
173                  This maps an Ast.dec (with a given static environment) to
174                  an Absyn.dec (with a new static environment).
175                - This libraries implements certain modules that used to be
176                  structures as functors (to remove dependencies on FLINT).
177             execute.cm:
178                - Everything having to do with executing binary code objects.
179                - Dynamic environments.
180             core.cm:
181                - SML/NJ-specific instantiations of the elaborator and MLRISC.
182                - Top-level modules.
183                - FLINT (this should eventually become its own library)
184    
185    Notes:
186    
187    I am not 100% happy with the way I separated the elaborator (and its
188    data structures) from FLINT.  Two instances of the same problem:
189    
190        1. Data structures contain certain fields that carry FLINT-specific
191           information.  I hacked around this using exn and the property list
192           module from smlnj-lib.  But the fact that there are middle-end
193           specific fields around at all is a bit annoying.
194    
195        2. The elaborator calculates certain FLINT-related information.  I tried
196           to make this as abstract as I could using functorization, but, again,
197           the fact that the elaborator has to perform calculations on behalf
198           of the middle-end at all is not nice.
199    
200        3. Having to used exn and property lists is unfortunate because it
201           weakens type checking.  The other alternative (parameterizing
202           nearly *everything*) is not appealing, though.
203    
204    I removed the "rebinding =" warning hack because due to the new organization
205    it was awkward to maintain it.  As a result, the compiler now issues some of
206    these warnings when compiling init.cmi during bootstrap compilation. On
207    the plus side, you also get a warning when you do, for example:
208       val op = = Int32.+
209    which was not the case up to now.
210    
211    I placed "assign" and "deref" into the _Core structure so that the
212    code that deals with the "lazy" keyword can find them there.  This
213    removes the need for having access to the primitive environment
214    during elaboration.
215    
216    ----------------------------------------------------------------------
217    Name: Matthias Blume
218    Date: 2001/08/13
219    Tag: blume-20010813-closures
220    Description:
221    
222    This fix was sent to us by Zhong Shao.  It is supposed to improve the
223    performance of certain loops by avoiding needless closure allocation.
224    
225    ----------------------------------------------------------------------
226    Name: Lal George
227    Date: 2001/07/31 10:03:23 EDT 2001
228    Tag: george-20010731-x86-fmalloc
229    Description: Fixed bug in x86 calls
230    
231        There was a bug where call instructions would mysteriously
232        vanish. The call instruction had to be one that returned
233        a floating point value.
234    
235    ----------------------------------------------------------------------
236    Name: Lal George
237    Date: 2001/07/19 16:36:29 EDT 2001
238    Tag: george-20010719-simple-cells
239    Description:
240    
241    I have dramatically simplified the interface for CELLS in MLRISC.
242    
243    In summary, the cells interface is broken up into three parts:
244    
245      1. CellsBasis : CELLS_BASIS
246    
247            CellsBasis is a top level structure and common for all
248            architectures.  it contains the definitions of basic datatypes
249            and utility  functions over these types.
250    
251      2. functor Cells() : CELLS
252    
253            Cells generates an interface for CELLS that incorporates the
254            specific resources on the target architecture, such as the
255            presence of special register classes, their number and size,
256            and various useful substructures.
257    
258      3. <ARCH>CELLS
259    
260            e.g. SparcCells: SPARCCELLS
261    
262            <ARCH>CELLS usually contains additional bindings for special
263            registers  on the architecture, such as:
264    
265                    val r0 : cell           (* register zero *)
266                    val y : cell            (* Y register *)
267                    val psr : cell          (* processor status register *)
268                    ...
269    
270            The structure returned by applying the Cells functor is opened
271            in this interface.
272    
273    The main implication of all this is that the datatypes for cells is
274    split between CellsBasis and CELLS -- a fairly simple change for user
275    code.
276    
277    In the old scheme the CELLS interface had a definitional binding of
278    the form:
279    
280            signature CELLS = sig
281    
282               structure CellsBasis = CellsBasis
283    
284               ...
285    
286            end
287    
288    With all the sharing constraints that goes on in MLRISC, this old
289    design  quickly leads to errors such as:
290    
291            "structure definition spec inside of sharing ... "
292    
293    
294    and appears to require an unacceptable amount of sharing and where
295    constraint hackery.
296    
297    I think this error message (the interaction of definitional specs and
298    sharing) requires more explanation on our web page.
299    
300    ----------------------------------------------------------------------
301    Name: Matthias Blume
302    Date: 2001/07/19 15:00:00 EDT
303    Tag: blume-20010719-libreorg
304    Description:
305    
306    This update puts together a fairly extensive but straightforward change
307    to the way the libraries that implement the interactive system are
308    organized:
309    
310       The biggest change is the elimination of structure Compiler.  As a
311       replacement for this structure, there is now a CM library
312       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
313       that exports all the substructures of the original structure Compiler
314       directly.  So instead of saying Compiler.Foo.bar one now simply
315       says Foo.bar.  (The CM libraries actually export a collection of
316       structures that is richer than the collection of substructures of
317       structure Compiler.)
318    
319       To make the transition smooth, there is a separate library called
320       $smlnj/compiler/compiler.cm which puts together and exports the
321       original structure Compiler (or at least something very close to it).
322    
323       There are five members of the original structure Compiler
324       that are not exported directly but which instead became members
325       of a new structure Backend (described by signature BACKEND).  These are:
326       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
327       Interact (: INTERACT), structure Machine (: MACHINE), and val
328       architecture (: string).
329    
330       Structure Compiler.Version has become structure CompilerVersion.
331    
332       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
333       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
334       or x86, respectively.
335       Each of these exports the same frontend structures that
336       $smlnj/compiler.cm exports.  But they do not have a structure Backend
337       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
338       Hppa, PPC, Sparc, or X86, respectively.
339    
340       Library $smlnj/compiler/all.cm exports the union of the exports of
341       $smlnj/compiler/<arch>.cm
342    
343       There are no structures <Arch>Compiler anymore, use
344       $smlnj/compiler/<arch>.cm instead.
345    
346       Library host-compiler-0.cm is gone.  Instead, the internal library
347       that instantiates CM is now called cm0.cm.  Selection of the host
348       compiler (backend) is no longer done here but. (Responsibility for it
349       now lies with $smlnj/compiler/current.cm.  This seems to be more
350       logical.)
351    
352       Many individual files have been moved or renamed.  Some files have
353       been split into multiple files, and some "dead" files have been deleted.
354    
355    Aside from these changes to library organization, there are also changes
356    to the way the code itself is organized:
357    
358       Structure Binfile has been re-implemented in such a way that it no
359       longer needs any knowledge of the compiler.  It exclusively deals
360       with the details of binfile layout.  It no longer invokes the
361       compiler (for the purpose of creating new prospective binfile
362       content), and it no longer has any knowledge of how to interpret
363       pickles.
364    
365       Structure Compile (: COMPILE) has been stripped down to the bare
366       essentials of compilation.  It no longer deals with linking/execution.
367       The interface has been cleaned up considerably.
368    
369       Utility routines for dealing with linking and execution have been
370       moved into their own substructures.
371    
372       (The ultimate goal of these changes is to provide a light-weight
373       binfile loader/linker (at least for, e.g., stable libraries) that
374       does not require CM or the compiler to be present.)
375    
376    CM documentation has been updated to reflect the changes to library
377    organization.
378    
379    ----------------------------------------------------------------------
380    Name: Matthias Blume
381    Date: 2001/07/10 17:30:00 EDT
382    Tag: Release_110_34
383    Description:
384    
385    Minor tweak to 110.34 (re-tagged):
386    
387      - README.html file added to CVS repository
388      - runtime compiles properly under FreeBSD 3.X and 4.X
389    
390    ----------------------------------------------------------------------
391    Name: Matthias Blume
392    Date: 2001/07/10 17:30:00 EDT
393    Tag: Release_110_34
394    Description:
395    
396    New version number (110.34). New bootfiles.
397    
398    ----------------------------------------------------------------------
399    Name: Matthias Blume
400    Date: 2001/07/09 16:00:00 EDT
401    Tag: blume-20010709-more-varargs
402    Description:
403    
404    I changed the handling of varargs in ml-nlffigen again:
405    The ellipsis ... will now simply be ignored (with an accompanying warning).
406    
407    The immediate effect is that you can actually call a varargs function
408    from ML -- but you can't actually supply any arguments beyond the ones
409    specified explicitly.  (For example, you can call printf with its format
410    string, but you cannot pass additional arguments.)
411    
412    This behavior is only marginally more useful than the one before, but
413    it has the advantage that a function or, more importantly, a function
414    type never gets dropped on the floor, thus avoiding follow-up problems with
415    other types that refer to the offending one.
416    
417    ----------------------------------------------------------------------
418    Name: Matthias Blume
419    Date: 2001/07/09 11:25:00 EDT
420    Tag: blume-20010709-varargs
421    Description:
422    
423    1. ckit-lib.cm now exports structure Error
424    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
425       with a warning accompanied by a source location.  Moreover, it
426       merely skips the offending function or type and proceeds with the
427       rest of its work.u  As a result, one can safely feed C code containing
428       "..." to ml-nlffigen.
429    3. There are some internal improvements to CM, providing slightly
430       more general string substitutions in the tools subsystem.
431    
432    ----------------------------------------------------------------------
433    Name: Matthias Blume
434    Date: 2001/06/27 15:10:00 EDT
435    Tag: blume-20010627-concur
436    Description:
437    
438    Fixed a small bug in CM's handling of parallel compilation.
439    (You could observe the bug by Control-C-interrupting an ordinary
440    CMB.make or CM.stabilize and then attaching some compile servers.
441    The result was that all of a sudden the previously interrupted
442    compilation would continue on its own.  This was because of
443    an over-optimization: CM did not bother to clean out certain queues
444    when no servers were attached "anyway", resulting in the contents
445    of these queues to grab control when new servers did get attached.)
446    
447    There is also another minor update to the CM manual.
448    
449    ----------------------------------------------------------------------
450    Name: Matthias Blume
451    Date: 2001/06/26 16:15:00 EDT
452    Tag: blume-20010626-cmdoc
453    Description:
454    
455    Minor typo fixed in CM manual (syntax diagram for libraries).
456    
457    ----------------------------------------------------------------------
458    Name: Matthias Blume
459    Date: 2001/06/25 22:55:00 EDT
460    Tag: blume-20010625-x86pc
461    Description:
462    
463    Fixed a nasty bug in the X86 assembly code that caused signal
464    handlers to fail (crash) randomly.
465    
466    ----------------------------------------------------------------------
467    Name: Matthias Blume
468    Date: 2001/06/25 12:05:00 EDT
469    Tag: blume-20010625-nlffigen
470    Description:
471    
472    This update fixes a number of minor bugs in ml-nlffigen as reported by
473    Nick Carter <nbc@andrew.cmu.edu>.
474    
475      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
476      2. Default names for generated files are now derived from the name of
477         the C file *without its directory*.  In particular, this causes generated
478         files to be placed locally even if the C file is in some system directory.
479      3. Default names for generated signatures and structures are also derived
480         from the C file name without its directory.  This avoids silly things
481         like "structure GL/GL".
482         (Other silly names are still possible because ml-nlffigen does not do
483          a thorough check of whether generated names are legal ML identifiers.
484          When in doubt, use command line arguments to force particular names.)
485    
486    ----------------------------------------------------------------------
487    Name: Matthias Blume
488    Date: 2001/06/21 12:25:00 EDT
489    Tag: blume-20010621-eXene
490    Description:
491    
492    eXene now compiles and (sort of) works again.
493    
494    The library name (for version > 110.33) is $/eXene.cm.
495    
496    I also added an new example in src/eXene/examples/nbody.  See the
497    README file there for details.
498    
499    ----------------------------------------------------------------------
500    Name: Matthias Blume
501    Date: 2001/06/20 16:40:00 EDT
502    Tag: blume-20010620-cml
503    Description:
504    
505    CML now compiles and works again.
506    
507    Libraries (for version > 110.33):
508    
509      $cml/cml.cm            Main CML library.
510      $cml/basis.cm          CML's version of $/basis.cm.
511      $cml/cml-internal.cm   Internal helper library.
512      $cml/core-cml.cm       Internal helper library.
513      $cml-lib/trace-cml.cm  Tracing facility.
514      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
515    
516    The installer (config/install.sh) has been taught how to properly
517    install this stuff.
518    
519    ----------------------------------------------------------------------
520    Name: Matthias Blume
521    Date: 2001/06/19 17:55:00 EDT
522    Tag: blume-20010619-instantiate
523    Description:
524    
525    This un-breaks the fix for bug 1432.
526    (The bug was originally fixed in 110.9 but I broke it again some
527    time after that.)
528    
529    ----------------------------------------------------------------------
530    Name: Matthias Blume
531    Date: 2001/06/19 17:25:00 EDT
532    Tag: blume-20010619-signals
533    Description:
534    
535    This should (hopefully) fix the long-standing signal handling bug.
536    (The runtime system was constructing a continuation record with an
537    incorrect descriptor which would cause the GC to drop data on the floor...)
538    
539    ----------------------------------------------------------------------
540    Name: Matthias Blume
541    Date: 2001/06/15 15:05:00 EDT
542    Tag: blume-20010615-moresparc
543    Description:
544    
545    Here is a short late-hour update related to Sparc c-calls:
546    
547     -- made handling of double-word arguments a bit smarter
548    
549     -- instruction selection phase tries to collapse certain clumsily
550        constructed ML-Trees; typical example:
551    
552            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
553    
554        This currently has no further impact on SML/NJ since mlriscGen does
555        not seem to generate such patterns in the first place, and c-calls
556        (which did generate them in the beginning) has meanwhile been fixed
557        so as to avoid them as well.
558    
559    ----------------------------------------------------------------------
560    Name: Matthias Blume
561    Date: 2001/06/15 15:05:00 EDT
562    Tag: blume-20010615-sparc
563    Description:
564    
565    The purpose of this update is to provide an implementation of NLFFI
566    on Sparc machines.
567    
568    Here are the changes in detail:
569    
570       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
571       the Sparc implementation of the c-calls API.
572       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
573       for accessing the ML frame.  Thus, we have a real frame pointer and
574       can freely modify %sp without need for an omit-frame-ptr phase.
575       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
576       this case.
577       * ml-nlffigen has been taught to produce code for different architectures
578       and calling conventions.
579       * In a way similar to what was done in the x86 case, the Sparc
580       backend uses its own specific extension to mltree.  (For example,
581       it needs to be able to generate UNIMP instructions which are part
582       of the calling convention.)
583       * ml-nlffi-lib was reorganized to make it more modular (in particular,
584       to make it easier to plug in new machine- and os-dependent parts).
585    
586    There are some other fairly unrelated bug fixes and cleanups as well:
587    
588       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
589       that they properly share their libraries with existing SML/NJ libraries.
590       * I fixed a minor cosmetic bug in CM, supressing certain spurious
591       follow-up error messages.
592       * Updates to CM/CMB documentation.
593    
594    TODO items:
595    
596       * MLRISC should use a different register as its asmTemp on the Sparc.
597         (The current %o2 is a really bad choice because it is part of the
598         calling conventions, so things might interfere in unexpected ways.)
599    
600    ----------------------------------------------------------------------
601    Name: Matthias Blume
602    Date: 2001/06/07
603    Tag: blume-20010607-calls
604    Description:
605    
606    A number of internal changes related to C calls and calling conventions:
607    
608    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
609       number of bytes popped implicitly (by the callee).  In most cases
610       this field is 0 but on x86/win32 it is some non-zero value.  This
611       is information provided for the benefit of the "omit-frameptr" pass.
612    2. The CALL instruction on the x86 carries a similar "pops" field.
613       The instruction selection phase copies its value from the ML-Tree
614       CALL statement.
615    3. On all other architectures, the instruction selection phase checks
616       whether "pops=0" and complains if not.
617    4. The c-calls implementation for x86 now accepts two calling conventions:
618       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
619       up after the call and pops is set to 0.  For "stdcall", the caller
620       does nothing, leaving the cleanup to the callee; pops is set to
621       the number of bytes that were pushed onto the stack.
622    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
623       distinguish between "ccall" and "stdcall".
624    6. The UNIMP instruction has been added to the supported Sparc instruction
625       set. (This is needed for implementing the official C calling convention
626       on this architecture.)
627    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
628       work with the latest CM.
629    
630    ----------------------------------------------------------------------
631    Name: Matthias Blume
632    Date: 2001/06/05 15:10:00 EDT
633    Tag: blume-20010605-cm-index
634    Description:
635    
636    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
637    
638    1. CM can now generate "index files".  These are human-readable files
639       that list on a per-.cm-file basis each toplevel symbol defined or
640       imported.  The location of the index file for
641       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
642       To enable index-file generation, set CM.Control.generate_index to true
643       or export an environment-symbol: export CM_GENERATE_INDEX=true.
644    
645       The CM manual has been updated accordingly.
646    
647    2. I made some slight modifications to the c-calls API in MLRISC.
648    
649         a) There is now a callback to support saving/restoring of
650            dedicated but caller-save registers around the actual call
651            instruction.
652         b) One can optionally specify a comment-annotation for the
653            call instruction.
654    
655    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
656       (For example, the comment annotation shows the C prototype of
657        the function being called.)
658    
659    ----------------------------------------------------------------------
660    Name: Matthias Blume
661    Date: 2001/06/01 13:30:00 EDT
662    Tag: blume-20010601-nlffi-cleanup
663    Description:
664    
665    This is mostly a cleanup of MLFFI stuff:
666    
667       - some signature files have been put into a more exposed place
668       - the ugly 'f type parameter is gone (simplifies types tremendously!)
669       - ml-nlffigen changed accordingly
670       - tutorial updated
671    
672    Other changes:
673    
674       - author's affiliation in CM manual(s) updated
675       - some more recognized keywords added to Allen's sml.sty
676    
677    ----------------------------------------------------------------------
678    Name: Matthias Blume
679    Date: 2001/05/25 15:30:00 EDT
680    Tag: blume-20010525-iptr
681    Description:
682    
683      - put the official 110.33-README (as it appears on the ftp server) under
684        CVS
685      - fixed a small bug related to incomplete pointer types in
686        ml-nlffigen
687      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
688        (it does not need the 'f type parameter)
689    
690    ----------------------------------------------------------------------
691    Name: Matthias Blume
692    Date: 2001/05/23 14:30:00 EDT
693    Tag: Release_110_33
694    Description:
695    
696    New version number (110.33).  New bootfiles.
697    
698    ----------------------------------------------------------------------
699    Name: Matthias Blume
700    Date: 2001/05/22 18:06:00 EDT
701    Tag: blume-20010522-targets
702    Description:
703    
704    Made install.sh use file config/targets.customized if it exists, falling
705    back to config/targets if it doesn't.  This way one can have a customized
706    version of the targets file without touching the "real thing", thus
707    eliminating the constant fear of accidentally checking something bogus
708    back into the CVS repository...  (File config/targets.customized must
709    not be added to the repository!)
710    
711    ----------------------------------------------------------------------
712    Name: Matthias Blume
713    Date: 2001/05/22 16:30:00 EDT
714    Tag: blume-20010522-minitut
715    Description:
716    
717    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
718       struct returns.
719    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
720       incomplete, preliminary documentation for NLFFI.
721    
722    ----------------------------------------------------------------------
723    Name: Matthias Blume
724    Date: 2001/05/14 11:30:00 EDT
725    Tag: blume-20010514-script
726    Description:
727    
728    Some bugs in install script fixed.
729    
730    In addition to that I also made a slight change to the NLFFI API:
731    Functors generated by ml-nlffigen now take the dynamic library as a
732    straight functor argument, not as a suspended one.  (The original
733    functor code used to force the suspension right away anyway, so there
734    was nothing gained by this complication of the interface.)
735    
736    ----------------------------------------------------------------------
737    Name: Matthias Blume
738    Date: 2001/05/11 14:35:00 EDT
739    Tag: blume-20010511-ml-nlffi
740    Description:
741    
742    I finally took the plunge and added my new FFI code to the main
743    repository.  For x86-linux it is now ready for prime-time.
744    
745    There are two new subdirectories of "src":
746    
747      - ml-nlffi-lib:
748           The utility library for programs using the FFI interface.
749           Here is the implementation of $/c.cm and its associated low-level
750           partners $/c-int.cm and $/memory.cm.
751      - ml-nlffigen:
752           A stand-alone program for generating ML glue code from C source
753           code.
754    
755    Building ml-nlffigen requires $/ckit-lib.cm.
756    
757    The config/install.sh script has been updates to do the Right Thing
758    (hopefully).
759    
760    Notice that the source tree for the C-Kit will not be put under "src"
761    but directly under the installation root directory.  (This is the
762    structure that currently exists on the CVS server when you check out
763    module "sml".)  Fortunately, config/install.sh knows about this oddity.
764    
765    Bugs: No documentation yet.
766    
767    ----------------------------------------------------------------------
768    Name: Matthias Blume
769    Date: 2001/05/09 16:35:00 EDT
770    Tag: blume-20010509-cpscontract
771    Description:
772    
773    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
774    wrapper/unwrapper elimination did not decrement usage counts and some
775    dead variables got overlooked by the dead-up logic.)
776    
777    ----------------------------------------------------------------------
778    Name: Lal George
779    Date: 2001/05/08  17:26:09 EDT
780    Tag: george-20010508-omit-frameptr
781    Description:
782    
783    Changes to implement the omit-frame-pointer optimization to support
784    raw C calls. For now, there is only support on the Intel x86, but
785    other architectures will follow as more experience is gained with this.
786    
787    
788    ----------------------------------------------------------------------
789    Name: Matthias Blume
790    Date: 2001/05/07 14:40:00 EDT
791    Tag: blume-20010507-proxies
792    Description:
793    
794    I made into "proxy libraries" all libraries that qualify for such a
795    change.  (A qualifying library is a library that has another library or
796    groups as its sole member and repeats that member's export list
797    verbatim.  A proxy library avoids this repetition by omitting its export
798    list, effectively inheriting the list that its (only) member exports.
799    See the CM manual for more explanation.)
800    The main effect is that explicit export lists for these libraries
801    do not have to be kepts in sync, making maintenance a bit easier.
802    
803    I also added copyright notices to many .cm-files.
804    
805    Last but not least, I made a new set of bootfiles.
806    
807    ----------------------------------------------------------------------
808    Name: Matthias Blume
809    Date: 2001/05/04 17:00:00 EDT
810    Tag: blume-20010504-cm-lsplit
811    Description:
812    
813    0. John merged pending changes to $/smlnj-lib.cm
814    
815    1. Allen's previous change accidentally backed out of one of Lal's
816       earlier changes.  I undid this mistake (re-introducing Lal's change).
817    
818    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
819       within the compiler where applicable.  There is some code simplification
820       because of that.
821    
822    3. The "split" phase (in FLINT) is now part of the default list of phases.
823       Compiler.Control.LambdaSplitting.* can be used to globally control the
824       lambda-splitting (cross-module-inlining) engine.  In addition to that,
825       it can now also be controlled on a per-source basis: CM has been taught
826       a new tool parameter applicable to ML source files.
827    
828       - To turn lambda-splitting off completely:
829            local open Compiler.Control.LambdaSplitting in
830                val _ = set Off
831            end
832       - To make "no lambda-splitting" the global default (but allow per-source
833         overriding); this is the initial setting:
834            local open Compiler.Control.LambdaSplitting in
835                val _ = set (Default NONE)
836            end
837       - To make "lambda-splitting with aggressiveness a" the global default
838         (and allow per-source overriding):
839            local open Compiler.Control.LambdaSplitting in
840                val _ = set (Default (SOME a))
841            end
842    
843       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
844         write (in the respective .cm-file):
845            a.sml (lambdasplitting:off)
846       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
847            a.sml (lambdasplitting:on)
848       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
849         <a> is a decimal non-negative integer):
850            a.sml (lambdasplitting:<a>)
851       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
852            a.sml (lambdasplitting:infinity)
853       - To use the global default for a.sml:
854            a.sml (lambdasplitting:default)
855         or simply
856            a.sml
857    
858    ----------------------------------------------------------------------
859    Name: Allen Leung
860    Date: 2001/05/04 01:57:00 EDT
861    Tag: leunga-20010504-sync
862    Description:
863    
864      MLRISC features.
865    
866      1. Fix to CMPXCHG instructions.
867      2. Changed RA interface to allow annotations in callbacks.
868      3. Added a new method to the stream interface to allow annotations updates.
869    
870    ----------------------------------------------------------------------
871    Name: Matthias Blume
872    Date: 2001/05/01 11:45:00 EDT
873    Tag: blume-20010501-pcedittmp
874    Description:
875    
876    Changed install.sh to use the current working directory instead of
877    /usr/tmp for a temporary file (pcedittmp).  The previous choice
878    of /usr/tmp caused trouble with MacOS X because of file premission
879    problems.
880    
881    ----------------------------------------------------------------------
882    Name: Matthias Blume
883    Date: 2001/04/20 11:10:00 EDT
884    Tag: blume-20010420-inMLflag
885    Description:
886    
887     - added vp_limitPtrMask to vproc-state.h
888       (for use by the raw-C-calls mechanism to implement proper interrupt
889        handling)
890     - made the ML compiler aware of various data-structure offsets so it
891       can generate code for accessing the vp_inML flag and vp_limitPtrMask
892     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
893       raw C-calls
894    
895    ----------------------------------------------------------------------
896    Name: Lal George
897    Date: 2001/04/20 09:15:28 EDT
898    Tag: george-20010420-macosX
899    Description:
900    
901     - Changes to port to Mac OS X; Darwin.
902    
903     - In the process I found that sqrt was broken on the PPC, because the
904       fsqrt instruction is not implemented.
905    
906    ----------------------------------------------------------------------
907    Name: Matthias Blume
908    Date: 2001/04/18 12:45:00 EDT
909    Tag: blume-20010418-ccalls
910    Description:
911    
912     - fixed two off-by-4 errors in the x86-specific c-calls implementation
913       (this bug prevented structure arguments containing pointers from being
914        passed correctly)
915     - changed the raw-C-call code in mlriscGen.sml in such a way that
916       structure arguments are represented as a pointer to the beginning
917       of the structure (instead of having a series of synthesized arguments,
918       one for each structure member)
919    
920     - made makeml script's verbosity level configurable via environment
921       variable (MAKEML_VERBOSITY)
922    
923     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
924       in rawmem-x86.sml; we are now using the real thing
925    
926    ----------------------------------------------------------------------
927    Name: Matthias Blume
928    Date: 2001/03/22 16:25:00 EST
929    Tag: blume-20010322-bootfiles
930    Description:
931    
932    Created a new set of bootfiles (for your automatic installation convenience).
933    
934    ----------------------------------------------------------------------
935    Name: Matthias Blume
936    Date: 2001/03/22 15:10:00 EST
937    Tag: blume-20010322-rawmem-parcm
938    Description:
939    
940    1. All "raw memory access" primitives for the new FFI are implemented now
941       (at least on the x86).
942    2. Some further cleanup of CM's parallel make mechanism.
943    
944    ----------------------------------------------------------------------
945    Name: Matthias Blume
946    Date: 2001/03/19 17:53:00 EST
947    Tag: blume-20010319-parallel
948    Description:
949    
950    Parallel make (using compile servers) now works again.
951    
952    To this end, CM.stabilize and CMB.make have been modified to work in
953    two passes when compile servers are attached:
954       1. Compile everything, do not perform stabilization; this pass
955          uses compile servers
956       2. Stabilize everything; this pass does not use compile servers
957    If there are no compile servers, the two passes are combined into one
958    (as before).  Splitting the passes increases the inherent parallelism
959    in the dependency graph because the entire graph including all
960    libraries is available at the same time.  This, in turn, improves
961    server utilization.  The downside is that the master process will
962    have to do some extra work after compilation is done (because for
963    technical reasons it must re-read all the binfiles during stabilization).
964    
965    ----------------------------------------------------------------------
966    Name: Matthias Blume
967    Date: 2001/03/16 12:22:00 EST
968    Tag: blume-20010316-bootfiles
969    Description:
970    
971    Created a new set of bootfiles (for your automatic installation convenience).
972    
973    ----------------------------------------------------------------------
974    Name: Matthias Blume
975    Date: 2001/03/16 11:00:00 EST
976    Tag: blume-20010316-MLTREE-fixup
977    Description:
978    
979    This is a minor fixup for an (untagged) earlier commit by Allen.
980    (A file was missing).
981    
982    ----------------------------------------------------------------------
983    Name: Allen Leung
984    Date: Mon Mar  5 18:54:57 EST 2001
985    Tag: leunga-20010305-cut-support
986    
987    1. New support for alternative control-flow in MLTREE.
988       Currently we support
989    
990          FLOW_TO(CALL ...., [k1,...,kn])
991    
992       This is needed for 'cuts to' in C-- and try/handle-like constructs
993       in Moby
994    
995       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
996    
997    2. Register Allocator
998    
999       Changes in interface [from Fermin, John]
1000    
1001    3. Alpha 8-bit SLL support [Fermin]
1002    
1003    4. All architectures
1004    
1005       A new module (ClusterExpandCopies) for expanding parallel copies.
1006    
1007    ----------------------------------------------------------------------
1008    Name: Allen Leung
1009    Date: 2001/02/27 23:07:00 EST
1010    Tag: leunga-20010227-minor-stuff
1011    
1012    1. Alpha bug fix for CMOVNE
1013    2. Handle mltree COND(..,FCMP ...,...)
1014    3. Bug fix in simplifier
1015    
1016    ----------------------------------------------------------------------
1017    Name: Matthias Blume
1018    Date: 2001/01/30 17:50:00 EST
1019    Tag: blume-20010130-sync
1020    Description:
1021    
1022    This is just a minor update to sync my devel branch with the main brach.
1023    The only visible change is the addition of some README files.
1024    
1025    ----------------------------------------------------------------------
1026    Name: Matthias Blume
1027    Date: 2001/01/12 23:30:00 JST
1028    Tag: blume-20010112-bootfiles
1029    Description:
1030    
1031    Made a new set of bootfiles that goes with the current state of the
1032    repository.
1033    
1034    ----------------------------------------------------------------------
1035    Name: Matthias Blume
1036    Date: 2001/01/12 21:20:00 JST
1037    Tag: blume-20010112-sync
1038    Description:
1039    
1040    I am just flushing out some minor changes that had accumulated in
1041    my private branch in order to sync with the main tree.  (This is
1042    mainly because I had CVS trouble when trying to merge _into_ my
1043    private branch.)
1044    
1045    Most people should be completely unaffected by this.
1046    
1047    ----------------------------------------------------------------------
1048    Name: Allen Leung
1049    Date: Thu Jan 11 21:03:00 EST 2001
1050    Tag: leunga-20010111-labexp=mltree
1051    Description:
1052    
1053    1.  Removed the type LabelExp and replace it by MLTree.
1054    2.  Rewritten mltree-simplify with the pattern matcher tool.
1055    3.  There were some bugs in alpha code generator which would break
1056        64-bit code generation.
1057    4.  Redo the tools to generate code with the
1058    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
1059        are now generated by perl scripts.
1060    
1061    ----------------------------------------------------------------------
1062    Name: Matthias Blume
1063    Date: 2001/01/10 21:55:00 JST
1064    Tag: blume-20010110-rcc
1065    Description:
1066    
1067    The RCC stuff now seems to work (but only on the x86).
1068    This required hacking of the c-calls interface (and -implementation) in
1069    MLRISC.
1070    
1071    Normal compiler users should be unaffected.
1072    
1073    ----------------------------------------------------------------------
1074    Name: Matthias Blume
1075    Date: 2001/01/09 01:20:00 JST
1076    Tag: blume-20010109-rcc
1077    Description:
1078    
1079    This is a fairly big patch, flushing out a large number of pending
1080    changes that I made to my development copy over the last couple of days.
1081    
1082    Of practical relevance at this moment is a workaround for a pickling
1083    bug that Allen ran into the other day.  The cause of the bug itself is
1084    still unknown and it might be hard to fix it properly, but the
1085    workaround has some merits of its own (namely somewhat reducing pickling
1086    overhead for certain libraries).  Therefore, I think this solution should
1087    be satisfactory at this time.
1088    
1089    The rest of the changes (i.e., the vast majority) has to do with my
1090    ongoing efforts of providing direct support for C function calls from
1091    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
1092    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
1093    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
1094    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
1095    handle RCC.
1096    
1097    The last part (the changes to mlriscGen.sml) are still known to be
1098    wrong on the x86 and not implemented on all other architectures.  But
1099    the infrastructure is in place. I had to change a few functor
1100    signatures in the backend to be able to route the CCalls interface
1101    from MLRISC there, and I had to specialize the mltree type (on the
1102    x86) to include the necessary extensions. (The extensions themselves
1103    were already there and redy to go in MLRISC/x86).
1104    
1105    Everything should be very happy as soon as someone helps me with
1106    mlriscGen.sml...
1107    
1108    In any case, nothing of this should matter to anyone as long as the
1109    new primop is not being used (which is going to be the case unless you
1110    find it where I hid it :). The rest of the compiler is completely
1111    unaffected.
1112    
1113    ----------------------------------------------------------------------
1114    Name: Matthias Blume
1115    Date: 2001/01/05 00:30:00 JST
1116    Tag: blume-20010105-primops
1117    Description:
1118    
1119    Added some experimental support for work that I am doing right now.
1120    These changes mostly concern added primops, but there is also a new
1121    experimental C library in the runtime system (but currently not enabled
1122    anywhere except on Linux/X86).
1123    
1124    In the course of adding primops (and playing with them), I discovered that
1125    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
1126    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
1127    To recover, I made type information in INL_PRIM mandatory and changed
1128    prim.sml as well as built-in.sml accordingly.  The InLine structure now
1129    has complete, correct type information (i.e., no bottom types).
1130    
1131    Since all these changes mean that we need new binfiles, I also bumped the
1132    version number to 110.32.1.
1133    
1134    ----------------------------------------------------------------------
1135    Name: Matthias Blume
1136    Date: 2000/12/30 22:10:00 JST
1137    Tag: blume-20001230-various
1138    Description:
1139    
1140    Added proxy libraries for MLRISC and let MLRISC libraries refer
1141    to each other using path anchors.  (See CM manual for explanation.)
1142    
1143    Updated CM documentation.
1144    
1145    Fixed some bugs in CM.
1146    
1147    Implemented "proxy" libraries (= syntactic sugar for CM).
1148    
1149    Added "-quiet" option to makeml and changed runtime system accordingly.
1150    
1151    Added cleanup handler for exportML to reset timers and compiler stats.
1152    
1153    ----------------------------------------------------------------------
1154    Name: Lal George
1155    Date: 2000/12/22 22:22:58 EST 2000
1156    Tag: Release_110_32
1157    Description:
1158    
1159            Infinite precision used throughout MLRISC.
1160            see MLRISC/mltree/machine-int.sig
1161    
1162    ----------------------------------------------------------------------
1163    Name: Matthias Blume
1164    Date: 2000/12/22 23:16:00 JST
1165    Tag: blume-20001222-warn
1166    Description:
1167    
1168    Corrected wording and formatting of some CM warning message which I
1169    broke in my previous patch.
1170    
1171    ----------------------------------------------------------------------
1172    Name: Matthias Blume
1173    Date: 2000/12/22 21:20:00 JST
1174    Tag: blume-20001222-anchorenv
1175    Description:
1176    
1177    Fixed CM's handling of anchor environments in connection with CMB.make.
1178    
1179    ----------------------------------------------------------------------
1180    Name: Matthias Blume
1181    Date: 2000/12/22 13:15:00 JST
1182    Tag: blume-20001222-cleanup
1183    Description:
1184    
1185    Removed src/cm/ffi which does not (and did not) belong here.
1186    
1187  ----------------------------------------------------------------------  ----------------------------------------------------------------------
1188  Name: Matthias Blume  Name: Matthias Blume
1189  Date: 2000/12/21 23:55:00 JST  Date: 2000/12/21 23:55:00 JST
# Line 1780  Line 2953 
2953       elaborator). There were a lot of changes during my "linkpath" trials       elaborator). There were a lot of changes during my "linkpath" trials
2954       that could have been reverted to their original state but weren't.       that could have been reverted to their original state but weren't.
2955       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
2956       than what was strictly necessary...  (I _did_ resist the tempation       than what was strictly necessary...  (I _did_ resist the temptation
2957       of doing any "global reformatting" to avoid an untimely death at       of doing any "global reformatting" to avoid an untimely death at
2958       Dave's hands. :)       Dave's hands. :)
2959    

Legend:
Removed from v.757  
changed lines
  Added in v.923

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