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 808, Wed Apr 18 15:43:09 2001 UTC revision 905, Thu Aug 23 21:53:02 2001 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume  Name: Matthias Blume
17    Date: 2001/08/23 17:50:00 EDT
18    Tag: blume-20010823-toplevel
19    Description:
20    
21    - some reorganization of the code that implements various kinds of
22      environments in the compiler (static, dynamic, symbolic, combined)
23    - re-implemented the EnvRef module so that evalStream works properly
24      (if the stream contains references to "use", "CM.make", etc.)
25    - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
26    
27    ----------------------------------------------------------------------
28    Name: Matthias Blume
29    Date: 2001/08/20 15:50 EDT
30    Tag: blume20010820-slipup
31    Description:
32    
33    I forgot to commit a few files.  Here they are...
34    
35    ----------------------------------------------------------------------
36    Name: Matthias Blume
37    Date: 2001/08/20 15:35:00 EDT
38    Tag: blume-20010820-debugprof
39    Description:
40    
41    !!!! NEW BOOTFILES !!!!
42    
43    This is another round of reorganizing the compiler sources.  This
44    time the main goal was to factor out all the "instrumentation"
45    passes (for profiling and backtracing) into their own library.
46    The difficulty was to do it in such a way that it does not depend
47    on elaborate.cm but only on elabdata.cm.
48    
49    Therefore there have been further changes to both elaborate.cm and
50    elabdata.cm -- more "generic" things have been moved from the former
51    to the latter.  As a result, I was forced to split the assignment
52    of numbers indicating "primtyc"s into two portions: SML-generic and
53    SML/NJ-specific.  Since it would have been awkward to maintain,
54    I bit the bullet and actually _changed_ the mapping between these
55    numbers and primtycs.  The bottom line of this is that you need
56    a new set of bin- and bootfiles.
57    
58    I have built new bootfiles for all architectures, so doing a fresh
59    checkout and config/install.sh should be all you need.
60    
61    The newly created library's name is
62    
63        $smlnj/viscomp/debugprof.cm
64    
65    and its sources live under
66    
67        src/compiler/DebugProf
68    
69    ----------------------------------------------------------------------
70    Name: Matthias Blume
71    Date: 2001/08/15 17:15:00 EDT
72    Tag: blume-20010815-compreorg
73    Description:
74    
75    This is a first cut at reorganizing the CM libraries that make up the
76    core of the compiler.  The idea is to separate out pieces that could
77    be used independently by tools, e.g., the parser, the typechecker, etc.
78    
79    The current status is a step in this direction, but it is not quite
80    satisfactory yet.  Expect more changes in the future.
81    
82    Here is the current (new) organization...
83    
84        What used to be $smlnj/viscomp/core.cm is now divided into
85        six CM libraries:
86    
87             $smlnj/viscomp/basics.cm
88                           /parser.cm
89                           /elabdata.cm
90                           /elaborate.cm
91                           /execute.cm
92                           /core.cm
93    
94        The CM files for these libraries live under src/system/smlnj/viscomp.
95        All these libraries are proxy libraries that contain precisely
96        one CM library component.  Here are the locations of the components
97        (all within the src/compiler tree):
98    
99             Basics/basics.cm
100             Parse/parser.cm
101             ElabData/elabdata.cm
102             Elaborator/elaborate.cm
103             Execution/execute.cm
104             core.cm
105    
106         [This organization is the same that has been used already
107         for a while for the architecture-specific parts of the visible
108         compiler and for the old version of core.cm.]
109    
110         As you will notice, many source files have been moved from their
111         respective original locations to a new home in one of the above
112         subtrees.
113    
114         The division of labor between the new libraries is the following:
115    
116             basics.cm:
117                - Simple, basic definitions that pertain to many (or all) of
118                  the other libraries.
119             parser.cm:
120                - The SML parser, producing output of type Ast.dec.
121                - The type family for Ast is also defined and exported here.
122             elabdata.cm:
123                - The datatypes that describe input and output of the elaborator.
124                  This includes types, absyn, and static environments.
125             elaborator.cm:
126                - The SML/NJ type checker and elaborator.
127                  This maps an Ast.dec (with a given static environment) to
128                  an Absyn.dec (with a new static environment).
129                - This libraries implements certain modules that used to be
130                  structures as functors (to remove dependencies on FLINT).
131             execute.cm:
132                - Everything having to do with executing binary code objects.
133                - Dynamic environments.
134             core.cm:
135                - SML/NJ-specific instantiations of the elaborator and MLRISC.
136                - Top-level modules.
137                - FLINT (this should eventually become its own library)
138    
139    Notes:
140    
141    I am not 100% happy with the way I separated the elaborator (and its
142    data structures) from FLINT.  Two instances of the same problem:
143    
144        1. Data structures contain certain fields that carry FLINT-specific
145           information.  I hacked around this using exn and the property list
146           module from smlnj-lib.  But the fact that there are middle-end
147           specific fields around at all is a bit annoying.
148    
149        2. The elaborator calculates certain FLINT-related information.  I tried
150           to make this as abstract as I could using functorization, but, again,
151           the fact that the elaborator has to perform calculations on behalf
152           of the middle-end at all is not nice.
153    
154        3. Having to used exn and property lists is unfortunate because it
155           weakens type checking.  The other alternative (parameterizing
156           nearly *everything*) is not appealing, though.
157    
158    I removed the "rebinding =" warning hack because due to the new organization
159    it was awkward to maintain it.  As a result, the compiler now issues some of
160    these warnings when compiling init.cmi during bootstrap compilation. On
161    the plus side, you also get a warning when you do, for example:
162       val op = = Int32.+
163    which was not the case up to now.
164    
165    I placed "assign" and "deref" into the _Core structure so that the
166    code that deals with the "lazy" keyword can find them there.  This
167    removes the need for having access to the primitive environment
168    during elaboration.
169    
170    ----------------------------------------------------------------------
171    Name: Matthias Blume
172    Date: 2001/08/13
173    Tag: blume-20010813-closures
174    Description:
175    
176    This fix was sent to us by Zhong Shao.  It is supposed to improve the
177    performance of certain loops by avoiding needless closure allocation.
178    
179    ----------------------------------------------------------------------
180    Name: Lal George
181    Date: 2001/07/31 10:03:23 EDT 2001
182    Tag: george-20010731-x86-fmalloc
183    Description: Fixed bug in x86 calls
184    
185        There was a bug where call instructions would mysteriously
186        vanish. The call instruction had to be one that returned
187        a floating point value.
188    
189    ----------------------------------------------------------------------
190    Name: Lal George
191    Date: 2001/07/19 16:36:29 EDT 2001
192    Tag: george-20010719-simple-cells
193    Description:
194    
195    I have dramatically simplified the interface for CELLS in MLRISC.
196    
197    In summary, the cells interface is broken up into three parts:
198    
199      1. CellsBasis : CELLS_BASIS
200    
201            CellsBasis is a top level structure and common for all
202            architectures.  it contains the definitions of basic datatypes
203            and utility  functions over these types.
204    
205      2. functor Cells() : CELLS
206    
207            Cells generates an interface for CELLS that incorporates the
208            specific resources on the target architecture, such as the
209            presence of special register classes, their number and size,
210            and various useful substructures.
211    
212      3. <ARCH>CELLS
213    
214            e.g. SparcCells: SPARCCELLS
215    
216            <ARCH>CELLS usually contains additional bindings for special
217            registers  on the architecture, such as:
218    
219                    val r0 : cell           (* register zero *)
220                    val y : cell            (* Y register *)
221                    val psr : cell          (* processor status register *)
222                    ...
223    
224            The structure returned by applying the Cells functor is opened
225            in this interface.
226    
227    The main implication of all this is that the datatypes for cells is
228    split between CellsBasis and CELLS -- a fairly simple change for user
229    code.
230    
231    In the old scheme the CELLS interface had a definitional binding of
232    the form:
233    
234            signature CELLS = sig
235    
236               structure CellsBasis = CellsBasis
237    
238               ...
239    
240            end
241    
242    With all the sharing constraints that goes on in MLRISC, this old
243    design  quickly leads to errors such as:
244    
245            "structure definition spec inside of sharing ... "
246    
247    
248    and appears to require an unacceptable amount of sharing and where
249    constraint hackery.
250    
251    I think this error message (the interaction of definitional specs and
252    sharing) requires more explanation on our web page.
253    
254    ----------------------------------------------------------------------
255    Name: Matthias Blume
256    Date: 2001/07/19 15:00:00 EDT
257    Tag: blume-20010719-libreorg
258    Description:
259    
260    This update puts together a fairly extensive but straightforward change
261    to the way the libraries that implement the interactive system are
262    organized:
263    
264       The biggest change is the elimination of structure Compiler.  As a
265       replacement for this structure, there is now a CM library
266       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
267       that exports all the substructures of the original structure Compiler
268       directly.  So instead of saying Compiler.Foo.bar one now simply
269       says Foo.bar.  (The CM libraries actually export a collection of
270       structures that is richer than the collection of substructures of
271       structure Compiler.)
272    
273       To make the transition smooth, there is a separate library called
274       $smlnj/compiler/compiler.cm which puts together and exports the
275       original structure Compiler (or at least something very close to it).
276    
277       There are five members of the original structure Compiler
278       that are not exported directly but which instead became members
279       of a new structure Backend (described by signature BACKEND).  These are:
280       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
281       Interact (: INTERACT), structure Machine (: MACHINE), and val
282       architecture (: string).
283    
284       Structure Compiler.Version has become structure CompilerVersion.
285    
286       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
287       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
288       or x86, respectively.
289       Each of these exports the same frontend structures that
290       $smlnj/compiler.cm exports.  But they do not have a structure Backend
291       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
292       Hppa, PPC, Sparc, or X86, respectively.
293    
294       Library $smlnj/compiler/all.cm exports the union of the exports of
295       $smlnj/compiler/<arch>.cm
296    
297       There are no structures <Arch>Compiler anymore, use
298       $smlnj/compiler/<arch>.cm instead.
299    
300       Library host-compiler-0.cm is gone.  Instead, the internal library
301       that instantiates CM is now called cm0.cm.  Selection of the host
302       compiler (backend) is no longer done here but. (Responsibility for it
303       now lies with $smlnj/compiler/current.cm.  This seems to be more
304       logical.)
305    
306       Many individual files have been moved or renamed.  Some files have
307       been split into multiple files, and some "dead" files have been deleted.
308    
309    Aside from these changes to library organization, there are also changes
310    to the way the code itself is organized:
311    
312       Structure Binfile has been re-implemented in such a way that it no
313       longer needs any knowledge of the compiler.  It exclusively deals
314       with the details of binfile layout.  It no longer invokes the
315       compiler (for the purpose of creating new prospective binfile
316       content), and it no longer has any knowledge of how to interpret
317       pickles.
318    
319       Structure Compile (: COMPILE) has been stripped down to the bare
320       essentials of compilation.  It no longer deals with linking/execution.
321       The interface has been cleaned up considerably.
322    
323       Utility routines for dealing with linking and execution have been
324       moved into their own substructures.
325    
326       (The ultimate goal of these changes is to provide a light-weight
327       binfile loader/linker (at least for, e.g., stable libraries) that
328       does not require CM or the compiler to be present.)
329    
330    CM documentation has been updated to reflect the changes to library
331    organization.
332    
333    ----------------------------------------------------------------------
334    Name: Matthias Blume
335    Date: 2001/07/10 17:30:00 EDT
336    Tag: Release_110_34
337    Description:
338    
339    Minor tweak to 110.34 (re-tagged):
340    
341      - README.html file added to CVS repository
342      - runtime compiles properly under FreeBSD 3.X and 4.X
343    
344    ----------------------------------------------------------------------
345    Name: Matthias Blume
346    Date: 2001/07/10 17:30:00 EDT
347    Tag: Release_110_34
348    Description:
349    
350    New version number (110.34). New bootfiles.
351    
352    ----------------------------------------------------------------------
353    Name: Matthias Blume
354    Date: 2001/07/09 16:00:00 EDT
355    Tag: blume-20010709-more-varargs
356    Description:
357    
358    I changed the handling of varargs in ml-nlffigen again:
359    The ellipsis ... will now simply be ignored (with an accompanying warning).
360    
361    The immediate effect is that you can actually call a varargs function
362    from ML -- but you can't actually supply any arguments beyond the ones
363    specified explicitly.  (For example, you can call printf with its format
364    string, but you cannot pass additional arguments.)
365    
366    This behavior is only marginally more useful than the one before, but
367    it has the advantage that a function or, more importantly, a function
368    type never gets dropped on the floor, thus avoiding follow-up problems with
369    other types that refer to the offending one.
370    
371    ----------------------------------------------------------------------
372    Name: Matthias Blume
373    Date: 2001/07/09 11:25:00 EDT
374    Tag: blume-20010709-varargs
375    Description:
376    
377    1. ckit-lib.cm now exports structure Error
378    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
379       with a warning accompanied by a source location.  Moreover, it
380       merely skips the offending function or type and proceeds with the
381       rest of its work.u  As a result, one can safely feed C code containing
382       "..." to ml-nlffigen.
383    3. There are some internal improvements to CM, providing slightly
384       more general string substitutions in the tools subsystem.
385    
386    ----------------------------------------------------------------------
387    Name: Matthias Blume
388    Date: 2001/06/27 15:10:00 EDT
389    Tag: blume-20010627-concur
390    Description:
391    
392    Fixed a small bug in CM's handling of parallel compilation.
393    (You could observe the bug by Control-C-interrupting an ordinary
394    CMB.make or CM.stabilize and then attaching some compile servers.
395    The result was that all of a sudden the previously interrupted
396    compilation would continue on its own.  This was because of
397    an over-optimization: CM did not bother to clean out certain queues
398    when no servers were attached "anyway", resulting in the contents
399    of these queues to grab control when new servers did get attached.)
400    
401    There is also another minor update to the CM manual.
402    
403    ----------------------------------------------------------------------
404    Name: Matthias Blume
405    Date: 2001/06/26 16:15:00 EDT
406    Tag: blume-20010626-cmdoc
407    Description:
408    
409    Minor typo fixed in CM manual (syntax diagram for libraries).
410    
411    ----------------------------------------------------------------------
412    Name: Matthias Blume
413    Date: 2001/06/25 22:55:00 EDT
414    Tag: blume-20010625-x86pc
415    Description:
416    
417    Fixed a nasty bug in the X86 assembly code that caused signal
418    handlers to fail (crash) randomly.
419    
420    ----------------------------------------------------------------------
421    Name: Matthias Blume
422    Date: 2001/06/25 12:05:00 EDT
423    Tag: blume-20010625-nlffigen
424    Description:
425    
426    This update fixes a number of minor bugs in ml-nlffigen as reported by
427    Nick Carter <nbc@andrew.cmu.edu>.
428    
429      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
430      2. Default names for generated files are now derived from the name of
431         the C file *without its directory*.  In particular, this causes generated
432         files to be placed locally even if the C file is in some system directory.
433      3. Default names for generated signatures and structures are also derived
434         from the C file name without its directory.  This avoids silly things
435         like "structure GL/GL".
436         (Other silly names are still possible because ml-nlffigen does not do
437          a thorough check of whether generated names are legal ML identifiers.
438          When in doubt, use command line arguments to force particular names.)
439    
440    ----------------------------------------------------------------------
441    Name: Matthias Blume
442    Date: 2001/06/21 12:25:00 EDT
443    Tag: blume-20010621-eXene
444    Description:
445    
446    eXene now compiles and (sort of) works again.
447    
448    The library name (for version > 110.33) is $/eXene.cm.
449    
450    I also added an new example in src/eXene/examples/nbody.  See the
451    README file there for details.
452    
453    ----------------------------------------------------------------------
454    Name: Matthias Blume
455    Date: 2001/06/20 16:40:00 EDT
456    Tag: blume-20010620-cml
457    Description:
458    
459    CML now compiles and works again.
460    
461    Libraries (for version > 110.33):
462    
463      $cml/cml.cm            Main CML library.
464      $cml/basis.cm          CML's version of $/basis.cm.
465      $cml/cml-internal.cm   Internal helper library.
466      $cml/core-cml.cm       Internal helper library.
467      $cml-lib/trace-cml.cm  Tracing facility.
468      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
469    
470    The installer (config/install.sh) has been taught how to properly
471    install this stuff.
472    
473    ----------------------------------------------------------------------
474    Name: Matthias Blume
475    Date: 2001/06/19 17:55:00 EDT
476    Tag: blume-20010619-instantiate
477    Description:
478    
479    This un-breaks the fix for bug 1432.
480    (The bug was originally fixed in 110.9 but I broke it again some
481    time after that.)
482    
483    ----------------------------------------------------------------------
484    Name: Matthias Blume
485    Date: 2001/06/19 17:25:00 EDT
486    Tag: blume-20010619-signals
487    Description:
488    
489    This should (hopefully) fix the long-standing signal handling bug.
490    (The runtime system was constructing a continuation record with an
491    incorrect descriptor which would cause the GC to drop data on the floor...)
492    
493    ----------------------------------------------------------------------
494    Name: Matthias Blume
495    Date: 2001/06/15 15:05:00 EDT
496    Tag: blume-20010615-moresparc
497    Description:
498    
499    Here is a short late-hour update related to Sparc c-calls:
500    
501     -- made handling of double-word arguments a bit smarter
502    
503     -- instruction selection phase tries to collapse certain clumsily
504        constructed ML-Trees; typical example:
505    
506            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
507    
508        This currently has no further impact on SML/NJ since mlriscGen does
509        not seem to generate such patterns in the first place, and c-calls
510        (which did generate them in the beginning) has meanwhile been fixed
511        so as to avoid them as well.
512    
513    ----------------------------------------------------------------------
514    Name: Matthias Blume
515    Date: 2001/06/15 15:05:00 EDT
516    Tag: blume-20010615-sparc
517    Description:
518    
519    The purpose of this update is to provide an implementation of NLFFI
520    on Sparc machines.
521    
522    Here are the changes in detail:
523    
524       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
525       the Sparc implementation of the c-calls API.
526       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
527       for accessing the ML frame.  Thus, we have a real frame pointer and
528       can freely modify %sp without need for an omit-frame-ptr phase.
529       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
530       this case.
531       * ml-nlffigen has been taught to produce code for different architectures
532       and calling conventions.
533       * In a way similar to what was done in the x86 case, the Sparc
534       backend uses its own specific extension to mltree.  (For example,
535       it needs to be able to generate UNIMP instructions which are part
536       of the calling convention.)
537       * ml-nlffi-lib was reorganized to make it more modular (in particular,
538       to make it easier to plug in new machine- and os-dependent parts).
539    
540    There are some other fairly unrelated bug fixes and cleanups as well:
541    
542       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
543       that they properly share their libraries with existing SML/NJ libraries.
544       * I fixed a minor cosmetic bug in CM, supressing certain spurious
545       follow-up error messages.
546       * Updates to CM/CMB documentation.
547    
548    TODO items:
549    
550       * MLRISC should use a different register as its asmTemp on the Sparc.
551         (The current %o2 is a really bad choice because it is part of the
552         calling conventions, so things might interfere in unexpected ways.)
553    
554    ----------------------------------------------------------------------
555    Name: Matthias Blume
556    Date: 2001/06/07
557    Tag: blume-20010607-calls
558    Description:
559    
560    A number of internal changes related to C calls and calling conventions:
561    
562    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
563       number of bytes popped implicitly (by the callee).  In most cases
564       this field is 0 but on x86/win32 it is some non-zero value.  This
565       is information provided for the benefit of the "omit-frameptr" pass.
566    2. The CALL instruction on the x86 carries a similar "pops" field.
567       The instruction selection phase copies its value from the ML-Tree
568       CALL statement.
569    3. On all other architectures, the instruction selection phase checks
570       whether "pops=0" and complains if not.
571    4. The c-calls implementation for x86 now accepts two calling conventions:
572       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
573       up after the call and pops is set to 0.  For "stdcall", the caller
574       does nothing, leaving the cleanup to the callee; pops is set to
575       the number of bytes that were pushed onto the stack.
576    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
577       distinguish between "ccall" and "stdcall".
578    6. The UNIMP instruction has been added to the supported Sparc instruction
579       set. (This is needed for implementing the official C calling convention
580       on this architecture.)
581    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
582       work with the latest CM.
583    
584    ----------------------------------------------------------------------
585    Name: Matthias Blume
586    Date: 2001/06/05 15:10:00 EDT
587    Tag: blume-20010605-cm-index
588    Description:
589    
590    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
591    
592    1. CM can now generate "index files".  These are human-readable files
593       that list on a per-.cm-file basis each toplevel symbol defined or
594       imported.  The location of the index file for
595       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
596       To enable index-file generation, set CM.Control.generate_index to true
597       or export an environment-symbol: export CM_GENERATE_INDEX=true.
598    
599       The CM manual has been updated accordingly.
600    
601    2. I made some slight modifications to the c-calls API in MLRISC.
602    
603         a) There is now a callback to support saving/restoring of
604            dedicated but caller-save registers around the actual call
605            instruction.
606         b) One can optionally specify a comment-annotation for the
607            call instruction.
608    
609    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
610       (For example, the comment annotation shows the C prototype of
611        the function being called.)
612    
613    ----------------------------------------------------------------------
614    Name: Matthias Blume
615    Date: 2001/06/01 13:30:00 EDT
616    Tag: blume-20010601-nlffi-cleanup
617    Description:
618    
619    This is mostly a cleanup of MLFFI stuff:
620    
621       - some signature files have been put into a more exposed place
622       - the ugly 'f type parameter is gone (simplifies types tremendously!)
623       - ml-nlffigen changed accordingly
624       - tutorial updated
625    
626    Other changes:
627    
628       - author's affiliation in CM manual(s) updated
629       - some more recognized keywords added to Allen's sml.sty
630    
631    ----------------------------------------------------------------------
632    Name: Matthias Blume
633    Date: 2001/05/25 15:30:00 EDT
634    Tag: blume-20010525-iptr
635    Description:
636    
637      - put the official 110.33-README (as it appears on the ftp server) under
638        CVS
639      - fixed a small bug related to incomplete pointer types in
640        ml-nlffigen
641      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
642        (it does not need the 'f type parameter)
643    
644    ----------------------------------------------------------------------
645    Name: Matthias Blume
646    Date: 2001/05/23 14:30:00 EDT
647    Tag: Release_110_33
648    Description:
649    
650    New version number (110.33).  New bootfiles.
651    
652    ----------------------------------------------------------------------
653    Name: Matthias Blume
654    Date: 2001/05/22 18:06:00 EDT
655    Tag: blume-20010522-targets
656    Description:
657    
658    Made install.sh use file config/targets.customized if it exists, falling
659    back to config/targets if it doesn't.  This way one can have a customized
660    version of the targets file without touching the "real thing", thus
661    eliminating the constant fear of accidentally checking something bogus
662    back into the CVS repository...  (File config/targets.customized must
663    not be added to the repository!)
664    
665    ----------------------------------------------------------------------
666    Name: Matthias Blume
667    Date: 2001/05/22 16:30:00 EDT
668    Tag: blume-20010522-minitut
669    Description:
670    
671    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
672       struct returns.
673    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
674       incomplete, preliminary documentation for NLFFI.
675    
676    ----------------------------------------------------------------------
677    Name: Matthias Blume
678    Date: 2001/05/14 11:30:00 EDT
679    Tag: blume-20010514-script
680    Description:
681    
682    Some bugs in install script fixed.
683    
684    In addition to that I also made a slight change to the NLFFI API:
685    Functors generated by ml-nlffigen now take the dynamic library as a
686    straight functor argument, not as a suspended one.  (The original
687    functor code used to force the suspension right away anyway, so there
688    was nothing gained by this complication of the interface.)
689    
690    ----------------------------------------------------------------------
691    Name: Matthias Blume
692    Date: 2001/05/11 14:35:00 EDT
693    Tag: blume-20010511-ml-nlffi
694    Description:
695    
696    I finally took the plunge and added my new FFI code to the main
697    repository.  For x86-linux it is now ready for prime-time.
698    
699    There are two new subdirectories of "src":
700    
701      - ml-nlffi-lib:
702           The utility library for programs using the FFI interface.
703           Here is the implementation of $/c.cm and its associated low-level
704           partners $/c-int.cm and $/memory.cm.
705      - ml-nlffigen:
706           A stand-alone program for generating ML glue code from C source
707           code.
708    
709    Building ml-nlffigen requires $/ckit-lib.cm.
710    
711    The config/install.sh script has been updates to do the Right Thing
712    (hopefully).
713    
714    Notice that the source tree for the C-Kit will not be put under "src"
715    but directly under the installation root directory.  (This is the
716    structure that currently exists on the CVS server when you check out
717    module "sml".)  Fortunately, config/install.sh knows about this oddity.
718    
719    Bugs: No documentation yet.
720    
721    ----------------------------------------------------------------------
722    Name: Matthias Blume
723    Date: 2001/05/09 16:35:00 EDT
724    Tag: blume-20010509-cpscontract
725    Description:
726    
727    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
728    wrapper/unwrapper elimination did not decrement usage counts and some
729    dead variables got overlooked by the dead-up logic.)
730    
731    ----------------------------------------------------------------------
732    Name: Lal George
733    Date: 2001/05/08  17:26:09 EDT
734    Tag: george-20010508-omit-frameptr
735    Description:
736    
737    Changes to implement the omit-frame-pointer optimization to support
738    raw C calls. For now, there is only support on the Intel x86, but
739    other architectures will follow as more experience is gained with this.
740    
741    
742    ----------------------------------------------------------------------
743    Name: Matthias Blume
744    Date: 2001/05/07 14:40:00 EDT
745    Tag: blume-20010507-proxies
746    Description:
747    
748    I made into "proxy libraries" all libraries that qualify for such a
749    change.  (A qualifying library is a library that has another library or
750    groups as its sole member and repeats that member's export list
751    verbatim.  A proxy library avoids this repetition by omitting its export
752    list, effectively inheriting the list that its (only) member exports.
753    See the CM manual for more explanation.)
754    The main effect is that explicit export lists for these libraries
755    do not have to be kepts in sync, making maintenance a bit easier.
756    
757    I also added copyright notices to many .cm-files.
758    
759    Last but not least, I made a new set of bootfiles.
760    
761    ----------------------------------------------------------------------
762    Name: Matthias Blume
763    Date: 2001/05/04 17:00:00 EDT
764    Tag: blume-20010504-cm-lsplit
765    Description:
766    
767    0. John merged pending changes to $/smlnj-lib.cm
768    
769    1. Allen's previous change accidentally backed out of one of Lal's
770       earlier changes.  I undid this mistake (re-introducing Lal's change).
771    
772    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
773       within the compiler where applicable.  There is some code simplification
774       because of that.
775    
776    3. The "split" phase (in FLINT) is now part of the default list of phases.
777       Compiler.Control.LambdaSplitting.* can be used to globally control the
778       lambda-splitting (cross-module-inlining) engine.  In addition to that,
779       it can now also be controlled on a per-source basis: CM has been taught
780       a new tool parameter applicable to ML source files.
781    
782       - To turn lambda-splitting off completely:
783            local open Compiler.Control.LambdaSplitting in
784                val _ = set Off
785            end
786       - To make "no lambda-splitting" the global default (but allow per-source
787         overriding); this is the initial setting:
788            local open Compiler.Control.LambdaSplitting in
789                val _ = set (Default NONE)
790            end
791       - To make "lambda-splitting with aggressiveness a" the global default
792         (and allow per-source overriding):
793            local open Compiler.Control.LambdaSplitting in
794                val _ = set (Default (SOME a))
795            end
796    
797       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
798         write (in the respective .cm-file):
799            a.sml (lambdasplitting:off)
800       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
801            a.sml (lambdasplitting:on)
802       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
803         <a> is a decimal non-negative integer):
804            a.sml (lambdasplitting:<a>)
805       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
806            a.sml (lambdasplitting:infinity)
807       - To use the global default for a.sml:
808            a.sml (lambdasplitting:default)
809         or simply
810            a.sml
811    
812    ----------------------------------------------------------------------
813    Name: Allen Leung
814    Date: 2001/05/04 01:57:00 EDT
815    Tag: leunga-20010504-sync
816    Description:
817    
818      MLRISC features.
819    
820      1. Fix to CMPXCHG instructions.
821      2. Changed RA interface to allow annotations in callbacks.
822      3. Added a new method to the stream interface to allow annotations updates.
823    
824    ----------------------------------------------------------------------
825    Name: Matthias Blume
826    Date: 2001/05/01 11:45:00 EDT
827    Tag: blume-20010501-pcedittmp
828    Description:
829    
830    Changed install.sh to use the current working directory instead of
831    /usr/tmp for a temporary file (pcedittmp).  The previous choice
832    of /usr/tmp caused trouble with MacOS X because of file premission
833    problems.
834    
835    ----------------------------------------------------------------------
836    Name: Matthias Blume
837    Date: 2001/04/20 11:10:00 EDT
838    Tag: blume-20010420-inMLflag
839    Description:
840    
841     - added vp_limitPtrMask to vproc-state.h
842       (for use by the raw-C-calls mechanism to implement proper interrupt
843        handling)
844     - made the ML compiler aware of various data-structure offsets so it
845       can generate code for accessing the vp_inML flag and vp_limitPtrMask
846     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
847       raw C-calls
848    
849    ----------------------------------------------------------------------
850    Name: Lal George
851    Date: 2001/04/20 09:15:28 EDT
852    Tag: george-20010420-macosX
853    Description:
854    
855     - Changes to port to Mac OS X; Darwin.
856    
857     - In the process I found that sqrt was broken on the PPC, because the
858       fsqrt instruction is not implemented.
859    
860    ----------------------------------------------------------------------
861    Name: Matthias Blume
862  Date: 2001/04/18 12:45:00 EDT  Date: 2001/04/18 12:45:00 EDT
863  Tag: blume-20010418-ccalls  Tag: blume-20010418-ccalls
864  Description:  Description:
# Line 29  Line 874 
874   - made makeml script's verbosity level configurable via environment   - made makeml script's verbosity level configurable via environment
875     variable (MAKEML_VERBOSITY)     variable (MAKEML_VERBOSITY)
876    
877   - eliminteded placeholder implementations for f32l, w16s, i16s, and f32s   - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
878     in rawmem-x86.sml; we are now using the real thing     in rawmem-x86.sml; we are now using the real thing
879    
880  ----------------------------------------------------------------------  ----------------------------------------------------------------------

Legend:
Removed from v.808  
changed lines
  Added in v.905

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