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 653, Wed Jun 7 07:59:06 2000 UTC revision 903, Mon Aug 20 19:34:06 2001 UTC
# Line 11  Line 11 
11  Date:  Date:
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    
15    ----------------------------------------------------------------------
16    Name: Matthias Blume
17    Date: 2001/08/20 15:35:00 EDT
18    Tag: blume-20010820-debugprof
19    Description:
20    
21    !!!! NEW BOOTFILES !!!!
22    
23    This is another round of reorganizing the compiler sources.  This
24    time the main goal was to factor out all the "instrumentation"
25    passes (for profiling and backtracing) into their own library.
26    The difficulty was to do it in such a way that it does not depend
27    on elaborate.cm but only on elabdata.cm.
28    
29    Therefore there have been further changes to both elaborate.cm and
30    elabdata.cm -- more "generic" things have been moved from the former
31    to the latter.  As a result, I was forced to split the assignment
32    of numbers indicating "primtyc"s into two portions: SML-generic and
33    SML/NJ-specific.  Since it would have been awkward to maintain,
34    I bit the bullet and actually _changed_ the mapping between these
35    numbers and primtycs.  The bottom line of this is that you need
36    a new set of bin- and bootfiles.
37    
38    I have built new bootfiles for all architectures, so doing a fresh
39    checkout and config/install.sh should be all you need.
40    
41    The newly created library's name is
42    
43        $smlnj/viscomp/debugprof.cm
44    
45    and its sources live under
46    
47        src/compiler/DebugProf
48    
49    ----------------------------------------------------------------------
50    Name: Matthias Blume
51    Date: 2001/08/15 17:15:00 EDT
52    Tag: blume-20010815-compreorg
53    Description:
54    
55    This is a first cut at reorganizing the CM libraries that make up the
56    core of the compiler.  The idea is to separate out pieces that could
57    be used independently by tools, e.g., the parser, the typechecker, etc.
58    
59    The current status is a step in this direction, but it is not quite
60    satisfactory yet.  Expect more changes in the future.
61    
62    Here is the current (new) organization...
63    
64        What used to be $smlnj/viscomp/core.cm is now divided into
65        six CM libraries:
66    
67             $smlnj/viscomp/basics.cm
68                           /parser.cm
69                           /elabdata.cm
70                           /elaborate.cm
71                           /execute.cm
72                           /core.cm
73    
74        The CM files for these libraries live under src/system/smlnj/viscomp.
75        All these libraries are proxy libraries that contain precisely
76        one CM library component.  Here are the locations of the components
77        (all within the src/compiler tree):
78    
79             Basics/basics.cm
80             Parse/parser.cm
81             ElabData/elabdata.cm
82             Elaborator/elaborate.cm
83             Execution/execute.cm
84             core.cm
85    
86         [This organization is the same that has been used already
87         for a while for the architecture-specific parts of the visible
88         compiler and for the old version of core.cm.]
89    
90         As you will notice, many source files have been moved from their
91         respective original locations to a new home in one of the above
92         subtrees.
93    
94         The division of labor between the new libraries is the following:
95    
96             basics.cm:
97                - Simple, basic definitions that pertain to many (or all) of
98                  the other libraries.
99             parser.cm:
100                - The SML parser, producing output of type Ast.dec.
101                - The type family for Ast is also defined and exported here.
102             elabdata.cm:
103                - The datatypes that describe input and output of the elaborator.
104                  This includes types, absyn, and static environments.
105             elaborator.cm:
106                - The SML/NJ type checker and elaborator.
107                  This maps an Ast.dec (with a given static environment) to
108                  an Absyn.dec (with a new static environment).
109                - This libraries implements certain modules that used to be
110                  structures as functors (to remove dependencies on FLINT).
111             execute.cm:
112                - Everything having to do with executing binary code objects.
113                - Dynamic environments.
114             core.cm:
115                - SML/NJ-specific instantiations of the elaborator and MLRISC.
116                - Top-level modules.
117                - FLINT (this should eventually become its own library)
118    
119    Notes:
120    
121    I am not 100% happy with the way I separated the elaborator (and its
122    data structures) from FLINT.  Two instances of the same problem:
123    
124        1. Data structures contain certain fields that carry FLINT-specific
125           information.  I hacked around this using exn and the property list
126           module from smlnj-lib.  But the fact that there are middle-end
127           specific fields around at all is a bit annoying.
128    
129        2. The elaborator calculates certain FLINT-related information.  I tried
130           to make this as abstract as I could using functorization, but, again,
131           the fact that the elaborator has to perform calculations on behalf
132           of the middle-end at all is not nice.
133    
134        3. Having to used exn and property lists is unfortunate because it
135           weakens type checking.  The other alternative (parameterizing
136           nearly *everything*) is not appealing, though.
137    
138    I removed the "rebinding =" warning hack because due to the new organization
139    it was awkward to maintain it.  As a result, the compiler now issues some of
140    these warnings when compiling init.cmi during bootstrap compilation. On
141    the plus side, you also get a warning when you do, for example:
142       val op = = Int32.+
143    which was not the case up to now.
144    
145    I placed "assign" and "deref" into the _Core structure so that the
146    code that deals with the "lazy" keyword can find them there.  This
147    removes the need for having access to the primitive environment
148    during elaboration.
149    
150    ----------------------------------------------------------------------
151    Name: Matthias Blume
152    Date: 2001/08/13
153    Tag: blume-20010813-closures
154    Description:
155    
156    This fix was sent to us by Zhong Shao.  It is supposed to improve the
157    performance of certain loops by avoiding needless closure allocation.
158    
159    ----------------------------------------------------------------------
160    Name: Lal George
161    Date: 2001/07/31 10:03:23 EDT 2001
162    Tag: george-20010731-x86-fmalloc
163    Description: Fixed bug in x86 calls
164    
165        There was a bug where call instructions would mysteriously
166        vanish. The call instruction had to be one that returned
167        a floating point value.
168    
169    ----------------------------------------------------------------------
170    Name: Lal George
171    Date: 2001/07/19 16:36:29 EDT 2001
172    Tag: george-20010719-simple-cells
173    Description:
174    
175    I have dramatically simplified the interface for CELLS in MLRISC.
176    
177    In summary, the cells interface is broken up into three parts:
178    
179      1. CellsBasis : CELLS_BASIS
180    
181            CellsBasis is a top level structure and common for all
182            architectures.  it contains the definitions of basic datatypes
183            and utility  functions over these types.
184    
185      2. functor Cells() : CELLS
186    
187            Cells generates an interface for CELLS that incorporates the
188            specific resources on the target architecture, such as the
189            presence of special register classes, their number and size,
190            and various useful substructures.
191    
192      3. <ARCH>CELLS
193    
194            e.g. SparcCells: SPARCCELLS
195    
196            <ARCH>CELLS usually contains additional bindings for special
197            registers  on the architecture, such as:
198    
199                    val r0 : cell           (* register zero *)
200                    val y : cell            (* Y register *)
201                    val psr : cell          (* processor status register *)
202                    ...
203    
204            The structure returned by applying the Cells functor is opened
205            in this interface.
206    
207    The main implication of all this is that the datatypes for cells is
208    split between CellsBasis and CELLS -- a fairly simple change for user
209    code.
210    
211    In the old scheme the CELLS interface had a definitional binding of
212    the form:
213    
214            signature CELLS = sig
215    
216               structure CellsBasis = CellsBasis
217    
218               ...
219    
220            end
221    
222    With all the sharing constraints that goes on in MLRISC, this old
223    design  quickly leads to errors such as:
224    
225            "structure definition spec inside of sharing ... "
226    
227    
228    and appears to require an unacceptable amount of sharing and where
229    constraint hackery.
230    
231    I think this error message (the interaction of definitional specs and
232    sharing) requires more explanation on our web page.
233    
234    ----------------------------------------------------------------------
235    Name: Matthias Blume
236    Date: 2001/07/19 15:00:00 EDT
237    Tag: blume-20010719-libreorg
238    Description:
239    
240    This update puts together a fairly extensive but straightforward change
241    to the way the libraries that implement the interactive system are
242    organized:
243    
244       The biggest change is the elimination of structure Compiler.  As a
245       replacement for this structure, there is now a CM library
246       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
247       that exports all the substructures of the original structure Compiler
248       directly.  So instead of saying Compiler.Foo.bar one now simply
249       says Foo.bar.  (The CM libraries actually export a collection of
250       structures that is richer than the collection of substructures of
251       structure Compiler.)
252    
253       To make the transition smooth, there is a separate library called
254       $smlnj/compiler/compiler.cm which puts together and exports the
255       original structure Compiler (or at least something very close to it).
256    
257       There are five members of the original structure Compiler
258       that are not exported directly but which instead became members
259       of a new structure Backend (described by signature BACKEND).  These are:
260       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
261       Interact (: INTERACT), structure Machine (: MACHINE), and val
262       architecture (: string).
263    
264       Structure Compiler.Version has become structure CompilerVersion.
265    
266       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
267       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
268       or x86, respectively.
269       Each of these exports the same frontend structures that
270       $smlnj/compiler.cm exports.  But they do not have a structure Backend
271       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
272       Hppa, PPC, Sparc, or X86, respectively.
273    
274       Library $smlnj/compiler/all.cm exports the union of the exports of
275       $smlnj/compiler/<arch>.cm
276    
277       There are no structures <Arch>Compiler anymore, use
278       $smlnj/compiler/<arch>.cm instead.
279    
280       Library host-compiler-0.cm is gone.  Instead, the internal library
281       that instantiates CM is now called cm0.cm.  Selection of the host
282       compiler (backend) is no longer done here but. (Responsibility for it
283       now lies with $smlnj/compiler/current.cm.  This seems to be more
284       logical.)
285    
286       Many individual files have been moved or renamed.  Some files have
287       been split into multiple files, and some "dead" files have been deleted.
288    
289    Aside from these changes to library organization, there are also changes
290    to the way the code itself is organized:
291    
292       Structure Binfile has been re-implemented in such a way that it no
293       longer needs any knowledge of the compiler.  It exclusively deals
294       with the details of binfile layout.  It no longer invokes the
295       compiler (for the purpose of creating new prospective binfile
296       content), and it no longer has any knowledge of how to interpret
297       pickles.
298    
299       Structure Compile (: COMPILE) has been stripped down to the bare
300       essentials of compilation.  It no longer deals with linking/execution.
301       The interface has been cleaned up considerably.
302    
303       Utility routines for dealing with linking and execution have been
304       moved into their own substructures.
305    
306       (The ultimate goal of these changes is to provide a light-weight
307       binfile loader/linker (at least for, e.g., stable libraries) that
308       does not require CM or the compiler to be present.)
309    
310    CM documentation has been updated to reflect the changes to library
311    organization.
312    
313    ----------------------------------------------------------------------
314    Name: Matthias Blume
315    Date: 2001/07/10 17:30:00 EDT
316    Tag: Release_110_34
317    Description:
318    
319    Minor tweak to 110.34 (re-tagged):
320    
321      - README.html file added to CVS repository
322      - runtime compiles properly under FreeBSD 3.X and 4.X
323    
324    ----------------------------------------------------------------------
325    Name: Matthias Blume
326    Date: 2001/07/10 17:30:00 EDT
327    Tag: Release_110_34
328    Description:
329    
330    New version number (110.34). New bootfiles.
331    
332    ----------------------------------------------------------------------
333    Name: Matthias Blume
334    Date: 2001/07/09 16:00:00 EDT
335    Tag: blume-20010709-more-varargs
336    Description:
337    
338    I changed the handling of varargs in ml-nlffigen again:
339    The ellipsis ... will now simply be ignored (with an accompanying warning).
340    
341    The immediate effect is that you can actually call a varargs function
342    from ML -- but you can't actually supply any arguments beyond the ones
343    specified explicitly.  (For example, you can call printf with its format
344    string, but you cannot pass additional arguments.)
345    
346    This behavior is only marginally more useful than the one before, but
347    it has the advantage that a function or, more importantly, a function
348    type never gets dropped on the floor, thus avoiding follow-up problems with
349    other types that refer to the offending one.
350    
351    ----------------------------------------------------------------------
352    Name: Matthias Blume
353    Date: 2001/07/09 11:25:00 EDT
354    Tag: blume-20010709-varargs
355    Description:
356    
357    1. ckit-lib.cm now exports structure Error
358    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
359       with a warning accompanied by a source location.  Moreover, it
360       merely skips the offending function or type and proceeds with the
361       rest of its work.u  As a result, one can safely feed C code containing
362       "..." to ml-nlffigen.
363    3. There are some internal improvements to CM, providing slightly
364       more general string substitutions in the tools subsystem.
365    
366    ----------------------------------------------------------------------
367    Name: Matthias Blume
368    Date: 2001/06/27 15:10:00 EDT
369    Tag: blume-20010627-concur
370    Description:
371    
372    Fixed a small bug in CM's handling of parallel compilation.
373    (You could observe the bug by Control-C-interrupting an ordinary
374    CMB.make or CM.stabilize and then attaching some compile servers.
375    The result was that all of a sudden the previously interrupted
376    compilation would continue on its own.  This was because of
377    an over-optimization: CM did not bother to clean out certain queues
378    when no servers were attached "anyway", resulting in the contents
379    of these queues to grab control when new servers did get attached.)
380    
381    There is also another minor update to the CM manual.
382    
383    ----------------------------------------------------------------------
384    Name: Matthias Blume
385    Date: 2001/06/26 16:15:00 EDT
386    Tag: blume-20010626-cmdoc
387    Description:
388    
389    Minor typo fixed in CM manual (syntax diagram for libraries).
390    
391    ----------------------------------------------------------------------
392    Name: Matthias Blume
393    Date: 2001/06/25 22:55:00 EDT
394    Tag: blume-20010625-x86pc
395    Description:
396    
397    Fixed a nasty bug in the X86 assembly code that caused signal
398    handlers to fail (crash) randomly.
399    
400    ----------------------------------------------------------------------
401    Name: Matthias Blume
402    Date: 2001/06/25 12:05:00 EDT
403    Tag: blume-20010625-nlffigen
404    Description:
405    
406    This update fixes a number of minor bugs in ml-nlffigen as reported by
407    Nick Carter <nbc@andrew.cmu.edu>.
408    
409      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
410      2. Default names for generated files are now derived from the name of
411         the C file *without its directory*.  In particular, this causes generated
412         files to be placed locally even if the C file is in some system directory.
413      3. Default names for generated signatures and structures are also derived
414         from the C file name without its directory.  This avoids silly things
415         like "structure GL/GL".
416         (Other silly names are still possible because ml-nlffigen does not do
417          a thorough check of whether generated names are legal ML identifiers.
418          When in doubt, use command line arguments to force particular names.)
419    
420    ----------------------------------------------------------------------
421    Name: Matthias Blume
422    Date: 2001/06/21 12:25:00 EDT
423    Tag: blume-20010621-eXene
424    Description:
425    
426    eXene now compiles and (sort of) works again.
427    
428    The library name (for version > 110.33) is $/eXene.cm.
429    
430    I also added an new example in src/eXene/examples/nbody.  See the
431    README file there for details.
432    
433    ----------------------------------------------------------------------
434    Name: Matthias Blume
435    Date: 2001/06/20 16:40:00 EDT
436    Tag: blume-20010620-cml
437    Description:
438    
439    CML now compiles and works again.
440    
441    Libraries (for version > 110.33):
442    
443      $cml/cml.cm            Main CML library.
444      $cml/basis.cm          CML's version of $/basis.cm.
445      $cml/cml-internal.cm   Internal helper library.
446      $cml/core-cml.cm       Internal helper library.
447      $cml-lib/trace-cml.cm  Tracing facility.
448      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
449    
450    The installer (config/install.sh) has been taught how to properly
451    install this stuff.
452    
453    ----------------------------------------------------------------------
454    Name: Matthias Blume
455    Date: 2001/06/19 17:55:00 EDT
456    Tag: blume-20010619-instantiate
457    Description:
458    
459    This un-breaks the fix for bug 1432.
460    (The bug was originally fixed in 110.9 but I broke it again some
461    time after that.)
462    
463    ----------------------------------------------------------------------
464    Name: Matthias Blume
465    Date: 2001/06/19 17:25:00 EDT
466    Tag: blume-20010619-signals
467    Description:
468    
469    This should (hopefully) fix the long-standing signal handling bug.
470    (The runtime system was constructing a continuation record with an
471    incorrect descriptor which would cause the GC to drop data on the floor...)
472    
473    ----------------------------------------------------------------------
474    Name: Matthias Blume
475    Date: 2001/06/15 15:05:00 EDT
476    Tag: blume-20010615-moresparc
477    Description:
478    
479    Here is a short late-hour update related to Sparc c-calls:
480    
481     -- made handling of double-word arguments a bit smarter
482    
483     -- instruction selection phase tries to collapse certain clumsily
484        constructed ML-Trees; typical example:
485    
486            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
487    
488        This currently has no further impact on SML/NJ since mlriscGen does
489        not seem to generate such patterns in the first place, and c-calls
490        (which did generate them in the beginning) has meanwhile been fixed
491        so as to avoid them as well.
492    
493    ----------------------------------------------------------------------
494    Name: Matthias Blume
495    Date: 2001/06/15 15:05:00 EDT
496    Tag: blume-20010615-sparc
497    Description:
498    
499    The purpose of this update is to provide an implementation of NLFFI
500    on Sparc machines.
501    
502    Here are the changes in detail:
503    
504       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
505       the Sparc implementation of the c-calls API.
506       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
507       for accessing the ML frame.  Thus, we have a real frame pointer and
508       can freely modify %sp without need for an omit-frame-ptr phase.
509       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
510       this case.
511       * ml-nlffigen has been taught to produce code for different architectures
512       and calling conventions.
513       * In a way similar to what was done in the x86 case, the Sparc
514       backend uses its own specific extension to mltree.  (For example,
515       it needs to be able to generate UNIMP instructions which are part
516       of the calling convention.)
517       * ml-nlffi-lib was reorganized to make it more modular (in particular,
518       to make it easier to plug in new machine- and os-dependent parts).
519    
520    There are some other fairly unrelated bug fixes and cleanups as well:
521    
522       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
523       that they properly share their libraries with existing SML/NJ libraries.
524       * I fixed a minor cosmetic bug in CM, supressing certain spurious
525       follow-up error messages.
526       * Updates to CM/CMB documentation.
527    
528    TODO items:
529    
530       * MLRISC should use a different register as its asmTemp on the Sparc.
531         (The current %o2 is a really bad choice because it is part of the
532         calling conventions, so things might interfere in unexpected ways.)
533    
534    ----------------------------------------------------------------------
535    Name: Matthias Blume
536    Date: 2001/06/07
537    Tag: blume-20010607-calls
538    Description:
539    
540    A number of internal changes related to C calls and calling conventions:
541    
542    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
543       number of bytes popped implicitly (by the callee).  In most cases
544       this field is 0 but on x86/win32 it is some non-zero value.  This
545       is information provided for the benefit of the "omit-frameptr" pass.
546    2. The CALL instruction on the x86 carries a similar "pops" field.
547       The instruction selection phase copies its value from the ML-Tree
548       CALL statement.
549    3. On all other architectures, the instruction selection phase checks
550       whether "pops=0" and complains if not.
551    4. The c-calls implementation for x86 now accepts two calling conventions:
552       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
553       up after the call and pops is set to 0.  For "stdcall", the caller
554       does nothing, leaving the cleanup to the callee; pops is set to
555       the number of bytes that were pushed onto the stack.
556    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
557       distinguish between "ccall" and "stdcall".
558    6. The UNIMP instruction has been added to the supported Sparc instruction
559       set. (This is needed for implementing the official C calling convention
560       on this architecture.)
561    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
562       work with the latest CM.
563    
564    ----------------------------------------------------------------------
565    Name: Matthias Blume
566    Date: 2001/06/05 15:10:00 EDT
567    Tag: blume-20010605-cm-index
568    Description:
569    
570    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
571    
572    1. CM can now generate "index files".  These are human-readable files
573       that list on a per-.cm-file basis each toplevel symbol defined or
574       imported.  The location of the index file for
575       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
576       To enable index-file generation, set CM.Control.generate_index to true
577       or export an environment-symbol: export CM_GENERATE_INDEX=true.
578    
579       The CM manual has been updated accordingly.
580    
581    2. I made some slight modifications to the c-calls API in MLRISC.
582    
583         a) There is now a callback to support saving/restoring of
584            dedicated but caller-save registers around the actual call
585            instruction.
586         b) One can optionally specify a comment-annotation for the
587            call instruction.
588    
589    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
590       (For example, the comment annotation shows the C prototype of
591        the function being called.)
592    
593    ----------------------------------------------------------------------
594    Name: Matthias Blume
595    Date: 2001/06/01 13:30:00 EDT
596    Tag: blume-20010601-nlffi-cleanup
597    Description:
598    
599    This is mostly a cleanup of MLFFI stuff:
600    
601       - some signature files have been put into a more exposed place
602       - the ugly 'f type parameter is gone (simplifies types tremendously!)
603       - ml-nlffigen changed accordingly
604       - tutorial updated
605    
606    Other changes:
607    
608       - author's affiliation in CM manual(s) updated
609       - some more recognized keywords added to Allen's sml.sty
610    
611    ----------------------------------------------------------------------
612    Name: Matthias Blume
613    Date: 2001/05/25 15:30:00 EDT
614    Tag: blume-20010525-iptr
615    Description:
616    
617      - put the official 110.33-README (as it appears on the ftp server) under
618        CVS
619      - fixed a small bug related to incomplete pointer types in
620        ml-nlffigen
621      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
622        (it does not need the 'f type parameter)
623    
624    ----------------------------------------------------------------------
625    Name: Matthias Blume
626    Date: 2001/05/23 14:30:00 EDT
627    Tag: Release_110_33
628    Description:
629    
630    New version number (110.33).  New bootfiles.
631    
632    ----------------------------------------------------------------------
633    Name: Matthias Blume
634    Date: 2001/05/22 18:06:00 EDT
635    Tag: blume-20010522-targets
636    Description:
637    
638    Made install.sh use file config/targets.customized if it exists, falling
639    back to config/targets if it doesn't.  This way one can have a customized
640    version of the targets file without touching the "real thing", thus
641    eliminating the constant fear of accidentally checking something bogus
642    back into the CVS repository...  (File config/targets.customized must
643    not be added to the repository!)
644    
645    ----------------------------------------------------------------------
646    Name: Matthias Blume
647    Date: 2001/05/22 16:30:00 EDT
648    Tag: blume-20010522-minitut
649    Description:
650    
651    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
652       struct returns.
653    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
654       incomplete, preliminary documentation for NLFFI.
655    
656    ----------------------------------------------------------------------
657    Name: Matthias Blume
658    Date: 2001/05/14 11:30:00 EDT
659    Tag: blume-20010514-script
660    Description:
661    
662    Some bugs in install script fixed.
663    
664    In addition to that I also made a slight change to the NLFFI API:
665    Functors generated by ml-nlffigen now take the dynamic library as a
666    straight functor argument, not as a suspended one.  (The original
667    functor code used to force the suspension right away anyway, so there
668    was nothing gained by this complication of the interface.)
669    
670    ----------------------------------------------------------------------
671    Name: Matthias Blume
672    Date: 2001/05/11 14:35:00 EDT
673    Tag: blume-20010511-ml-nlffi
674    Description:
675    
676    I finally took the plunge and added my new FFI code to the main
677    repository.  For x86-linux it is now ready for prime-time.
678    
679    There are two new subdirectories of "src":
680    
681      - ml-nlffi-lib:
682           The utility library for programs using the FFI interface.
683           Here is the implementation of $/c.cm and its associated low-level
684           partners $/c-int.cm and $/memory.cm.
685      - ml-nlffigen:
686           A stand-alone program for generating ML glue code from C source
687           code.
688    
689    Building ml-nlffigen requires $/ckit-lib.cm.
690    
691    The config/install.sh script has been updates to do the Right Thing
692    (hopefully).
693    
694    Notice that the source tree for the C-Kit will not be put under "src"
695    but directly under the installation root directory.  (This is the
696    structure that currently exists on the CVS server when you check out
697    module "sml".)  Fortunately, config/install.sh knows about this oddity.
698    
699    Bugs: No documentation yet.
700    
701    ----------------------------------------------------------------------
702    Name: Matthias Blume
703    Date: 2001/05/09 16:35:00 EDT
704    Tag: blume-20010509-cpscontract
705    Description:
706    
707    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
708    wrapper/unwrapper elimination did not decrement usage counts and some
709    dead variables got overlooked by the dead-up logic.)
710    
711    ----------------------------------------------------------------------
712    Name: Lal George
713    Date: 2001/05/08  17:26:09 EDT
714    Tag: george-20010508-omit-frameptr
715    Description:
716    
717    Changes to implement the omit-frame-pointer optimization to support
718    raw C calls. For now, there is only support on the Intel x86, but
719    other architectures will follow as more experience is gained with this.
720    
721    
722    ----------------------------------------------------------------------
723    Name: Matthias Blume
724    Date: 2001/05/07 14:40:00 EDT
725    Tag: blume-20010507-proxies
726    Description:
727    
728    I made into "proxy libraries" all libraries that qualify for such a
729    change.  (A qualifying library is a library that has another library or
730    groups as its sole member and repeats that member's export list
731    verbatim.  A proxy library avoids this repetition by omitting its export
732    list, effectively inheriting the list that its (only) member exports.
733    See the CM manual for more explanation.)
734    The main effect is that explicit export lists for these libraries
735    do not have to be kepts in sync, making maintenance a bit easier.
736    
737    I also added copyright notices to many .cm-files.
738    
739    Last but not least, I made a new set of bootfiles.
740    
741    ----------------------------------------------------------------------
742    Name: Matthias Blume
743    Date: 2001/05/04 17:00:00 EDT
744    Tag: blume-20010504-cm-lsplit
745    Description:
746    
747    0. John merged pending changes to $/smlnj-lib.cm
748    
749    1. Allen's previous change accidentally backed out of one of Lal's
750       earlier changes.  I undid this mistake (re-introducing Lal's change).
751    
752    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
753       within the compiler where applicable.  There is some code simplification
754       because of that.
755    
756    3. The "split" phase (in FLINT) is now part of the default list of phases.
757       Compiler.Control.LambdaSplitting.* can be used to globally control the
758       lambda-splitting (cross-module-inlining) engine.  In addition to that,
759       it can now also be controlled on a per-source basis: CM has been taught
760       a new tool parameter applicable to ML source files.
761    
762       - To turn lambda-splitting off completely:
763            local open Compiler.Control.LambdaSplitting in
764                val _ = set Off
765            end
766       - To make "no lambda-splitting" the global default (but allow per-source
767         overriding); this is the initial setting:
768            local open Compiler.Control.LambdaSplitting in
769                val _ = set (Default NONE)
770            end
771       - To make "lambda-splitting with aggressiveness a" the global default
772         (and allow per-source overriding):
773            local open Compiler.Control.LambdaSplitting in
774                val _ = set (Default (SOME a))
775            end
776    
777       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
778         write (in the respective .cm-file):
779            a.sml (lambdasplitting:off)
780       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
781            a.sml (lambdasplitting:on)
782       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
783         <a> is a decimal non-negative integer):
784            a.sml (lambdasplitting:<a>)
785       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
786            a.sml (lambdasplitting:infinity)
787       - To use the global default for a.sml:
788            a.sml (lambdasplitting:default)
789         or simply
790            a.sml
791    
792    ----------------------------------------------------------------------
793    Name: Allen Leung
794    Date: 2001/05/04 01:57:00 EDT
795    Tag: leunga-20010504-sync
796    Description:
797    
798      MLRISC features.
799    
800      1. Fix to CMPXCHG instructions.
801      2. Changed RA interface to allow annotations in callbacks.
802      3. Added a new method to the stream interface to allow annotations updates.
803    
804    ----------------------------------------------------------------------
805    Name: Matthias Blume
806    Date: 2001/05/01 11:45:00 EDT
807    Tag: blume-20010501-pcedittmp
808    Description:
809    
810    Changed install.sh to use the current working directory instead of
811    /usr/tmp for a temporary file (pcedittmp).  The previous choice
812    of /usr/tmp caused trouble with MacOS X because of file premission
813    problems.
814    
815    ----------------------------------------------------------------------
816    Name: Matthias Blume
817    Date: 2001/04/20 11:10:00 EDT
818    Tag: blume-20010420-inMLflag
819    Description:
820    
821     - added vp_limitPtrMask to vproc-state.h
822       (for use by the raw-C-calls mechanism to implement proper interrupt
823        handling)
824     - made the ML compiler aware of various data-structure offsets so it
825       can generate code for accessing the vp_inML flag and vp_limitPtrMask
826     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
827       raw C-calls
828    
829    ----------------------------------------------------------------------
830    Name: Lal George
831    Date: 2001/04/20 09:15:28 EDT
832    Tag: george-20010420-macosX
833    Description:
834    
835     - Changes to port to Mac OS X; Darwin.
836    
837     - In the process I found that sqrt was broken on the PPC, because the
838       fsqrt instruction is not implemented.
839    
840    ----------------------------------------------------------------------
841    Name: Matthias Blume
842    Date: 2001/04/18 12:45:00 EDT
843    Tag: blume-20010418-ccalls
844    Description:
845    
846     - fixed two off-by-4 errors in the x86-specific c-calls implementation
847       (this bug prevented structure arguments containing pointers from being
848        passed correctly)
849     - changed the raw-C-call code in mlriscGen.sml in such a way that
850       structure arguments are represented as a pointer to the beginning
851       of the structure (instead of having a series of synthesized arguments,
852       one for each structure member)
853    
854     - made makeml script's verbosity level configurable via environment
855       variable (MAKEML_VERBOSITY)
856    
857     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
858       in rawmem-x86.sml; we are now using the real thing
859    
860    ----------------------------------------------------------------------
861    Name: Matthias Blume
862    Date: 2001/03/22 16:25:00 EST
863    Tag: blume-20010322-bootfiles
864    Description:
865    
866    Created a new set of bootfiles (for your automatic installation convenience).
867    
868    ----------------------------------------------------------------------
869    Name: Matthias Blume
870    Date: 2001/03/22 15:10:00 EST
871    Tag: blume-20010322-rawmem-parcm
872    Description:
873    
874    1. All "raw memory access" primitives for the new FFI are implemented now
875       (at least on the x86).
876    2. Some further cleanup of CM's parallel make mechanism.
877    
878    ----------------------------------------------------------------------
879    Name: Matthias Blume
880    Date: 2001/03/19 17:53:00 EST
881    Tag: blume-20010319-parallel
882    Description:
883    
884    Parallel make (using compile servers) now works again.
885    
886    To this end, CM.stabilize and CMB.make have been modified to work in
887    two passes when compile servers are attached:
888       1. Compile everything, do not perform stabilization; this pass
889          uses compile servers
890       2. Stabilize everything; this pass does not use compile servers
891    If there are no compile servers, the two passes are combined into one
892    (as before).  Splitting the passes increases the inherent parallelism
893    in the dependency graph because the entire graph including all
894    libraries is available at the same time.  This, in turn, improves
895    server utilization.  The downside is that the master process will
896    have to do some extra work after compilation is done (because for
897    technical reasons it must re-read all the binfiles during stabilization).
898    
899    ----------------------------------------------------------------------
900    Name: Matthias Blume
901    Date: 2001/03/16 12:22:00 EST
902    Tag: blume-20010316-bootfiles
903    Description:
904    
905    Created a new set of bootfiles (for your automatic installation convenience).
906    
907    ----------------------------------------------------------------------
908    Name: Matthias Blume
909    Date: 2001/03/16 11:00:00 EST
910    Tag: blume-20010316-MLTREE-fixup
911    Description:
912    
913    This is a minor fixup for an (untagged) earlier commit by Allen.
914    (A file was missing).
915    
916    ----------------------------------------------------------------------
917    Name: Allen Leung
918    Date: Mon Mar  5 18:54:57 EST 2001
919    Tag: leunga-20010305-cut-support
920    
921    1. New support for alternative control-flow in MLTREE.
922       Currently we support
923    
924          FLOW_TO(CALL ...., [k1,...,kn])
925    
926       This is needed for 'cuts to' in C-- and try/handle-like constructs
927       in Moby
928    
929       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
930    
931    2. Register Allocator
932    
933       Changes in interface [from Fermin, John]
934    
935    3. Alpha 8-bit SLL support [Fermin]
936    
937    4. All architectures
938    
939       A new module (ClusterExpandCopies) for expanding parallel copies.
940    
941    ----------------------------------------------------------------------
942    Name: Allen Leung
943    Date: 2001/02/27 23:07:00 EST
944    Tag: leunga-20010227-minor-stuff
945    
946    1. Alpha bug fix for CMOVNE
947    2. Handle mltree COND(..,FCMP ...,...)
948    3. Bug fix in simplifier
949    
950    ----------------------------------------------------------------------
951    Name: Matthias Blume
952    Date: 2001/01/30 17:50:00 EST
953    Tag: blume-20010130-sync
954    Description:
955    
956    This is just a minor update to sync my devel branch with the main brach.
957    The only visible change is the addition of some README files.
958    
959    ----------------------------------------------------------------------
960    Name: Matthias Blume
961    Date: 2001/01/12 23:30:00 JST
962    Tag: blume-20010112-bootfiles
963    Description:
964    
965    Made a new set of bootfiles that goes with the current state of the
966    repository.
967    
968    ----------------------------------------------------------------------
969    Name: Matthias Blume
970    Date: 2001/01/12 21:20:00 JST
971    Tag: blume-20010112-sync
972    Description:
973    
974    I am just flushing out some minor changes that had accumulated in
975    my private branch in order to sync with the main tree.  (This is
976    mainly because I had CVS trouble when trying to merge _into_ my
977    private branch.)
978    
979    Most people should be completely unaffected by this.
980    
981    ----------------------------------------------------------------------
982    Name: Allen Leung
983    Date: Thu Jan 11 21:03:00 EST 2001
984    Tag: leunga-20010111-labexp=mltree
985    Description:
986    
987    1.  Removed the type LabelExp and replace it by MLTree.
988    2.  Rewritten mltree-simplify with the pattern matcher tool.
989    3.  There were some bugs in alpha code generator which would break
990        64-bit code generation.
991    4.  Redo the tools to generate code with the
992    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
993        are now generated by perl scripts.
994    
995    ----------------------------------------------------------------------
996    Name: Matthias Blume
997    Date: 2001/01/10 21:55:00 JST
998    Tag: blume-20010110-rcc
999    Description:
1000    
1001    The RCC stuff now seems to work (but only on the x86).
1002    This required hacking of the c-calls interface (and -implementation) in
1003    MLRISC.
1004    
1005    Normal compiler users should be unaffected.
1006    
1007    ----------------------------------------------------------------------
1008    Name: Matthias Blume
1009    Date: 2001/01/09 01:20:00 JST
1010    Tag: blume-20010109-rcc
1011    Description:
1012    
1013    This is a fairly big patch, flushing out a large number of pending
1014    changes that I made to my development copy over the last couple of days.
1015    
1016    Of practical relevance at this moment is a workaround for a pickling
1017    bug that Allen ran into the other day.  The cause of the bug itself is
1018    still unknown and it might be hard to fix it properly, but the
1019    workaround has some merits of its own (namely somewhat reducing pickling
1020    overhead for certain libraries).  Therefore, I think this solution should
1021    be satisfactory at this time.
1022    
1023    The rest of the changes (i.e., the vast majority) has to do with my
1024    ongoing efforts of providing direct support for C function calls from
1025    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
1026    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
1027    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
1028    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
1029    handle RCC.
1030    
1031    The last part (the changes to mlriscGen.sml) are still known to be
1032    wrong on the x86 and not implemented on all other architectures.  But
1033    the infrastructure is in place. I had to change a few functor
1034    signatures in the backend to be able to route the CCalls interface
1035    from MLRISC there, and I had to specialize the mltree type (on the
1036    x86) to include the necessary extensions. (The extensions themselves
1037    were already there and redy to go in MLRISC/x86).
1038    
1039    Everything should be very happy as soon as someone helps me with
1040    mlriscGen.sml...
1041    
1042    In any case, nothing of this should matter to anyone as long as the
1043    new primop is not being used (which is going to be the case unless you
1044    find it where I hid it :). The rest of the compiler is completely
1045    unaffected.
1046    
1047    ----------------------------------------------------------------------
1048    Name: Matthias Blume
1049    Date: 2001/01/05 00:30:00 JST
1050    Tag: blume-20010105-primops
1051    Description:
1052    
1053    Added some experimental support for work that I am doing right now.
1054    These changes mostly concern added primops, but there is also a new
1055    experimental C library in the runtime system (but currently not enabled
1056    anywhere except on Linux/X86).
1057    
1058    In the course of adding primops (and playing with them), I discovered that
1059    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
1060    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
1061    To recover, I made type information in INL_PRIM mandatory and changed
1062    prim.sml as well as built-in.sml accordingly.  The InLine structure now
1063    has complete, correct type information (i.e., no bottom types).
1064    
1065    Since all these changes mean that we need new binfiles, I also bumped the
1066    version number to 110.32.1.
1067    
1068    ----------------------------------------------------------------------
1069    Name: Matthias Blume
1070    Date: 2000/12/30 22:10:00 JST
1071    Tag: blume-20001230-various
1072    Description:
1073    
1074    Added proxy libraries for MLRISC and let MLRISC libraries refer
1075    to each other using path anchors.  (See CM manual for explanation.)
1076    
1077    Updated CM documentation.
1078    
1079    Fixed some bugs in CM.
1080    
1081    Implemented "proxy" libraries (= syntactic sugar for CM).
1082    
1083    Added "-quiet" option to makeml and changed runtime system accordingly.
1084    
1085    Added cleanup handler for exportML to reset timers and compiler stats.
1086    
1087    ----------------------------------------------------------------------
1088    Name: Lal George
1089    Date: 2000/12/22 22:22:58 EST 2000
1090    Tag: Release_110_32
1091    Description:
1092    
1093            Infinite precision used throughout MLRISC.
1094            see MLRISC/mltree/machine-int.sig
1095    
1096    ----------------------------------------------------------------------
1097    Name: Matthias Blume
1098    Date: 2000/12/22 23:16:00 JST
1099    Tag: blume-20001222-warn
1100    Description:
1101    
1102    Corrected wording and formatting of some CM warning message which I
1103    broke in my previous patch.
1104    
1105    ----------------------------------------------------------------------
1106    Name: Matthias Blume
1107    Date: 2000/12/22 21:20:00 JST
1108    Tag: blume-20001222-anchorenv
1109    Description:
1110    
1111    Fixed CM's handling of anchor environments in connection with CMB.make.
1112    
1113    ----------------------------------------------------------------------
1114    Name: Matthias Blume
1115    Date: 2000/12/22 13:15:00 JST
1116    Tag: blume-20001222-cleanup
1117    Description:
1118    
1119    Removed src/cm/ffi which does not (and did not) belong here.
1120    
1121    ----------------------------------------------------------------------
1122    Name: Matthias Blume
1123    Date: 2000/12/21 23:55:00 JST
1124    Tag: blume-20001221-exn
1125    Description:
1126    
1127    Probably most important: CM no longer silently swallows all exceptions
1128    in the compiler.
1129    Plus: some other minor CM changes.  For example, CM now reports some
1130    sizes for generated binfiles (code, data, envpickle, lambdapickle).
1131    
1132    ----------------------------------------------------------------------
1133    Name: Matthias Blume
1134    Date: 2000/12/15 00:01:05 JST
1135    Tag: blume-20001215-dirtool
1136    Description:
1137    
1138    - "dir" tool added.
1139    - improvements and cleanup to Tools structure
1140    - documentation updates
1141    
1142    ----------------------------------------------------------------------
1143    Name: Allen Leung
1144    Date: Thu Dec 14 03:45:24 EST 2000
1145    Description:
1146    Tag:  leunga-20001214-int-inf
1147    Description:
1148    
1149       In IntInf, added these standard functions, which are missing from our
1150    implementation:
1151    
1152        andb : int * int -> int
1153        xorb : int * int -> int
1154        orb  : int * int -> int
1155        notb : int -> int
1156         <<   : int * word -> int
1157        ~>>  : int * word -> int
1158    
1159       Not tested, I hope they are correct.
1160    
1161    ----------------------------------------------------------------------
1162    Name: Allen Leung
1163    Date: Fri Dec  8 19:23:26 EST 2000
1164    Description:
1165    Tag:  leunga-20001208-nowhere
1166    Description:
1167    
1168      Slight improvements to the 'nowhere' tool to handle OR-patterns,
1169    to generate better error messages etc.  Plus a brief manual.
1170    
1171    ----------------------------------------------------------------------
1172    Name: Lal George
1173    Date: 2000/12/08 09:54:02 EST 2000
1174    Tag: Release_110_31
1175    Description:
1176    
1177    - Version 110.31
1178    ----------------------------------------------------------------------
1179    Name: Allen Leung
1180    Date: Thu Dec  7 22:01:04 EST 2000
1181    Tag:  leunga-20001207-cell-monster-hack
1182    Description:
1183    
1184    Major MLRISC internal changes.  Affect all clients.
1185    Summary:
1186    
1187    1.  Type CELLS.cell = int is now replaced by a datatype.
1188        As a result, the old regmap is now gone.  Almost all interfaces
1189        in MLRISC change as a consequence.
1190    
1191    2.  A new brand version of machine description tool (v3.0) that generates
1192        modules expecting the new interface.  The old version is removed.
1193    
1194    3.  The RA interface has been further abstracted into two new functors.
1195        RISC_RA and X86RA.  These functors have much simpler interfaces.
1196        [See also directory MLRISC/demo.]
1197    
1198    4.  Some other new source->source code generation tools are available:
1199    
1200        a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
1201        b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
1202           I use this tool to generate the peephole optimizers---with the new
1203           cell type changes, peephole rules are becoming difficult to write
1204           without conditional pattern matching.
1205    
1206    5.  More Intmap -> IntHashTable change.  Previous changes by Matthias didn't
1207        cover the entire MLRISC source tree so many things broke.
1208    
1209    6.  CM files have been moved to the subdirectory MLRISC/cm.
1210        They are moved because there are a lot of them and they clutter up the
1211        root dir.
1212    
1213    7.  More detailed documentation to come...
1214    
1215        NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
1216        a makeml -rebuild first.  This is because of other other
1217        changes that Matthias has made (see below).
1218    
1219    
1220    ----------------------------------------------------------------------
1221    Name: Matthias Blume
1222    Date: 2000/11/30 23:12:00 JST
1223    Tag: blume-20001130-filereorg
1224    Description:
1225    
1226    Some manual updates and some file reorganizations in CM.
1227    
1228    ----------------------------------------------------------------------
1229    Name: Matthias Blume
1230    Date: 2000/11/24 17:45:00 JST
1231    Tag: blume-20001124-link
1232    Description:
1233    
1234    Drastically improved link traversal code for the case that the dynamic
1235    value was already loaded at bootstrap time.  As a result, CM and CMB
1236    now both load blazingly fast -- even on a very slow machine.  Also,
1237    memory consumption has been further reduced by this.
1238    
1239    Warning: The format of the PIDMAP file has changed.  THerefore, to
1240    bootstrap you have to do this:
1241    
1242    1. Run CMB.make
1243    2. Make a symbolic link for the boot directory:
1244         ln -s sml.boot.ARCH-OS xxx
1245    3. "Rebuild" the boot directory:
1246         ./makeml -boot xxx -rebuild sml ; rm xxx
1247    4. Boot normally:
1248          ./makeml
1249    
1250    ----------------------------------------------------------------------
1251    Name: Matthias Blume
1252    Date: 2000/11/21 21:20:00 JST
1253    Tag: blume-20001121-tools
1254    Description:
1255    
1256    Continued hacking on autoloading problem -- with success this time.
1257    Also changed tool-plugin mechanism.  See new CM manual.
1258    
1259    ----------------------------------------------------------------------
1260    Name: Matthias Blume
1261    Date: 2000/11/19 14:30:00 JST
1262    Tag:  blume-20001119-autoload
1263    Description:
1264    
1265    Some hacking to make autoloading faster.  Success for CMB, no success
1266    so far for CM.  There is a reduced structure CM' that autoloads faster.
1267    (This is a temporary, non-documented hack to be eliminated again when
1268    the general problem is solved.)
1269    
1270    ----------------------------------------------------------------------
1271    Name: Matthias Blume
1272    Date: 2000/11/17 14:10:00 JST
1273    Tag: blume-20001117-pickle-lib
1274    Description:
1275    
1276    1. Eliminated comp-lib.cm
1277    2. Made pickle-lib.cm
1278    3. Eliminated all uses of intset.sml (from comp-lib.cm)
1279    4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
1280       equivalent constructs from smlnj-lib.cm (INtHashTable).
1281    5. Point 4. also goes for those uses of intmap.* in MLRISC.
1282       Duplicated intmap modules thrown out.
1283    6. Hunted down all duplicated SCC code and replaced it with
1284       equivalent stuff (GraphSCCFn from smlnj-lib.cm).
1285    7. Rewrote Feedback module.
1286    8. Moved sortedlist.sml into viscomp-lib.cm.  Eventually it
1287       should be thrown out and equivalent modules from smlnj-lib.cm
1288       should be used (IntRedBlackSet, IntListSet, ...).
1289    
1290    Confirmed that compiler compiles to fixpoint.
1291    
1292    ----------------------------------------------------------------------
1293    Name: Allen Leung
1294    Date: 2000/11/10 18:00:00
1295    Tag: leunga-20001110-new-x86-fp
1296    
1297    A new x86 floating point code generator has been added.
1298    By default this is turned off.  To turn this on, do:
1299    
1300        CM.autoload "$smlnj/compiler.cm";
1301        Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
1302    
1303    Changes:
1304    
1305    1.  Changed FTAN to FPTAN so that the assembly output is correct.
1306    2.  Changed the extension callback for FTANGENT to generate:
1307    
1308              fptan
1309              fstp  %st(0)
1310        instead of
1311              fptan
1312              fstpl ftempmem
1313    
1314    3.  Numerous assembly fixes for x86.
1315    
1316    5.  Cleaned up the machine code output module x86/x86MC.sml and added
1317        support for a whole bunch of instructions and addressing modes:
1318    
1319          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st, %st(n)
1320          faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp  %st, %st(n)
1321          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st(n), %st
1322          fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
1323          fxch %st(n)
1324          fld %st(n)
1325          fst %st(n)
1326          fst mem
1327          fstp %st(n)
1328          fucom %st(n)
1329          fucomp %st(n)
1330    
1331        All these are now generated when the fast fp mode is turned on.
1332    
1333    6.  Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
1334    
1335    ----------------------------------------------------------------------
1336    Name: Matthias Blume
1337    Date: 2000/11/09 11:20:00 JST
1338    Tag: blume-20001109-scc
1339    Description:
1340    
1341    Eliminated some code duplication:
1342    
1343    1. Added "where" clause to GraphSCCFn in SML/NJ Library.
1344       (Otherwise the functor is useless.)
1345    2. Used GraphSCCFn where SCCUtilFun was used previously.
1346    3. Got rid of SCCUtilFun (in comp-lib.cm).
1347    
1348    ----------------------------------------------------------------------
1349    Name: Lal George
1350    Date: 2000/11/06 09:02:21 EST 2000
1351    Tag: Release_110_30
1352    Description:
1353    
1354    - Version 110.30
1355    ----------------------------------------------------------------------
1356    Name: Matthias Blume
1357    Date: 2000/11/04 14:45:00
1358    Tag: blume-20001104-mlbuild
1359    Description:
1360    
1361    - Made ml-build faster on startup.
1362    - Documentation fixes.
1363    
1364    ----------------------------------------------------------------------
1365    Name: Matthias Blume
1366    Date: 2000/11/02 17:00:00 JST
1367    Tag: blume-20001102-condcomp
1368    Description:
1369    
1370    - Small tweaks to pickler -- new BOOTFILES!
1371    - Version bumped to 110.29.2.
1372    - Added conditional compilation facility to init.cmi (see comment there).
1373    ----------------------------------------------------------------------
1374    Name: Allen Leung
1375    Date: 2000/10/23 19:31:00
1376    Tag: leunga-20001023-demo-ra
1377    
1378    1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
1379    2. Test programs for the graph library updated
1380    3. Some new MLRISC demo programs added
1381    
1382    ----------------------------------------------------------------------
1383    Name: Matthias Blume
1384    Date: 2000/08/31 22:15:00 JST
1385    Tag: blume-20001017-errmsg
1386    Description:
1387    
1388    More error message grief: Where there used to be no messages, there
1389    now were some that had bogus error regions.  Fixed.
1390    
1391    ----------------------------------------------------------------------
1392    Name: Matthias Blume
1393    Date: 2000/08/31 17:30:00 JST
1394    Tag: blume-20001017-v110p29p1
1395    Description:
1396    
1397    I made a version 110.29.1 with new bootfiles.
1398    
1399    Changes:  Modified pickler/unpickler for faster and leaner unpickling.
1400              CM documentation changes and a small bugfix in CM's error reporting.
1401    
1402    ----------------------------------------------------------------------
1403    Name: Lal George
1404    Date: 2000/09/27 14:42:35 EDT
1405    Tag: george-20000927-nodestatus
1406    Description:
1407    
1408    Changed the type of the nodestatus, so that:
1409    
1410            SPILLED(~1)             is now SPILLED
1411            SPILLED(m) where m>=0   is now MEMREG(m)
1412            SPILLED(s) where s<~1   is now SPILL_LOC(~s)
1413    
1414    ----------------------------------------------------------------------
1415    Name: Matthias Blume
1416    Date: 2000/09/07 14:45:00 JST
1417    Tag: blume-20000907-cmerrmsg
1418    Description:
1419    
1420    Small tweak to CM to avoid getting ML syntax error messages twice.
1421    
1422    ----------------------------------------------------------------------
1423    Name: Matthias Blume
1424    Date: 2000/08/31 18:00:00 JST
1425    Tag: blume-20000831-cvsbootfiles
1426    Description:
1427    
1428    New URL for boot files (because the 110.29 files on the BL server do
1429    now work correctly with my updated install scripts for yacc and lex).
1430    
1431    ----------------------------------------------------------------------
1432    Name: Matthias Blume
1433    Date: 2000/08/08 12:33:00 JST
1434    Tag: blume-20000808-manual
1435    Description:
1436    
1437    Tiny update to CM manual.
1438    
1439    ----------------------------------------------------------------------
1440    Name: Allen Leung
1441    Date: 2000/08/7 19:31:00
1442    Tag: leunga-20000807-a-whole-bunch-of-stuff
1443    
1444      Moby, C--, SSA, x86, machine descriptions etc.  Should only affect C--
1445    and Mobdy.
1446    
1447    1.  x86
1448    
1449       a.  Fixes to peephole module by John and Dan.
1450       b.  Assembly fix to SETcc by Allen.
1451       c.  Fix to c-call by John.
1452       d.  Fix to spilling by John.  (This one deals with the missing FSTPT case)
1453       e.  Instruction selection optimization to SETcc as suggested by John.
1454    
1455           For example,
1456    
1457            MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
1458    
1459           should generate:
1460    
1461            MOVL a, x
1462            SUBL b, x
1463            SHRL 31, x
1464    
1465    2.  IR stuff
1466    
1467         A bunch of new DJ-graph related algorithms added.  These
1468         speed up SSA construction.
1469    
1470    3.  SSA + Scheduling
1471    
1472         Added code for SSA and scheduling to the repository
1473    
1474    ----------------------------------------------------------------------
1475    Name: Lal George
1476    Date: 2000/07/27 11:53:14 EDT
1477    
1478    Tag: lal-20000727-linux-ppc
1479    Description:
1480    
1481     Made changes to support Linux PPC.
1482     p.s. I have confirmation that the 110.29 boot files work fine.
1483    
1484    ----------------------------------------------------------------------
1485    Name: Matthias Blume
1486    Date: 2000/07/27 17:40:00 JST
1487    Tag: blume-20000727-scripts
1488    Description:
1489    
1490    !!!! WARNING !!!!
1491    You must recompile the runtime system!
1492    !!!! WARNING !!!!
1493    
1494    This is basically another round of script-enhancements:
1495    
1496    1. sml, ml-build, and ml-makedepend accept options -D and -U to define
1497       and undefine CM preprocessor symbols.
1498    
1499    2. ml-build avoids generating a new heap image if it finds that the
1500       existing one is still ok.  (The condition is that no ML file had to
1501       be recompiled and all ML files are found to be older that the heap
1502       file.)
1503    
1504       To make this work smoothly, I also hacked the runtime system as
1505       well as SMLofNJ.SysInfo to get access to the heap image suffix
1506       (.sparc-solaris, ...) that is currently being used.
1507    
1508       Moreover, the signature of CM.mk_standalone has changed.  See the
1509       CM manual.
1510    
1511    3. ml-makedepend accepts additional options -n, -a, and -o.  (See the
1512       CM manual for details.)
1513    
1514    4. More CM manual updates:
1515        - all of the above has been documented.
1516        - there is now a section describing the (CM-related) command line
1517          arguments that are accepted by the "sml" command
1518    
1519    ----------------------------------------------------------------------
1520    Name: Matthias Blume
1521    Date: 2000/07/25 16:20:00 JST
1522    Tag: blume-20000725-makedepend
1523    Description:
1524    
1525    Added a script called ml-makedepend.  This can be used in makefiles
1526    for Unix' make in a way very similar to the "makedepend" command for
1527    C.
1528    
1529    The script internally uses function CM.sources.
1530    
1531    Synopsis:
1532    
1533        ml-makedepend [-f makefile] cmfile targetname
1534    
1535    The default for the makefile is "makefile" (or "Makefile" should
1536    "makefile" not exist).
1537    
1538    ml-makedepend adds a cmfile/targetname-specific section to this
1539    makefile (after removing the previous version of this section).  The
1540    section contains a single dependency specification with targetname on
1541    the LHS (targetname is an arbitrary name), and a list of files derived
1542    from the cmfile on the RHS.  Some of the files on the RHS are
1543    ARCH/OPSYS-specific.  Therefore, ml-makedepend inserts references to
1544    "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
1545    path names.  The makefile writer is responsible for making sure that
1546    these variables have correct at the time "make" is invoked.
1547    
1548    ----------------------------------------------------------------------
1549    Name: Matthias Blume
1550    Date: 2000/07/22 23:30:00 JST
1551    Tag: blume-20000722-urlupdate
1552    Description:
1553    
1554    Changed BOOT and config/srcarchiveurl to point to BL server:
1555    
1556        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
1557    
1558    ----------------------------------------------------------------------
1559    Name: Matthias Blume
1560    Date: 2000/07/18 18:00:00 JST
1561    Tag: blume-20000718-Version_110_29
1562    Description:
1563    
1564    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
1565    
1566    2. Updated config/version to 110.29
1567    
1568    3. Updated config/srcarchiveurl
1569    
1570    3. New boot files!
1571       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
1572    
1573    ----------------------------------------------------------------------
1574    Name: Matthias Blume
1575    Date: 2000/07/11 13:58:00 JST
1576    Tag: blume-20000711-doctypo
1577    Description:
1578    
1579    Fixed a few typos in CM manual.
1580    
1581    ----------------------------------------------------------------------
1582    Name: Allen Leung
1583    Date: 2000/06/15 00:38:00
1584    Tag: leunga-20000704-sparc-x86
1585    
1586    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
1587    2. fix to x86 RET bug [found by Dan Grossman]
1588    3. sparc assembly bug fix for ticc instructions [found by Fermin]
1589    
1590       Affects c-- and moby only
1591    
1592    ----------------------------------------------------------------------
1593    Name: Matthias Blume
1594    Date: 2000/07/04 15:26:00
1595    Tag: blume-20000704-trigger
1596    Description:
1597    
1598    1. Improvements to CM manual.
1599    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
1600       of getting a back-trace.  The function, when called, raises an
1601       internal exception which explicitly carries the full back-trace history,
1602       so it is unaffected by any intervening handle-raise pairs ("trivial"
1603       or not).  The interactive loop will print that history once it arrives
1604       at top level.
1605       Short of having all exceptions implicitly carry the full history, the
1606       recommended way of using this facility is:
1607         - compile your program with instrumentation "on"
1608         - run it, when it raises an exception, look at the history
1609         - if the history is "cut off" because of some handler, go and modify
1610           your program so that it explicitly calls BTrace.trigger
1611         - recompile (still instrumented), and rerun; look at the full history
1612    
1613    ----------------------------------------------------------------------
1614    Name: Matthias Blume
1615    Date: 2000/07/03 15:36:00 JST
1616    Tag: blume-20000702-manual
1617    Description:
1618    
1619    Small corrections and updates to CM manual.
1620    
1621    ----------------------------------------------------------------------
1622    Name: Matthias Blume
1623    Date: 2000/06/29 16:04:00 JST
1624    Tag: blume-20000629-yacctool
1625    Description:
1626    
1627    Changes:
1628    
1629    1. Class "mlyacc" now takes separate arguments to pass options to
1630       generated .sml- and .sig-files independently.
1631    2. Corresponding CM manual updates.
1632    3. BTrace module now also reports call sites.  (However, for loop clusters
1633       it only shows from where the cluster was entered.)  There are associated
1634       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
1635    
1636    ----------------------------------------------------------------------
1637    Name: Matthias Blume
1638    Date: 2000/06/27 16:51:00 JST
1639    Tag: blume-20000627-noweb
1640    Description:
1641    
1642    Changes:
1643    
1644     1. Implemented "subdir" and "witness" options for noweb tool.
1645        This caused some slight internal changes in CM's tool implementation.
1646     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
1647        some remaining issues from earlier path anchor changes.
1648     3. Updated CM manual accordingly.
1649    
1650     4. Changed implementation of back-tracing so that I now consider it
1651        ready for prime-time.
1652    
1653        In particular, you don't have to explicitly trigger the back-trace
1654        anymore.  Instead, if you are running BTrace-instrumented code and
1655        there is an uncaught exception (regardless of whether or not it was
1656        raised in instrumented code), the top-level evalloop will print
1657        the back-trace.
1658    
1659        Features:
1660    
1661          - Instrumented and uninstrumented code work together seemlessly.
1662            (Of course, uninstrumented code is never mentioned in actual
1663             back-traces.)
1664    
1665          - Asymptotic time- and space-complexity of instrumented code is
1666            equal to that of uninstrumented code.  (This means that
1667            tail-recursion is preserved by the instrumentation phase.)
1668    
1669          - Modules whose code has been instrumented in different sessions
1670            work together without problem.
1671    
1672          - There is no penalty whatsoever on uninstrumented code.
1673    
1674          - There is no penalty on "raise" expressions, even in
1675            instrumented code.
1676    
1677        A potential bug (or perhaps it is a feature, too):
1678    
1679          A back-trace reaches no further than the outermost instrumented
1680          non-trivial "raise".  Here, a "trivial" raise is one that is the
1681          sole RHS of a "handle" rule.  Thus, back-traces reach trough
1682    
1683               <exp> handle e => raise e
1684    
1685          and even
1686    
1687               <exp> handle Foo => raise Bar
1688    
1689          and, of course, through
1690    
1691               <exp> handle Foo => ...
1692    
1693         if the exception was not Foo.
1694    
1695         Back-traces always reach right through any un-instrumented code
1696         including any of its "handle" expressions, trivial or not.
1697    
1698       To try this out, do the following:
1699    
1700         - Erase all existing binfiles for your program.
1701           (You may keep binfiles for those modules where you think you
1702            definitely don't need back-tracing.)
1703         - Turn on back-trace instrumentation:
1704              SMLofNJ.Internals.BTrace.mode (SOME true);
1705         - Recompile your program.  (I.e., run "CM.make" or "use".)
1706         - You may now turn instrumentation off again (if you want):
1707              SMLofNJ.Internals.BTrace.mode (SOME false);
1708         - Run your program as usual.  If it raises an exception that
1709           reaches the interactive toplevel, then a back-trace will
1710           automatically be printed.  After that, the toplevel loop
1711           will print the exception history as usual.
1712    
1713    ----------------------------------------------------------------------
1714    Name: Matthias Blume
1715    Date: 2000/06/26 09:56:46 JST
1716    Tag: blume-20000626-setup
1717    Description:
1718    
1719    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
1720          ML code before and after compiling a file (e.g., to set compiler
1721          flags)
1722    
1723    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
1724              - associated changes to btrace.sml (BTrace instrumentation pass)
1725              - cleaner implementation of btimp.sml (BTrace tracing and report
1726                module)
1727    
1728    CM manual: * new path encoding documented
1729               * description of setup-parameter to "sml" added
1730    
1731    The biggest user-visible change to back-tracing is that it is no
1732    longer necessary to compile all traced modules within the same
1733    session.  (This was a real limitation.)
1734    
1735    ----------------------------------------------------------------------
1736    Name: Matthias Blume
1737    Date: 2000/06/24 12:40:00 JST
1738    Tag: blume-20000624-startup
1739    Description:
1740    
1741    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
1742    bit too often -- to put it mildly. :)
1743    
1744    ----------------------------------------------------------------------
1745    Name: Matthias Blume
1746    Date: 2000/06/23 18:20:00 JST
1747    Tag: blume-20000623-btrace
1748    Description:
1749    
1750    This updates adds a backtrace facility to aid programmers in debugging
1751    their programs.  This involves the following changes:
1752    
1753    1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
1754       keeping track of the current call stack.  When programs are compiled
1755       in a special mode, the compiler will insert calls to these hooks
1756       into the user program.
1757       "Hook" means that it is possible for different implementations of
1758       back-tracing to register themselves (at different times).
1759    
1760    2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
1761       as an Absyn.dec->Absyn.dec rewrite.  Normally this phase is turned off.
1762       It can be turned on using this call:
1763         SMLofNJ.Internals.BTrace.mode (SOME true);
1764       Turning it off again:
1765         SMLofNJ.Internals.BTrace.mode (SOME false);
1766       Querying the current status:
1767         SMLofNJ.Internals.BTrace.mode NONE;
1768       Annotated programs are about twice as big as normal ones, and they
1769       run a factor of 2 to 4 slower with a dummy back-trace plugin (one
1770       where all hooks do nothing).  The slowdown with a plugin that is
1771       actually useful (such as the one supplied by default) is even greater,
1772       but in the case of the default plugin it is still only an constant
1773       factor (amortized).
1774    
1775    3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
1776       with a sub-structure BTrace for controlling back-tracing.  In particular,
1777       the above-mentioned function "mode" controls whether the annotation
1778       phase is invoked by the compiler.  Another important function is
1779       "trigger": when called it aborts the current execution and causes
1780       the top-level loop to print a full back-trace.
1781    
1782    4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
1783       for back-tracing.  It keeps track of the dynamic call stack and in
1784       addition to that it keeps a partial history at each "level" of that
1785       stack.  For example, if a tail-calls b, b tail-calls c, and c tail-calls
1786       d and b (at separate times, dynamically), then the report will show:
1787    
1788       GOTO   d
1789             /c
1790       GOTO  \b
1791       CALL   a
1792    
1793       This shows that there was an initial non-tail call of a, then a
1794       tail-call to b or c, looping behavior in a cluster of functions that
1795       consist of b and c, and then a goto from that cluster (i.e., either from
1796       b or from c) to d.
1797    
1798       Note that (depending on the user program) the amount of information
1799       that the back-trace module has to keep track of at each level is bounded
1800       by a constant.  Thus, the whole implementation has the same asymptotical
1801       complexity as the original program (both in space and in time).
1802    
1803    5. compiler/TopLevel/interact/evalloop.sml has been modified to
1804       handle the special exception SMLofNJ.Internals.BTrace.BTrace
1805       which is raised by the "trigger" function mentioned above.
1806    
1807    Notes on usage:
1808    
1809    - Annotated code works well together with unannotated code:
1810    Unannotated calls simply do not show up at all in the backtrace.
1811    
1812    - It is not a good idea to let modules that were annotated during
1813    different sessions run at the same time.  This is because the compiler
1814    chooses small integers to identify individual functions, and there
1815    will be clashes if different modules were compiled in separate sessions.
1816    (Nothing will crash, and you will even be told about the clashes, but
1817    back-trace information will in general not be useful.)
1818    
1819    - Back-tracing can be confused by callcc and capture.
1820    
1821    - The only way of getting a back-trace right now is to explicitly
1822    invoke the "trigger" function from your user program.  Eventually, we
1823    should make every exception carry back-trace information (if
1824    available).  But since this creates more overhead at "raise"-time
1825    (similar to the current exnHistory overhead), I have not yet
1826    implemented this.  (The implementation will be rather easy.)  With
1827    exceptions carrying back-trace information, this facility will be even
1828    more useful because users don't need to modify their programs...
1829    
1830    - While it is possible to compile the compiler with back-trace
1831    annotations turned on (I did it to get some confidence in
1832    correctness), you must make absolutely sure that core.sml and
1833    btimp.sml are compiled WITHOUT annotation!  (core.sml cannot actually
1834    be compiled with annotation because there is no core access yet, but
1835    if you compile btimp.sml with annotation, then the system will go into
1836    an infinite recursion and crash.)
1837    Since CM currently does not know about BTrace, the only way to turn
1838    annotations on and off for different modules of the compiler is to
1839    interrupt CMB.make, change the settings, and re-invoke it.  Of course,
1840    this is awkward and clumsy.
1841    
1842    Sample sessions:
1843    
1844    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
1845    - SMLofNJ.Internals.BTrace.mode (SOME true);
1846    [autoloading]
1847    [autoloading done]
1848    val it = false : bool
1849    - structure X = struct
1850    -     fun main n = let
1851    -         fun a (x, 0) = d x
1852    -           | a (x, n) = b (x, n - 1)
1853    -         and b (x, n) = c (x, n)
1854    -         and c (x, n) = a (x, n)
1855    -         and d x = e (x, 3)
1856    -         and e (x, 0) = f x
1857    -           | e (x, n) = e (x, n - 1)
1858    -         and f 0 = SMLofNJ.Internals.BTrace.trigger ()
1859    -           | f n = n * g (n - 1)
1860    -         and g n = a (n, 3)
1861    -     in
1862    -         f n
1863    -     end
1864    - end;
1865    structure X : sig val main : int -> int end
1866    - X.main 3;
1867    *** BACK-TRACE ***
1868    GOTO   stdIn:4.2-13.20: X.main[2].f
1869    GOTO-( stdIn:4.2-13.20: X.main[2].e
1870    GOTO   stdIn:4.2-13.20: X.main[2].d
1871         / stdIn:4.2-13.20: X.main[2].a
1872         | stdIn:4.2-13.20: X.main[2].b
1873    GOTO-\ stdIn:4.2-13.20: X.main[2].c
1874    CALL   stdIn:4.2-13.20: X.main[2].g
1875    GOTO   stdIn:4.2-13.20: X.main[2].f
1876    GOTO-( stdIn:4.2-13.20: X.main[2].e
1877    GOTO   stdIn:4.2-13.20: X.main[2].d
1878         / stdIn:4.2-13.20: X.main[2].a
1879         | stdIn:4.2-13.20: X.main[2].b
1880    GOTO-\ stdIn:4.2-13.20: X.main[2].c
1881    CALL   stdIn:4.2-13.20: X.main[2].g
1882    GOTO   stdIn:4.2-13.20: X.main[2].f
1883    GOTO-( stdIn:4.2-13.20: X.main[2].e
1884    GOTO   stdIn:4.2-13.20: X.main[2].d
1885         / stdIn:4.2-13.20: X.main[2].a
1886         | stdIn:4.2-13.20: X.main[2].b
1887    GOTO-\ stdIn:4.2-13.20: X.main[2].c
1888    CALL   stdIn:4.2-13.20: X.main[2].g
1889    GOTO   stdIn:4.2-13.20: X.main[2].f
1890    CALL   stdIn:2.15-17.4: X.main[2]
1891    -
1892    
1893    (Note that because of a FLINt bug the above code currently does not
1894    compile without BTrace turned on.)
1895    
1896    Here is another example, using my modified Tiger compiler:
1897    
1898    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
1899    - SMLofNJ.Internals.BTrace.mode (SOME true);
1900    [autoloading]
1901    [autoloading done]
1902    val it = false : bool
1903    - CM.make "sources.cm";
1904    [autoloading]
1905    ...
1906    [autoloading done]
1907    [scanning sources.cm]
1908    [parsing (sources.cm):parse.sml]
1909    [creating directory CM/SKEL ...]
1910    [parsing (sources.cm):tiger.lex.sml]
1911    ...
1912    [wrote CM/sparc-unix/semant.sml]
1913    [compiling (sources.cm):main.sml]
1914    [wrote CM/sparc-unix/main.sml]
1915    [New bindings added.]
1916    val it = true : bool
1917    - Main.compile ("../testcases/merge.tig", "foo.out");
1918    *** BACK-TRACE ***
1919    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
1920    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1921    CALL   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
1922    GOTO   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
1923    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1924    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1925    CALL   lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
1926         / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
1927    CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
1928    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1929    CALL   lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
1930    CALL   main.sml:1.18-118.4: Main.compile[2]
1931    -
1932    
1933    ----------------------------------------------------------------------
1934    Name: Matthias Blumen
1935    Date: 2000/06/21 18:00:00 JST
1936    Tag: blume-20000621-manual
1937    Description:
1938    
1939    CM manual update: Path environments documented.
1940    
1941    ----------------------------------------------------------------------
1942    Name: Matthias Blume
1943    Date: 2000/06/19 13:40:00
1944    Tag: blume-20000619-manual
1945    Description:
1946    
1947    CM manual and system/README update.  This only covers the fact that
1948    there are no more implicit anchors.  (Path environments and the "bind"
1949    option to "cm" have yet to be documented.)
1950    
1951    ----------------------------------------------------------------------
1952    Name: Matthias Blume
1953    Date: 2000/06/19 11:05:00 JST
1954    Tag: blume-20000619-chdir-bugfix
1955    Description:
1956    
1957    Fixed a bug in new SrcPath module that sometimes led to a bad chDir call.
1958    
1959    ----------------------------------------------------------------------
1960    Name: Matthias Blume
1961    Date: 2000/06/18 22:00:10 JST
1962    Tag: blume-20000618-implicit-anchors-really-gone
1963    Description:
1964    
1965    I updates the previous HISTORY entry where I forgot to mention that
1966    implicit anchors are no longer with us.
1967    
1968    The current update also gets rid of the (now useless) controller
1969    CM.Control.implicit_anchors.
1970    
1971    ----------------------------------------------------------------------
1972    Name: Matthias Blume
1973    Date: 2000/06/16 17:30:00 JST
1974    Tag: blume-20000616-anchorenv
1975    Description:
1976    
1977    This patch implements the long anticipated (just kidding :) "anchor
1978    environment" mechanism.  In the course of doing this, I also
1979    re-implemented CM's internal "SrcPath" module from scratch.  The new
1980    one should be more robust in certain boundary cases.  In any case, it
1981    is a lot cleaner than its predecessor (IMHO).
1982    
1983    This time, although there is yet another boot file format change, I
1984    kept the unpickler backward-compatible.  As a result, no new bootfiles
1985    are necessary and bootstrapping is straightforward.  (You cannot read
1986    new bootfiles into an old system, but the other way around is no
1987    problem.)
1988    
1989    Visible changes:
1990    
1991    ** 0. Implicit path anchors (without the leading $-symbol) are no
1992    longer recognized at all. This means that such path names are not
1993    illegal either.  For example, the name basis.cm simply refers to a
1994    local file called "basis.cm" (i.e, the name is an ordinary path
1995    relative to .cm-files directory).  Or, to put it differently, only
1996    names that start with $ are anchored paths.
1997    
1998    ** 1. The $<singlearc> abbreviation for $/<singlearc> has finally
1999    vanished.
2000    
2001    John (Reppy) had critizised this as soon as I originally proposed and
2002    implemented it, but at that time I did not really deeply believe
2003    him. :) Now I came full-circle because I need the $<singlearc> syntax
2004    in another place where it cannot be seen as an abbreviation for
2005    $/<singlearc>.  To avoid the confusion, $<singlearc> now means what it
2006    seems to mean (i.e., it "expands" into the corresponding anchor
2007    value).
2008    
2009    However, when paths are used as members in CM description files, it
2010    continues to be true that there must be at least another arc after the
2011    anchor.  This is now enforced separately during semantic analysis
2012    (i.e., from a lexical/syntactical point of view, the notation is ok.)
2013    
2014    ** 2. The "cm" class now accepts an option "bind".  The option's value
2015    is a sub-option list of precisely two items -- one labeled "anchor"
2016    and the other one labeled "value".  As you might expect, "anchor" is
2017    used to specify an anchor name to be bound, and "value" specifies what
2018    the anchor is being bound to.
2019    
2020    The value must be a directory name and can be given in either standard
2021    syntax (including the possibility that it is itself an anchored path)
2022    or native syntax.
2023    
2024    Examples:
2025    
2026       foo.cm (bind:(anchor:bar value:$mystuff/bar))
2027       lib.cm (bind:(anchor:a value:"H:\\x\\y\\z"))  (* only works under windows *)
2028    
2029    and so on.
2030    
2031    The meaning of this is that the .cm-file will be processed with an
2032    augmented anchor environment where the given anchor(s) is/are bound to
2033    the given values(s).
2034    
2035    The rationale for having this feature is this: Suppose you are trying
2036    to use two different (already stable) libraries a.cm and b.cm (that
2037    you perhaps didn't write yourself).  Further, suppose each of these
2038    two libraries internally uses its own auxiliary library $aux/lib.cm.
2039    Normally you would now have a problem because the anchor "lib" can not
2040    be bound to more than one value globally.  Therefore, the project that
2041    uses both a.cm and b.cm must locally redirect the anchor to some other
2042    place:
2043    
2044       a.cm (bind:(anchor:lib value:/usr/lib/smlnj/a-stuff))
2045       b.cm (bind:(anchor:lib value:/usr/lib/smlnj/b-stuff))
2046    
2047    This hard-wires $lib/aux.cm to /usr/lib/smlnj/a-stuff/aux.cm or
2048    /usr/lib/smlnj/b-stuff/aux.cm, respectively.
2049    
2050    Hard-wiring path names is a bit inflexible (and CM will verbosely warn
2051    you when you do so at the time of CM.stabilize).  Therefore, you can
2052    also use an anchored path as the value:
2053    
2054      a.cm (bind:(anchor:lib value:$a-lib))
2055      b.cm (bind:(anchor:lib value:$b-lib))
2056    
2057    Now you can globally configure (using the usual CM.Anchor.anchor or
2058    pathconfig machinery) bindings for "a-lib" and "b-lib".  Since "lib"
2059    itself is always locally bound, setting it globally is no longer
2060    meaningful or necessary (but it does not hurt either).  In fact, "lib"
2061    can still be used as a global anchor for separate purposes.  As a
2062    matter of fact, one can locally define "lib" in terms of a global
2063    "lib":
2064    
2065      a.cm (bind:(anchor:lib value:$lib/a))
2066      b.cm (bind:(anchor:lib value:$lib/b))
2067    
2068    ** 3: The encoding of path names has changed.  This affects the way
2069    path names are shown in CM's progress report and also the internal
2070    protocol encoding used for parallel make.
2071    
2072    The encoding now uses one or more ':'-separated segments.  Each
2073    segments corresponds to a file that has been specified relative to the
2074    file given by its preceding segment.  The first segment is either
2075    relative to the CWD, absolute, or anchored.  Each segment itself is
2076    basically a Unix pathname; all segments but the first are relative.
2077    
2078    Example:
2079    
2080       $foo/bar/baz.cm:a/b/c.sml
2081    
2082    This path denotes the file bar/a/b/c.sml relative to the directory
2083    denoted by anchor "foo".  Notice that the encoding also includes
2084    baz.cm which is the .cm-file that listed a/b/c.sml.  As usual, such
2085    paths are resolved relative to the .cm-files directory, so baz.cm must
2086    be ignored to get the "real" pathname.
2087    
2088    To make this fact more obvious, CM puts the names of such "virtual
2089    arcs" into parentheses when they appear in progress reports. (No
2090    parentheses will appear in the internal protocol encoding.)  Thus,
2091    what you really see is:
2092    
2093      $foo/bar/(baz.cm):a/b/c.sml
2094    
2095    I find this notation to be much more informative than before.
2096    
2097    Another new feature of the encoding is that special characters
2098    including parentheses, colons, (back)slashes, and white space are
2099    written as \ddd (where ddd is the decimal encoding of the character).
2100    
2101    *** The CM manual still needs to be updated.
2102    
2103    ----------------------------------------------------------------------
2104    Name: Allen Leung
2105    Date: 2000/06/15 00:38:00
2106    Tag: leunga-20000615-x86-peephole
2107    
2108    x86 Peephole fix by Fermin.  Affects c-- and moby only.
2109    
2110    ----------------------------------------------------------------------
2111    Name: Matthias Blume
2112    Date: 2000/06/12 11:40:00
2113    Tag: blume-20000612-parmakefix
2114    Description:
2115    
2116    More cleanup after changing the file naming scheme: This time I
2117    repaired the parallel make mechanism for CMB.make which I broke earlier.
2118    
2119    ----------------------------------------------------------------------
2120    Name: Allen Leung
2121    Date: 2000/06/09 01:25:00
2122    Tag: leunga-20000609-various
2123    
2124    None of these things should affect normal SML/NJ operations
2125    
2126    1. Peephole improvements provided by Fermin (c--)
2127    2. New annotation DEFUSE for adding extra dependence (moby)
2128    3. New X86 LOCK instructions (moby)
2129    4. New machine description language for reservation tables (scheduling)
2130    5. Fixes to various optimization/analysis modules (branch chaining, dominator
2131       trees etc.)
2132    6. I've changed the CM files so that they can work with versions
2133       110.0.6, 110.25 and 110.28
2134    
2135    ----------------------------------------------------------------------
2136    Name: Matthias Blume
2137    Date: 2000/06/09 12:40:00
2138    Tag: blume-20000609-log
2139    Description:
2140    
2141    - Removed all(?) remaining RCS Log entries from sources.
2142    
2143    - Fixed bug in ml-yacc and ml-lex sources (use explicit anchors for
2144      anchored paths).
2145    
2146  ----------------------------------------------------------------------  ----------------------------------------------------------------------
2147  Name: Matthias Blume  Name: Matthias Blume
2148  Date: 2000/06/07 17:00:00 JST  Date: 2000/06/07 17:00:00 JST
# Line 563  Line 2695 
2695    
2696  3.  Assembly  3.  Assembly
2697    
2698      When generating assemby, resolve the value of client defined constants,      When generating assembly, resolve the value of client defined constants,
2699      instead of generating symbolic values.  This is controlled by the      instead of generating symbolic values.  This is controlled by the
2700      new flag "asm-resolve-constants", which is default to true.      new flag "asm-resolve-constants", which is default to true.
2701    
# Line 586  Line 2718 
2718    
2719  To this end, I arranged that instead of "structure Core" as "structure  To this end, I arranged that instead of "structure Core" as "structure
2720  _Core" is bound in the pervasive environment.  Core access is done via  _Core" is bound in the pervasive environment.  Core access is done via
2721  _Core (which can never be accidentially rebound because _Core is not a  _Core (which can never be accidentally rebound because _Core is not a
2722  legal surface-syntax symbol).  legal surface-syntax symbol).
2723    
2724  The current solution is much cleaner because the core environment is  The current solution is much cleaner because the core environment is
# Line 596  Line 2728 
2728  with dynamic and symbolic parts of the core environment.  with dynamic and symbolic parts of the core environment.
2729    
2730  Remaining hackery (to bind the "magic" symbol _Core) is localized in the  Remaining hackery (to bind the "magic" symbol _Core) is localized in the
2731  compilation mananger's bootstrap compiler (actually: in the "init group"  compilation manager's bootstrap compiler (actually: in the "init group"
2732  handling).  See the comments in src/system/smlnj/init/init.cmi for  handling).  See the comments in src/system/smlnj/init/init.cmi for
2733  more details.  more details.
2734    
# Line 711  Line 2843 
2843     (specified in the .cm file at each instance where the tool's class is     (specified in the .cm file at each instance where the tool's class is
2844     used).     used).
2845    
2846     This was done to accomodate the new "make" and "shell" tools which     This was done to accommodate the new "make" and "shell" tools which
2847     facilitate fairly seemless hookup to portions of code managed using     facilitate fairly seamless hookup to portions of code managed using
2848     Makefiles or Shell scripts.     Makefiles or Shell scripts.
2849    
2850     There are no classes "shared" or "private" anymore.  Instead, the     There are no classes "shared" or "private" anymore.  Instead, the
# Line 724  Line 2856 
2856    
2857     All existing tools are described in the CM manual.     All existing tools are described in the CM manual.
2858    
2859     - Slightly better error handling.  (CM now surpresses many followup     - Slightly better error handling.  (CM now suppresses many followup
2860     error messages that tended to be more annoying than helpful.)     error messages that tended to be more annoying than helpful.)
2861    
2862  2. Major changes to the compiler's static environment data structures.  2. Major changes to the compiler's static environment data structures.
# Line 858  Line 2990 
2990    
2991       I've changed andl to testl in the floating point test sequence       I've changed andl to testl in the floating point test sequence
2992       whenever appropriate.  The Intel optimization guide states that       whenever appropriate.  The Intel optimization guide states that
2993       testl is perferable to andl.       testl is preferable to andl.
2994    
2995  7. RA (x86 only)  7. RA (x86 only)
2996    
# Line 1040  Line 3172 
3172    
3173  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an
3174  additional argument called "template" which is an optional string that  additional argument called "template" which is an optional string that
3175  specifiel the layout of the tool command line.  See the CM manual for  specifies the layout of the tool command line.  See the CM manual for
3176  explanation.  explanation.
3177    
3178  2. A special-purpose tool can be "regisitered" by simply dropping the  2. A special-purpose tool can be "registered" by simply dropping the
3179  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same
3180  directory where the .cm file lives that uses this tool.  (The  directory where the .cm file lives that uses this tool.  (The
3181  behavior/misfeature until now was to look for the tool description  behavior/misfeature until now was to look for the tool description
# Line 1087  Line 3219 
3219  rebuild.  Having sets of the form <base><k>.{bin,boot}.<arch>-unix for  rebuild.  Having sets of the form <base><k>.{bin,boot}.<arch>-unix for
3220  <k>=1,2,... is normally not a good idea when invoking fixpt.  However,  <k>=1,2,... is normally not a good idea when invoking fixpt.  However,
3221  they might be the result of an earlier partial run of fixpt (which  they might be the result of an earlier partial run of fixpt (which
3222  perhaps got accidentially killed).  In this case, fixpt will quickly  perhaps got accidentally killed).  In this case, fixpt will quickly
3223  move through what exists before continuing where it left off earlier,  move through what exists before continuing where it left off earlier,
3224  and, thus, saves a lot of time.  and, thus, saves a lot of time.
3225    
# Line 1137  Line 3269 
3269    it from that remote directory.    it from that remote directory.
3270    This should simplify installation further:  For machines that have    This should simplify installation further:  For machines that have
3271    access to the internet, just fetch <version>-config.tgz, unpack it,    access to the internet, just fetch <version>-config.tgz, unpack it,
3272    edit config/targets, and go (run config/install.sh).  The scipt will    edit config/targets, and go (run config/install.sh).  The script will
3273    fetch everything else that it might need all by itself.    fetch everything else that it might need all by itself.
3274    
3275    For CVS users, this mechanism is not relevant for source archives, but    For CVS users, this mechanism is not relevant for source archives, but

Legend:
Removed from v.653  
changed lines
  Added in v.903

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