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 589, Fri Mar 31 16:14:36 2000 UTC revision 690, Sat Jul 22 14:29:23 2000 UTC
# Line 11  Line 11 
11  Date:  Date:
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    ----------------------------------------------------------------------
15    Name: Matthias Blume
16    Date: 2000/07/22 23:30:00 JST
17    Tag: blume-20000722-urlupdate
18    Description:
19    
20    Changed BOOT and config/srcarchiveurl to point to BL server:
21    
22        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume
26    Date: 2000/07/18 18:00:00 JST
27    Tag: blume-20000718-Version_110_29
28    Description:
29    
30    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
31    
32    2. Updated config/version to 110.29
33    
34    3. Updated config/srcarchiveurl
35    
36    3. New boot files!
37       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
38    
39    ----------------------------------------------------------------------
40    Name: Matthias Blume
41    Date: 2000/07/11 13:58:00 JST
42    Tag: blume-20000711-doctypo
43    Description:
44    
45    Fixed a few typos in CM manual.
46    
47    ----------------------------------------------------------------------
48    Name: Allen Leung
49    Date: 2000/06/15 00:38:00
50    Tag: leunga-20000704-sparc-x86
51    
52    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
53    2. fix to x86 RET bug [found by Dan Grossman]
54    3. sparc assembly bug fix for ticc instructions [found by Fermin]
55    
56       Affects c-- and moby only
57    
58    ----------------------------------------------------------------------
59    Name: Matthias Blume
60    Date: 2000/07/04 15:26:00
61    Tag: blume-20000704-trigger
62    Description:
63    
64    1. Improvements to CM manual.
65    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
66       of getting a back-trace.  The function, when called, raises an
67       internal exception which explicitly carries the full back-trace history,
68       so it is unaffected by any intervening handle-raise pairs ("trivial"
69       or not).  The interactive loop will print that history once it arrives
70       at top level.
71       Short of having all exceptions implicitly carry the full history, the
72       recommended way of using this facility is:
73         - compile your program with instrumentation "on"
74         - run it, when it raises an exception, look at the history
75         - if the history is "cut off" because of some handler, go and modify
76           your program so that it explicitly calls BTrace.trigger
77         - recompile (still instrumented), and rerun; look at the full history
78    
79    ----------------------------------------------------------------------
80    Name: Matthias Blume
81    Date: 2000/07/03 15:36:00 JST
82    Tag: blume-20000702-manual
83    Description:
84    
85    Small corrections and updates to CM manual.
86    
87    ----------------------------------------------------------------------
88    Name: Matthias Blume
89    Date: 2000/06/29 16:04:00 JST
90    Tag: blume-20000629-yacctool
91    Description:
92    
93    Changes:
94    
95    1. Class "mlyacc" now takes separate arguments to pass options to
96       generated .sml- and .sig-files independently.
97    2. Corresponding CM manual updates.
98    3. BTrace module now also reports call sites.  (However, for loop clusters
99       it only shows from where the cluster was entered.)  There are associated
100       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
101    
102    ----------------------------------------------------------------------
103    Name: Matthias Blume
104    Date: 2000/06/27 16:51:00 JST
105    Tag: blume-20000627-noweb
106    Description:
107    
108    Changes:
109    
110     1. Implemented "subdir" and "witness" options for noweb tool.
111        This caused some slight internal changes in CM's tool implementation.
112     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
113        some remaining issues from earlier path anchor changes.
114     3. Updated CM manual accordingly.
115    
116     4. Changed implementation of back-tracing so that I now consider it
117        ready for prime-time.
118    
119        In particular, you don't have to explicitly trigger the back-trace
120        anymore.  Instead, if you are running BTrace-instrumented code and
121        there is an uncaught exception (regardless of whether or not it was
122        raised in instrumented code), the top-level evalloop will print
123        the back-trace.
124    
125        Features:
126    
127          - Instrumented and uninstrumented code work together seemlessly.
128            (Of course, uninstrumented code is never mentioned in actual
129             back-traces.)
130    
131          - Asymptotic time- and space-complexity of instrumented code is
132            equal to that of uninstrumented code.  (This means that
133            tail-recursion is preserved by the instrumentation phase.)
134    
135          - Modules whose code has been instrumented in different sessions
136            work together without problem.
137    
138          - There is no penalty whatsoever on uninstrumented code.
139    
140          - There is no penalty on "raise" expressions, even in
141            instrumented code.
142    
143        A potential bug (or perhaps it is a feature, too):
144    
145          A back-trace reaches no further than the outermost instrumented
146          non-trivial "raise".  Here, a "trivial" raise is one that is the
147          sole RHS of a "handle" rule.  Thus, back-traces reach trough
148    
149               <exp> handle e => raise e
150    
151          and even
152    
153               <exp> handle Foo => raise Bar
154    
155          and, of course, through
156    
157               <exp> handle Foo => ...
158    
159         if the exception was not Foo.
160    
161         Back-traces always reach right through any un-instrumented code
162         including any of its "handle" expressions, trivial or not.
163    
164       To try this out, do the following:
165    
166         - Erase all existing binfiles for your program.
167           (You may keep binfiles for those modules where you think you
168            definitely don't need back-tracing.)
169         - Turn on back-trace instrumentation:
170              SMLofNJ.Internals.BTrace.mode (SOME true);
171         - Recompile your program.  (I.e., run "CM.make" or "use".)
172         - You may now turn instrumentation off again (if you want):
173              SMLofNJ.Internals.BTrace.mode (SOME false);
174         - Run your program as usual.  If it raises an exception that
175           reaches the interactive toplevel, then a back-trace will
176           automatically be printed.  After that, the toplevel loop
177           will print the exception history as usual.
178    
179    ----------------------------------------------------------------------
180    Name: Matthias Blume
181    Date: 2000/06/26 09:56:46 JST
182    Tag: blume-20000626-setup
183    Description:
184    
185    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
186          ML code before and after compiling a file (e.g., to set compiler
187          flags)
188    
189    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
190              - associated changes to btrace.sml (BTrace instrumentation pass)
191              - cleaner implementation of btimp.sml (BTrace tracing and report
192                module)
193    
194    CM manual: * new path encoding documented
195               * description of setup-parameter to "sml" added
196    
197    The biggest user-visible change to back-tracing is that it is no
198    longer necessary to compile all traced modules within the same
199    session.  (This was a real limitation.)
200    
201    ----------------------------------------------------------------------
202    Name: Matthias Blume
203    Date: 2000/06/24 12:40:00 JST
204    Tag: blume-20000624-startup
205    Description:
206    
207    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
208    bit too often -- to put it mildly. :)
209    
210    ----------------------------------------------------------------------
211    Name: Matthias Blume
212    Date: 2000/06/23 18:20:00 JST
213    Tag: blume-20000623-btrace
214    Description:
215    
216    This updates adds a backtrace facility to aid programmers in debugging
217    their programs.  This involves the following changes:
218    
219    1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
220       keeping track of the current call stack.  When programs are compiled
221       in a special mode, the compiler will insert calls to these hooks
222       into the user program.
223       "Hook" means that it is possible for different implementations of
224       back-tracing to register themselves (at different times).
225    
226    2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
227       as an Absyn.dec->Absyn.dec rewrite.  Normally this phase is turned off.
228       It can be turned on using this call:
229         SMLofNJ.Internals.BTrace.mode (SOME true);
230       Turning it off again:
231         SMLofNJ.Internals.BTrace.mode (SOME false);
232       Querying the current status:
233         SMLofNJ.Internals.BTrace.mode NONE;
234       Annotated programs are about twice as big as normal ones, and they
235       run a factor of 2 to 4 slower with a dummy back-trace plugin (one
236       where all hooks do nothing).  The slowdown with a plugin that is
237       actually useful (such as the one supplied by default) is even greater,
238       but in the case of the default plugin it is still only an constant
239       factor (amortized).
240    
241    3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
242       with a sub-structure BTrace for controlling back-tracing.  In particular,
243       the above-mentioned function "mode" controls whether the annotation
244       phase is invoked by the compiler.  Another important function is
245       "trigger": when called it aborts the current execution and causes
246       the top-level loop to print a full back-trace.
247    
248    4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
249       for back-tracing.  It keeps track of the dynamic call stack and in
250       addition to that it keeps a partial history at each "level" of that
251       stack.  For example, if a tail-calls b, b tail-calls c, and c tail-calls
252       d and b (at separate times, dynamically), then the report will show:
253    
254       GOTO   d
255             /c
256       GOTO  \b
257       CALL   a
258    
259       This shows that there was an initial non-tail call of a, then a
260       tail-call to b or c, looping behavior in a cluster of functions that
261       consist of b and c, and then a goto from that cluster (i.e., either from
262       b or from c) to d.
263    
264       Note that (depending on the user program) the amount of information
265       that the back-trace module has to keep track of at each level is bounded
266       by a constant.  Thus, the whole implementation has the same asymptotical
267       complexity as the original program (both in space and in time).
268    
269    5. compiler/TopLevel/interact/evalloop.sml has been modified to
270       handle the special exception SMLofNJ.Internals.BTrace.BTrace
271       which is raised by the "trigger" function mentioned above.
272    
273    Notes on usage:
274    
275    - Annotated code works well together with unannotated code:
276    Unannotated calls simply do not show up at all in the backtrace.
277    
278    - It is not a good idea to let modules that were annotated during
279    different sessions run at the same time.  This is because the compiler
280    chooses small integers to identify individual functions, and there
281    will be clashes if different modules were compiled in separate sessions.
282    (Nothing will crash, and you will even be told about the clashes, but
283    back-trace information will in general not be useful.)
284    
285    - Back-tracing can be confused by callcc and capture.
286    
287    - The only way of getting a back-trace right now is to explicitly
288    invoke the "trigger" function from your user program.  Eventually, we
289    should make every exception carry back-trace information (if
290    available).  But since this creates more overhead at "raise"-time
291    (similar to the current exnHistory overhead), I have not yet
292    implemented this.  (The implementation will be rather easy.)  With
293    exceptions carrying back-trace information, this facility will be even
294    more useful because users don't need to modify their programs...
295    
296    - While it is possible to compile the compiler with back-trace
297    annotations turned on (I did it to get some confidence in
298    correctness), you must make absolutely sure that core.sml and
299    btimp.sml are compiled WITHOUT annotation!  (core.sml cannot actually
300    be compiled with annotation because there is no core access yet, but
301    if you compile btimp.sml with annotation, then the system will go into
302    an infinite recursion and crash.)
303    Since CM currently does not know about BTrace, the only way to turn
304    annotations on and off for different modules of the compiler is to
305    interrupt CMB.make, change the settings, and re-invoke it.  Of course,
306    this is awkward and clumsy.
307    
308    Sample sessions:
309    
310    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
311    - SMLofNJ.Internals.BTrace.mode (SOME true);
312    [autoloading]
313    [autoloading done]
314    val it = false : bool
315    - structure X = struct
316    -     fun main n = let
317    -         fun a (x, 0) = d x
318    -           | a (x, n) = b (x, n - 1)
319    -         and b (x, n) = c (x, n)
320    -         and c (x, n) = a (x, n)
321    -         and d x = e (x, 3)
322    -         and e (x, 0) = f x
323    -           | e (x, n) = e (x, n - 1)
324    -         and f 0 = SMLofNJ.Internals.BTrace.trigger ()
325    -           | f n = n * g (n - 1)
326    -         and g n = a (n, 3)
327    -     in
328    -         f n
329    -     end
330    - end;
331    structure X : sig val main : int -> int end
332    - X.main 3;
333    *** BACK-TRACE ***
334    GOTO   stdIn:4.2-13.20: X.main[2].f
335    GOTO-( stdIn:4.2-13.20: X.main[2].e
336    GOTO   stdIn:4.2-13.20: X.main[2].d
337         / stdIn:4.2-13.20: X.main[2].a
338         | stdIn:4.2-13.20: X.main[2].b
339    GOTO-\ stdIn:4.2-13.20: X.main[2].c
340    CALL   stdIn:4.2-13.20: X.main[2].g
341    GOTO   stdIn:4.2-13.20: X.main[2].f
342    GOTO-( stdIn:4.2-13.20: X.main[2].e
343    GOTO   stdIn:4.2-13.20: X.main[2].d
344         / stdIn:4.2-13.20: X.main[2].a
345         | stdIn:4.2-13.20: X.main[2].b
346    GOTO-\ stdIn:4.2-13.20: X.main[2].c
347    CALL   stdIn:4.2-13.20: X.main[2].g
348    GOTO   stdIn:4.2-13.20: X.main[2].f
349    GOTO-( stdIn:4.2-13.20: X.main[2].e
350    GOTO   stdIn:4.2-13.20: X.main[2].d
351         / stdIn:4.2-13.20: X.main[2].a
352         | stdIn:4.2-13.20: X.main[2].b
353    GOTO-\ stdIn:4.2-13.20: X.main[2].c
354    CALL   stdIn:4.2-13.20: X.main[2].g
355    GOTO   stdIn:4.2-13.20: X.main[2].f
356    CALL   stdIn:2.15-17.4: X.main[2]
357    -
358    
359    (Note that because of a FLINt bug the above code currently does not
360    compile without BTrace turned on.)
361    
362    Here is another example, using my modified Tiger compiler:
363    
364    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
365    - SMLofNJ.Internals.BTrace.mode (SOME true);
366    [autoloading]
367    [autoloading done]
368    val it = false : bool
369    - CM.make "sources.cm";
370    [autoloading]
371    ...
372    [autoloading done]
373    [scanning sources.cm]
374    [parsing (sources.cm):parse.sml]
375    [creating directory CM/SKEL ...]
376    [parsing (sources.cm):tiger.lex.sml]
377    ...
378    [wrote CM/sparc-unix/semant.sml]
379    [compiling (sources.cm):main.sml]
380    [wrote CM/sparc-unix/main.sml]
381    [New bindings added.]
382    val it = true : bool
383    - Main.compile ("../testcases/merge.tig", "foo.out");
384    *** BACK-TRACE ***
385    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
386    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
387    CALL   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
388    GOTO   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
389    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
390    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
391    CALL   lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
392         / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
393    CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
394    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
395    CALL   lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
396    CALL   main.sml:1.18-118.4: Main.compile[2]
397    -
398    
399    ----------------------------------------------------------------------
400    Name: Matthias Blumen
401    Date: 2000/06/21 18:00:00 JST
402    Tag: blume-20000621-manual
403    Description:
404    
405    CM manual update: Path environments documented.
406    
407    ----------------------------------------------------------------------
408    Name: Matthias Blume
409    Date: 2000/06/19 13:40:00
410    Tag: blume-20000619-manual
411    Description:
412    
413    CM manual and system/README update.  This only covers the fact that
414    there are no more implicit anchors.  (Path environments and the "bind"
415    option to "cm" have yet to be documented.)
416    
417    ----------------------------------------------------------------------
418    Name: Matthias Blume
419    Date: 2000/06/19 11:05:00 JST
420    Tag: blume-20000619-chdir-bugfix
421    Description:
422    
423    Fixed a bug in new SrcPath module that sometimes led to a bad chDir call.
424    
425    ----------------------------------------------------------------------
426    Name: Matthias Blume
427    Date: 2000/06/18 22:00:10 JST
428    Tag: blume-20000618-implicit-anchors-really-gone
429    Description:
430    
431    I updates the previous HISTORY entry where I forgot to mention that
432    implicit anchors are no longer with us.
433    
434    The current update also gets rid of the (now useless) controller
435    CM.Control.implicit_anchors.
436    
437    ----------------------------------------------------------------------
438    Name: Matthias Blume
439    Date: 2000/06/16 17:30:00 JST
440    Tag: blume-20000616-anchorenv
441    Description:
442    
443    This patch implements the long anticipated (just kidding :) "anchor
444    environment" mechanism.  In the course of doing this, I also
445    re-implemented CM's internal "SrcPath" module from scratch.  The new
446    one should be more robust in certain boundary cases.  In any case, it
447    is a lot cleaner than its predecessor (IMHO).
448    
449    This time, although there is yet another boot file format change, I
450    kept the unpickler backward-compatible.  As a result, no new bootfiles
451    are necessary and bootstrapping is straightforward.  (You cannot read
452    new bootfiles into an old system, but the other way around is no
453    problem.)
454    
455    Visible changes:
456    
457    ** 0. Implicit path anchors (without the leading $-symbol) are no
458    longer recognized at all. This means that such path names are not
459    illegal either.  For example, the name basis.cm simply refers to a
460    local file called "basis.cm" (i.e, the name is an ordinary path
461    relative to .cm-files directory).  Or, to put it differently, only
462    names that start with $ are anchored paths.
463    
464    ** 1. The $<singlearc> abbreviation for $/<singlearc> has finally
465    vanished.
466    
467    John (Reppy) had critizised this as soon as I originally proposed and
468    implemented it, but at that time I did not really deeply believe
469    him. :) Now I came full-circle because I need the $<singlearc> syntax
470    in another place where it cannot be seen as an abbreviation for
471    $/<singlearc>.  To avoid the confusion, $<singlearc> now means what it
472    seems to mean (i.e., it "expands" into the corresponding anchor
473    value).
474    
475    However, when paths are used as members in CM description files, it
476    continues to be true that there must be at least another arc after the
477    anchor.  This is now enforced separately during semantic analysis
478    (i.e., from a lexical/syntactical point of view, the notation is ok.)
479    
480    ** 2. The "cm" class now accepts an option "bind".  The option's value
481    is a sub-option list of precisely two items -- one labeled "anchor"
482    and the other one labeled "value".  As you might expect, "anchor" is
483    used to specify an anchor name to be bound, and "value" specifies what
484    the anchor is being bound to.
485    
486    The value must be a directory name and can be given in either standard
487    syntax (including the possibility that it is itself an anchored path)
488    or native syntax.
489    
490    Examples:
491    
492       foo.cm (bind:(anchor:bar value:$mystuff/bar))
493       lib.cm (bind:(anchor:a value:"H:\\x\\y\\z"))  (* only works under windows *)
494    
495    and so on.
496    
497    The meaning of this is that the .cm-file will be processed with an
498    augmented anchor environment where the given anchor(s) is/are bound to
499    the given values(s).
500    
501    The rationale for having this feature is this: Suppose you are trying
502    to use two different (already stable) libraries a.cm and b.cm (that
503    you perhaps didn't write yourself).  Further, suppose each of these
504    two libraries internally uses its own auxiliary library $aux/lib.cm.
505    Normally you would now have a problem because the anchor "lib" can not
506    be bound to more than one value globally.  Therefore, the project that
507    uses both a.cm and b.cm must locally redirect the anchor to some other
508    place:
509    
510       a.cm (bind:(anchor:lib value:/usr/lib/smlnj/a-stuff))
511       b.cm (bind:(anchor:lib value:/usr/lib/smlnj/b-stuff))
512    
513    This hard-wires $lib/aux.cm to /usr/lib/smlnj/a-stuff/aux.cm or
514    /usr/lib/smlnj/b-stuff/aux.cm, respectively.
515    
516    Hard-wiring path names is a bit inflexible (and CM will verbosely warn
517    you when you do so at the time of CM.stabilize).  Therefore, you can
518    also use an anchored path as the value:
519    
520      a.cm (bind:(anchor:lib value:$a-lib))
521      b.cm (bind:(anchor:lib value:$b-lib))
522    
523    Now you can globally configure (using the usual CM.Anchor.anchor or
524    pathconfig machinery) bindings for "a-lib" and "b-lib".  Since "lib"
525    itself is always locally bound, setting it globally is no longer
526    meaningful or necessary (but it does not hurt either).  In fact, "lib"
527    can still be used as a global anchor for separate purposes.  As a
528    matter of fact, one can locally define "lib" in terms of a global
529    "lib":
530    
531      a.cm (bind:(anchor:lib value:$lib/a))
532      b.cm (bind:(anchor:lib value:$lib/b))
533    
534    ** 3: The encoding of path names has changed.  This affects the way
535    path names are shown in CM's progress report and also the internal
536    protocol encoding used for parallel make.
537    
538    The encoding now uses one or more ':'-separated segments.  Each
539    segments corresponds to a file that has been specified relative to the
540    file given by its preceding segment.  The first segment is either
541    relative to the CWD, absolute, or anchored.  Each segment itself is
542    basically a Unix pathname; all segments but the first are relative.
543    
544    Example:
545    
546       $foo/bar/baz.cm:a/b/c.sml
547    
548    This path denotes the file bar/a/b/c.sml relative to the directory
549    denoted by anchor "foo".  Notice that the encoding also includes
550    baz.cm which is the .cm-file that listed a/b/c.sml.  As usual, such
551    paths are resolved relative to the .cm-files directory, so baz.cm must
552    be ignored to get the "real" pathname.
553    
554    To make this fact more obvious, CM puts the names of such "virtual
555    arcs" into parentheses when they appear in progress reports. (No
556    parentheses will appear in the internal protocol encoding.)  Thus,
557    what you really see is:
558    
559      $foo/bar/(baz.cm):a/b/c.sml
560    
561    I find this notation to be much more informative than before.
562    
563    Another new feature of the encoding is that special characters
564    including parentheses, colons, (back)slashes, and white space are
565    written as \ddd (where ddd is the decimal encoding of the character).
566    
567    *** The CM manual still needs to be updated.
568    
569    ----------------------------------------------------------------------
570    Name: Allen Leung
571    Date: 2000/06/15 00:38:00
572    Tag: leunga-20000615-x86-peephole
573    
574    x86 Peephole fix by Fermin.  Affects c-- and moby only.
575    
576    ----------------------------------------------------------------------
577    Name: Matthias Blume
578    Date: 2000/06/12 11:40:00
579    Tag: blume-20000612-parmakefix
580    Description:
581    
582    More cleanup after changing the file naming scheme: This time I
583    repaired the parallel make mechanism for CMB.make which I broke earlier.
584    
585    ----------------------------------------------------------------------
586    Name: Allen Leung
587    Date: 2000/06/09 01:25:00
588    Tag: leunga-20000609-various
589    
590    None of these things should affect normal SML/NJ operations
591    
592    1. Peephole improvements provided by Fermin (c--)
593    2. New annotation DEFUSE for adding extra dependence (moby)
594    3. New X86 LOCK instructions (moby)
595    4. New machine description language for reservation tables (scheduling)
596    5. Fixes to various optimization/analysis modules (branch chaining, dominator
597       trees etc.)
598    6. I've changed the CM files so that they can work with versions
599       110.0.6, 110.25 and 110.28
600    
601    ----------------------------------------------------------------------
602    Name: Matthias Blume
603    Date: 2000/06/09 12:40:00
604    Tag: blume-20000609-log
605    Description:
606    
607    - Removed all(?) remaining RCS Log entries from sources.
608    
609    - Fixed bug in ml-yacc and ml-lex sources (use explicit anchors for
610      anchored paths).
611    
612    ----------------------------------------------------------------------
613    Name: Matthias Blume
614    Date: 2000/06/07 17:00:00 JST
615    Tag: blume-20000607-no-implicit-anchors
616    Description:
617    
618    1. This update changes the default setting for
619    CM.Control.implicit_anchors from true to false.  This means that
620    implicit anchors are no longer permitted by default.  I also tried to
621    make sure that nothing else still relies on implicit anchors.
622    (This is the next step on the schedule towards a CM that does not even
623    have the notion of implicit anchors anymore.)
624    
625    2. More CM manual updates.
626    
627    3. I managed to track down and fix the pickling bug I mentioned last
628    time.  Because of the previously existing workaround, this entails no
629    immediate practical changes.
630    
631    ----------------------------------------------------------------------
632    Name: Matthias Blume
633    Date: 2000/06/06 11:15:00 JST
634    Tag: blume-20000606-lazierpickle
635    Description:
636    
637    !!!! NEW BOOT FILES !!!!
638    
639    * The main purpose of this update is to make library pickles lazier in
640    order to reduce the initial space penalty for autoloading a library.
641    As a result, it is now possible to have $smlnj/compiler.cm
642    pre-registered.  This should take care of the many complaints or
643    inquiries about missing structure Compiler.  This required changes to
644    CM's internal data structures and small tweaks to some algorithms.
645    
646    As a neat additional effect, it is no longer necessary (for the sake
647    of lean heap image files) to distinguish between a "minimal" CM and a
648    "full" CM.  Now, there is only one CM (i.e., the "full" version:
649    $smlnj/cm.cm aka $smlnj/cm/full.cm), and it is always available at the
650    interactive top level. ($smlnj/cm/minimal.cm is gone.)
651    
652    To make the life of compiler-hackers easier, "makeml" now also
653    pre-registers $smlnj/cmb.cm (aka $smlnj/cmb/current.cm).  In other
654    words, after you bootstrap a new sml for the first time, you will not
655    have to autoload $smlnj/cmb.cm again afterwards.  (The first time
656    around you will still have to do it, though.)
657    
658    * A second change consists of major updates to the CM manual.  There
659    are now several appendices with summary information and also a full
660    specification of the CM description file syntax.
661    
662    * In directory src/system I added the script "allcross".  This script
663    invokes sml and cross-compiles the compiler for all supported
664    architectures.  (Useful when providing a new set of boot files.)
665    
666    * There seems to be a latent bug in my "lazy pickles" mechanism.  I
667    added a small tweak to pickle-util.sml to work around this problem,
668    but it is not a proper fix yet.  I will investigate further.  (The
669    effect of the bug was an inflation of library pickle size.)
670    
671    * Version number increased to 110.28.1 (to avoid compatibility problems).
672    
673    ----------------------------------------------------------------------
674    Name: Allen Leung
675    Date: 2000/05/25 17:28 EDT
676    Tag: leunga-20000525-ra
677    Description:
678    
679      Fixed a bug in freezing phase of the register allocator.
680    
681    ----------------------------------------------------------------------
682    Name: Allen Leung
683    Date: 2000/05/15 22:53 EDT
684    Tag: leunga-20000515-alpha-x86-ra
685    Description:
686    
687      1. Alpha
688    
689          Slight cleanup.  Removed the instruction SGNXL
690    
691      2. X86
692    
693          Added the following instructions to the instruction set:
694    
695            ROLx, RORx,
696            BTx, BTSx, BTLx, BTRx,
697            XCHGx, and variants with the LOCK prefix
698    
699      3. Register Allocation
700    
701          The module ra-rewrite-with-renaming has been improved.
702    
703      These have no effect on SML/NJ.
704    
705    ----------------------------------------------------------------------
706    Name: Matthias Blume
707    Date: 2000/05/15 16:20:00 JST
708    Tag: blume-20000515-lightrebuild
709    Description:
710    
711    1. I added an alternative to "-rebuild" to "makeml".  The difference is
712       that prior to calling CMB.make' the CM-variable "LIGHT" will be
713       defined.  In effect, the command will not build any cross-compiler
714       backends and therefore finish more quickly.
715    
716       The "fixpt" script also takes a "-light" switch to be able to use
717       this new facility while compiling for a fixpoint.
718    
719    2. I replaced all mentions of anchored paths in group owner specifications
720       with simple relative paths (usually starting with "..").
721       The rationale is that a library's internal workings should not be
722       compromised by the lack of some anchor.  (An anchor is necessary
723       for someone who wants to refer to the library by an anchored path,
724       but it should not be necessary to build the same library in the first
725       place.)
726    
727    3. I changed the way CM's tool mechanism determines the shell command
728       string used for things like ml-yacc etc. so that it does not break
729       when CM.Control.implicit_anchors is turned off.
730    
731    ----------------------------------------------------------------------
732    Name: Matthias Blume
733    Date: 2000/05/12 18:20:00 JST
734    Tag: blume-20000512-ml-build
735    Description:
736    
737    Fixed a bug in config/_ml-build that prevented ml-yacc and ml-lex from
738    getting installed properly (by config/install.sh).
739    
740    ----------------------------------------------------------------------
741    Name: Matthias Blume
742    Date: 2000/05/12 17:30:00 JST
743    Tag: blume-20000512-anchors
744    Description:
745    
746    !!! NEW BOOT FILES !!!
747    
748    This change is in preparation of fading out support for "implicitly
749    anchored path names".  I went through all sources and used the
750    explicit (and relatively new) $-notation.  See system/README and the
751    CM manual for more info on this.
752    
753    I also modified the anchoring scheme for some things such as "smlnj",
754    "MLRISC", "cm", etc. to take advantage of the fact that explicit
755    anchors are more expressive: anchor name and first arc do not have to
756    coincide.  This entails the following user-visible change:
757    
758    You have to write $smlnj/foo/bar instead of smlnj/foo/bar.  In
759    particular, when you fire up sml with a command-line argument, say,
760    e.g.:
761    
762       sml '$smlnj/cmb.cm'
763    
764    At the ML toplevel prompt:
765    
766       CM.autoload "$smlnj/cmb.cm";
767    
768    There is also a new controller in CM.Control that can be used to turn
769    off all remaining support for implicit anchors by saying:
770    
771        CM.autoload "$smlnj/
772        #set CM.Control.implicit_anchors false;
773    
774    This causes CM to reject implicitly anchored paths.  This is (for the
775    time being) less permissive than the "final" version where there will
776    be no more such implicit anchors and relative paths will be just that:
777    relative.
778    
779    The next step (version after next version?) will be to make the
780    default for CM.Control.implicit_anchors false.  After the dust has
781    settled, I can then produce the "final" version of this...
782    
783    Note: Since bootstrapping is a bit tricky, I provided new boot files.
784    
785    ----------------------------------------------------------------------
786    Name: Matthias Blume
787    Date: 2000/05/11 16:30:00 JST
788    Tag: blume-20000511-sources
789    Description:
790    
791    The main change is that I added function CM.sources as a generalized
792    version of the earlier CM.makedepend.  This entails the following
793    additional changes:
794    
795      - CM.makedepend has been dropped.
796    
797      - CM manual has been updated.
798    
799      - TOOLS signature and API have been changed.
800    
801    ----------------------------------------------------------------------
802    Name: Allen Leung
803    Date: 2000/05/10 21:17 EDT
804    Tag: leunga-20000510-moby-c--ssa
805    Description:
806    
807      Various bug fixes and new features for C--, Moby and MLRISC optimizations.
808    None of these affect SML/NJ.
809    
810    1. Register Allocation
811    
812        a. A new ra spilling module (ra/ra-spill-with-renaming) is implemented.
813           This module tries to remove local (i.e. basic block level) redundancies
814           during spilling.
815    
816        b. A new framework for performing region based register allocation.
817           Not yet entirely functional.
818    
819    2. X86
820    
821       a. DefUse for POP was missing the stack pointer [found by Lal]
822       b. Reload for CALL was incorrect in X86Spill [found by John]
823       c. Various fixes in X86Spill so that it can be used correctly for
824          the new spilling module.
825    
826    3. SSA/IR
827    
828       a. New module ir/dj-dataflow.sml implements elimination based
829          data flow analysis.
830    
831    4. MLRiscGen
832    
833       a. Fix for gc type annotation
834    
835    5. MDGen
836    
837       Various fixes for machine description -> ml code translation.  For ssa
838       only.
839    
840    ----------------------------------------------------------------------
841    Name: Allen Leung
842    Date: 2000/05/08 22:17 EDT
843    Tag: leunga-20000508-labexp
844    Description:
845    
846      Fermin has found a few assembly problems with constant expressions
847      generated in LabelExp.  Mostly, the problems involve extra parentheses,
848      which choke on dumb assemblers.  This is his fix.
849    
850    ----------------------------------------------------------------------
851    Name: Dave MacQueen
852    Date: 2000/04/09 14:00 EDT
853    Tag: dbm-20000502-Version_110_28
854    Description:
855    
856    1. Updated src/compiler/TopLevel/main/version.sml to version 110.28
857    
858    2. Updated config/version to 110.28
859    
860    3. Updated config/srcarchiveurl
861    
862    3. New boot files!
863       ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.28/
864    
865    ----------------------------------------------------------------------
866    Name: Matthias Blume
867    Date: 2000/05/01 19:05:00 JST
868    Tag: blume-20000501-noweb
869    Description:
870    
871    A new noweb tool has been added.  The existing system is entirely
872    unaffected by this, but some CM users have asked for renewed noweb
873    support.  Everything is documented in the CM manual.
874    
875    New (plugin) libraries:
876    
877       noweb-tool.cm
878       nw-ext.cm
879    
880    ----------------------------------------------------------------------
881    Name: Dave MacQueen
882    Date: 2000/04/30 12:40PM EDT
883    Tag: dbm-20000430-bug_fixes
884    Description:
885    
886    1. Fix for bug 1498
887       smlnj/src/system/Basis/Implementation/Unsafe/object.sig
888       smlnj/src/system/Basis/Implementation/Unsafe/object.sml
889         added toRealArray function
890       smlnj/src/compiler/MiscUtil/print/ppobj.sml
891         added check for tag Obj.RealArray to array printing case in ppObj
892    
893    2. Fix for bug 1510
894       smlnj/src/compiler/Semant/types/typesutil.sml
895         fixed definition of dummyargs (used by equalTycon) so that
896         dummy args are distinct types
897    
898    ----------------------------------------------------------------------
899    Name: Matthias Blume
900    Date: 2000/04/30 01:00:00 JST
901    Tag: blume-20000430-versions
902    Description:
903    
904    1. CM version numbering added.  This is an implementation of Lal's
905       proposal for adding version numbers and version checking to .cm
906       files.  Lal said that his proposal was just that -- a proposal.
907       For the time being I went ahead and implemented it so that people
908       can comment on it.  Everything is completely backward-compatible
909       (except for the stable library format, i.e., new bootfiles!).
910    
911       As usual, see the CM manual for details.
912    
913    2. An alternative syntax for anchored paths has been implemented.
914       Dave has recently voiced the same concerns that I had when I did
915       this, so there should be some support.  My take is that eventually
916       I will let support for the current syntax (where anchors are
917       "implicit") fade out in favor of the new, explicit syntax.
918       In order to be backward-compatible, both old and new syntax are
919       currently supported.
920    
921       Again, see the CM manual for details.
922    
923    3. Parallel make is trying to be slightly smarter:  When the master
924       process finds a "bottleneck", i.e., when there is only one
925       compilation unit that can be compiled and everybody else is
926       waiting on it, then it will simply compile it directly instead
927       of clumsily telling one of the slaves to do it.
928    
929    4. Support for "unsharing" added.  This is necessary in order to be
930       able to have two different versions of the same library running
931       at the same time (e.g., for trying out a new MLRISC while still
932       having the old MLRISC linked into the current compiler, etc.)
933       See the CM manual.
934    
935    5. Simple "makedepend" functionality added for generating Makefile
936       dependency information.  (This is rather crude at the moment.
937       Expect some changes here in the future.)
938    
939    6. ".fun" added as a recognized suffix for ML files. Also documented
940       explicitly in the manual that the fallback behavior (unknown suffix
941       -> ML file) is not an official feature!
942    
943    7. Small changes to the pickler for stable libraries.
944    
945    8. Several internal changes to CM (for cleanup/improvement).
946    
947    
948    !!!! NEW BINFILES !!!!
949    
950    ----------------------------------------------------------------------
951    Name: Matthias Blume
952    Date: 2000/04/28 17:30:00 JST
953    Tag: blume-20000428-pathconfig
954    Description:
955    
956    1. I changed config/install.sh to remove duplicate entries from the
957       lib/pathconfig file at the end.  Moreover, the final version of
958       lib/pathconfig is sorted alphabetically.  The same (sorting) is done
959       in src/system/installml.
960    
961    2. The config/install.sh script now consistently uses relative
962       pathnames in lib/pathconfig whenever the anchor is in the lib
963       directory.  (So far this was true for the libraries that come
964       pre-compiled and bundled as part of the bootfiles but not for
965       libraries that are compiled by the script itself.)
966    
967    ----------------------------------------------------------------------
968    Name: Matthias Blume
969    Date: 2000/04/26 13:10:00 JST
970    Tag: blume-20000426-fun_suffix
971    Description:
972    
973    Added ".fun" as a recognized file name suffix (for ML code).
974    
975    ----------------------------------------------------------------------
976    Name: Allen Leung
977    Date: 2000/04/25 17:00:00 EST
978    Tag: leunga-20000425-alpha-ra
979    Description:
980    
981    1. Alpha
982    
983        PSEUDOARITH was missing in AlphaRewrite.  This causes an endless loop
984    in C--.
985    
986    2. RA
987    
988       Added a flag "ra-dump-size" to print out the size of the flowgraph
989       and the interference graph.
990    
991    ----------------------------------------------------------------------
992    Name: Dave MacQueen
993    Date: 2000/04/25/
994    Tag: dbm-20000425-mlyacc_doc_examples
995    Description:
996      Updated mlyacc.tex sections 5 and 7 for SML '97 and CM.
997      Updated all three examples in src/ml-yacc/examples to run
998      under 110.* using CM.make.
999    
1000    ----------------------------------------------------------------------
1001    Name: Allen Leung
1002    Date: 2000/04/20 23:04:00 EST
1003    Tag: leunga-20000420-ssa-c---stuff
1004    Description:
1005    
1006      This update synchronizes my repository with Yale's.  Most of these
1007    changes, however, do not affect SML/NJ at all (the RA is an exception).
1008    
1009    1. Register Allocator
1010    
1011       a. An improvement in the interference graph construction:
1012          Given a copy
1013    
1014                s <- t
1015    
1016          no interference edge between s and t is added for this definition of s.
1017    
1018       b. I've added two new spill heuristic modules that Fermin and I developed
1019          (in the new library RA.cm). These are unused in SML/NJ but maybe
1020          useful for others (Moby?)
1021    
1022    2. X86
1023    
1024       a. Various fixes in the backend provided by Fermin [C--] and Lal.
1025    
1026    3. Alpha
1027    
1028       a. Added the BSR instruction and code generation that goes with it [C--]
1029       b. Other fixes too numerous to recount provided by Fermin [C--]
1030    
1031    4. Regmaps
1032    
1033       a. The regmaps are not initialized with the identity physical bindings
1034          at creation time.  This is unneeded.
1035    
1036    5. MLRISC Optimizations
1037    
1038       a. The DJ-Graph module can now compute the iterated dominance frontiers
1039          intersects with liveness incrementally in linear time! Woohoo!
1040          This is now used in my new SSA construction algorithm.
1041    
1042       b. THe branch reorganization module is now smarter about linear chains of
1043          basic blocks.
1044    
1045    
1046    ----------------------------------------------------------------------
1047    Name: Matthias Blume
1048    Date: 2000/04/12 13:52:00 JST
1049    Tag: blume_main_v110p27_1
1050    Description:
1051    
1052    Changed install.sh script to handle archive files without version number
1053    and to use "boot.<arch>-<os>" instead of "sml.boot.<arch>-<os>" for the
1054    name of the boot file archive.
1055    
1056    ----------------------------------------------------------------------
1057    Name: Dave MacQueen
1058    Date: 2000/04/09 14:00 EDT
1059    Tag: dbm-20000410-Version_110_27
1060    Description:
1061    
1062    1. Updated src/compiler/TopLevel/main/version.sml to version 110.27
1063    
1064    2. Updated src/config/version to 110.27
1065    
1066    3. New boot files!
1067    
1068    ----------------------------------------------------------------------
1069    Name: Allen Leung
1070    Date: 2000/04/09 19:09:00 EST
1071    Tag: leunga-20000409-misc
1072    Description:
1073    
1074    1.  Yet another fix for x86 assembly for idivl, imull, mull and friends.
1075    
1076    2.  Miscellaneous improvements to MLRISC (unused in sml/nj)
1077    
1078    ----------------------------------------------------------------------
1079    Name: Stefan
1080    Date: 2000/04/07 10:00:00 EDT
1081    Tag: monnier-20000406-branch-handling
1082    Description:
1083    
1084    Improved handling of branches (mostly those generated from
1085    polymorphic equality), removed switchoff and changed the
1086    default optimization settings (more cpsopt and less flintopt).
1087    
1088    ----------------------------------------------------------------------
1089    Name: Allen Leung
1090    Date: 2000/04/06 01:30:00 EST
1091    Tag: leunga-20000406-peephole-x86-SSA-2
1092    Description:
1093    
1094       Forgot a few files.
1095    
1096    ----------------------------------------------------------------------
1097    Name: Allen Leung
1098    Date: 2000/04/06 00:36:00 EST
1099    Tag: leunga-20000406-peephole-x86-SSA
1100    Description:
1101    
1102    1.  New Peephole code
1103    
1104    2.  Minor improvement to X86 instruction selection
1105    
1106    3.  Various fixes to SSA and machine description -> code translator
1107    
1108    ----------------------------------------------------------------------
1109    Name: Matthias Blume
1110    Date: 2000/04/05 12:30:00 JST
1111    Tag: blume_main_v110p26p2_3
1112    Description:
1113    
1114    This update just merges three minor cosmetic updates to CM's sources
1115    to get ready for the 110.27 code freeze on Friday.  No functionality
1116    has changed.
1117    
1118    ----------------------------------------------------------------------
1119    Name: Allen Leung
1120    Date: 2000/04/04 19:39:00 EST
1121    Tag: leunga-20000404-x86-asm
1122    Description:
1123    
1124    1.  Fixed a problem in X86 assembly.
1125    
1126        Things like
1127    
1128           jmp %eax
1129           jmp (%eax)
1130    
1131        should be output as
1132    
1133           jmp *%eax
1134           jmp *(%eax)
1135    
1136    2.  Assembly output
1137    
1138          Added a new flag
1139    
1140              "asm-indent-copies" (default to false)
1141    
1142          When this flag is on, parallel copies will be indented an extra level.
1143    
1144    ----------------------------------------------------------------------
1145    Name: Allen Leung
1146    Date: 2000/04/04 03:18:00 EST
1147    Tag: leunga-20000404-C--Moby
1148    Description:
1149    
1150        All of these fixes are related to C--, Moby, and my own optimization
1151        stuff; so they shouldn't affect SML/NJ.
1152    
1153    1.  X86
1154    
1155        Various fixes related floating point, and extensions.
1156    
1157    2.  Alpha
1158    
1159        Some extra patterns related to loads with signed/zero extension
1160        provided by Fermin.
1161    
1162    3.  Assembly
1163    
1164        When generating assembly, resolve the value of client defined constants,
1165        instead of generating symbolic values.  This is controlled by the
1166        new flag "asm-resolve-constants", which is default to true.
1167    
1168    4.  Machine Descriptions
1169    
1170        a. The precedence parser was slightly broken when parsing infixr symbols.
1171        b. The type generalizing code had the bound variables reversed, resulting
1172           in a problem during arity raising.
1173        c. Various fixes in machine descriptions.
1174    
1175    ----------------------------------------------------------------------
1176    Name: Matthias Blume
1177    Date: 2000/04/03 16:05:00 JST
1178    Tag: blume_main_v110p26p2_2
1179    Description:
1180    
1181    I eliminated coreEnv from compInfo.  Access to the "Core" structure is
1182    now done via the ordinary static environment that is context to each
1183    compilation unit.
1184    
1185    To this end, I arranged that instead of "structure Core" as "structure
1186    _Core" is bound in the pervasive environment.  Core access is done via
1187    _Core (which can never be accidentally rebound because _Core is not a
1188    legal surface-syntax symbol).
1189    
1190    The current solution is much cleaner because the core environment is
1191    now simply part of the pervasive environment which is part of every
1192    compilation unit's context anyway.  In particular, this eliminates all
1193    special-case handling that was necessary until now in order to deal
1194    with dynamic and symbolic parts of the core environment.
1195    
1196    Remaining hackery (to bind the "magic" symbol _Core) is localized in the
1197    compilation manager's bootstrap compiler (actually: in the "init group"
1198    handling).  See the comments in src/system/smlnj/init/init.cmi for
1199    more details.
1200    
1201    I also tried to track down all mentions of "Core" (as string argument
1202    to Symbol.strSymbol) in the compiler and replaced them with a
1203    reference to the new CoreSym.coreSym.  Seems cleaner since the actual
1204    name appears in one place only.
1205    
1206    Binfile and bootfile format have not changed, but the switchover from
1207    the old "init.cmi" to the new one is a bit tricky, so I supplied new
1208    bootfiles anyway.
1209    
1210    ----------------------------------------------------------------------
1211    Name: Allen Leung
1212    Date: 2000/04/02 21:17:00 EST
1213    Tag: leunga-20000402-mltree
1214    Description:
1215    
1216       1. Renamed the constructor CALL in MLTREE by popular demand.
1217       2. Added a bunch of files from my repository.  These are currently
1218          used by other non-SMLNJ backends.
1219    
1220    ----------------------------------------------------------------------
1221    Name: Allen Leung
1222    Date: 2000/03/31 21:15:00 EST
1223    Tag: leunga-20000331-aliasing
1224    Description:
1225    
1226    This update contains a rewritten (and hopefully more correct) module
1227    for extracting aliasing information from CPS.
1228    
1229       To turn on this feature:
1230    
1231            Compiler.Control.CG.memDisambiguate := true
1232    
1233       To pretty print the region information with assembly
1234    
1235           Compiler.Control.MLRISC.getFlag "asm-show-region" := true;
1236    
1237       To control how many levels of aliasing information are printed, use:
1238    
1239           Compiler.Control.MLRISC.getInt "points-to-show-level" := n
1240    
1241       The default of n is 3.
1242    
1243  ----------------------------------------------------------------------  ----------------------------------------------------------------------
1244  Name: David MacQueen  Name: David MacQueen
# Line 81  Line 1309 
1309     (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
1310     used).     used).
1311    
1312     This was done to accomodate the new "make" and "shell" tools which     This was done to accommodate the new "make" and "shell" tools which
1313     facilitate fairly seemless hookup to portions of code managed using     facilitate fairly seamless hookup to portions of code managed using
1314     Makefiles or Shell scripts.     Makefiles or Shell scripts.
1315    
1316     There are no classes "shared" or "private" anymore.  Instead, the     There are no classes "shared" or "private" anymore.  Instead, the
# Line 94  Line 1322 
1322    
1323     All existing tools are described in the CM manual.     All existing tools are described in the CM manual.
1324    
1325     - Slightly better error handling.  (CM now surpresses many followup     - Slightly better error handling.  (CM now suppresses many followup
1326     error messages that tended to be more annoying than helpful.)     error messages that tended to be more annoying than helpful.)
1327    
1328  2. Major changes to the compiler's static environment data structures.  2. Major changes to the compiler's static environment data structures.
# Line 228  Line 1456 
1456    
1457       I've changed andl to testl in the floating point test sequence       I've changed andl to testl in the floating point test sequence
1458       whenever appropriate.  The Intel optimization guide states that       whenever appropriate.  The Intel optimization guide states that
1459       testl is perferable to andl.       testl is preferable to andl.
1460    
1461  7. RA (x86 only)  7. RA (x86 only)
1462    
# Line 410  Line 1638 
1638    
1639  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an
1640  additional argument called "template" which is an optional string that  additional argument called "template" which is an optional string that
1641  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
1642  explanation.  explanation.
1643    
1644  2. A special-purpose tool can be "regisitered" by simply dropping the  2. A special-purpose tool can be "registered" by simply dropping the
1645  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same
1646  directory where the .cm file lives that uses this tool.  (The  directory where the .cm file lives that uses this tool.  (The
1647  behavior/misfeature until now was to look for the tool description  behavior/misfeature until now was to look for the tool description
# Line 457  Line 1685 
1685  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
1686  <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,
1687  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
1688  perhaps got accidentially killed).  In this case, fixpt will quickly  perhaps got accidentally killed).  In this case, fixpt will quickly
1689  move through what exists before continuing where it left off earlier,  move through what exists before continuing where it left off earlier,
1690  and, thus, saves a lot of time.  and, thus, saves a lot of time.
1691    
# Line 507  Line 1735 
1735    it from that remote directory.    it from that remote directory.
1736    This should simplify installation further:  For machines that have    This should simplify installation further:  For machines that have
1737    access to the internet, just fetch <version>-config.tgz, unpack it,    access to the internet, just fetch <version>-config.tgz, unpack it,
1738    edit config/targets, and go (run config/install.sh).  The scipt will    edit config/targets, and go (run config/install.sh).  The script will
1739    fetch everything else that it might need all by itself.    fetch everything else that it might need all by itself.
1740    
1741    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.589  
changed lines
  Added in v.690

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