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

Legend:
Removed from v.833  
changed lines
  Added in v.972

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