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

Legend:
Removed from v.810  
changed lines
  Added in v.952

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