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

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