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 585, Wed Mar 29 23:55:35 2000 UTC revision 773, Mon Jan 8 16:18:37 2001 UTC
# Line 11  Line 11 
11  Date:  Date:
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    ----------------------------------------------------------------------
15    Name: Matthias Blume
16    Date: 2001/01/09 01:20:00 JST
17    Tag: blume-20010109-rcc
18    Description:
19    
20    This is a fairly big patch, flushing out a large number of pending
21    changes that I made to my development copy over the last couple of days.
22    
23    Of practical relevance at this moment is a workaround for a pickling
24    bug that Allen ran into the other day.  The cause of the bug itself is
25    still unknown and it might be hard to fix it properly, but the
26    workaround has some merits of its own (namely somewhat reducing pickling
27    overhead for certain libraries).  Therefore, I think this solution should
28    be satisfactory at this time.
29    
30    The rest of the changes (i.e., the vast majority) has to do with my
31    ongoing efforts of providing direct support for C function calls from
32    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
33    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
34    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
35    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
36    handle RCC.
37    
38    The last part (the changes to mlriscGen.sml) are still known to be
39    wrong on the x86 and not implemented on all other architectures.  But
40    the infrastructure is in place. I had to change a few functor
41    signatures in the backend to be able to route the CCalls interface
42    from MLRISC there, and I had to specialize the mltree type (on the
43    x86) to include the necessary extensions. (The extensions themselves
44    were already there and redy to go in MLRISC/x86).
45    
46    Everything should be very happy as soon as someone helps me with
47    mlriscGen.sml...
48    
49    In any case, nothing of this should matter to anyone as long as the
50    new primop is not being used (which is going to be the case unless you
51    find it where I hid it :). The rest of the compiler is completely
52    unaffected.
53    
54    ----------------------------------------------------------------------
55    Name: Matthias Blume
56    Date: 2001/01/05 00:30:00 JST
57    Tag: blume-20010105-primops
58    Description:
59    
60    Added some experimental support for work that I am doing right now.
61    These changes mostly concern added primops, but there is also a new
62    experimental C library in the runtime system (but currently not enabled
63    anywhere except on Linux/X86).
64    
65    In the course of adding primops (and playing with them), I discovered that
66    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
67    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
68    To recover, I made type information in INL_PRIM mandatory and changed
69    prim.sml as well as built-in.sml accordingly.  The InLine structure now
70    has complete, correct type information (i.e., no bottom types).
71    
72    Since all these changes mean that we need new binfiles, I also bumped the
73    version number to 110.32.1.
74    
75    ----------------------------------------------------------------------
76    Name: Matthias Blume
77    Date: 2000/12/30 22:10:00 JST
78    Tag: blume-20001230-various
79    Description:
80    
81    Added proxy libraries for MLRISC and let MLRISC libraries refer
82    to each other using path anchors.  (See CM manual for explanation.)
83    
84    Updated CM documentation.
85    
86    Fixed some bugs in CM.
87    
88    Implemented "proxy" libraries (= syntactic sugar for CM).
89    
90    Added "-quiet" option to makeml and changed runtime system accordingly.
91    
92    Added cleanup handler for exportML to reset timers and compiler stats.
93    
94    ----------------------------------------------------------------------
95    Name: Lal George
96    Date: 2000/12/22 22:22:58 EST 2000
97    Tag: Release_110_32
98    Description:
99    
100            Infinite precision used throughout MLRISC.
101            see MLRISC/mltree/machine-int.sig
102    
103    ----------------------------------------------------------------------
104    Name: Matthias Blume
105    Date: 2000/12/22 23:16:00 JST
106    Tag: blume-20001222-warn
107    Description:
108    
109    Corrected wording and formatting of some CM warning message which I
110    broke in my previous patch.
111    
112    ----------------------------------------------------------------------
113    Name: Matthias Blume
114    Date: 2000/12/22 21:20:00 JST
115    Tag: blume-20001222-anchorenv
116    Description:
117    
118    Fixed CM's handling of anchor environments in connection with CMB.make.
119    
120    ----------------------------------------------------------------------
121    Name: Matthias Blume
122    Date: 2000/12/22 13:15:00 JST
123    Tag: blume-20001222-cleanup
124    Description:
125    
126    Removed src/cm/ffi which does not (and did not) belong here.
127    
128    ----------------------------------------------------------------------
129    Name: Matthias Blume
130    Date: 2000/12/21 23:55:00 JST
131    Tag: blume-20001221-exn
132    Description:
133    
134    Probably most important: CM no longer silently swallows all exceptions
135    in the compiler.
136    Plus: some other minor CM changes.  For example, CM now reports some
137    sizes for generated binfiles (code, data, envpickle, lambdapickle).
138    
139    ----------------------------------------------------------------------
140    Name: Matthias Blume
141    Date: 2000/12/15 00:01:05 JST
142    Tag: blume-20001215-dirtool
143    Description:
144    
145    - "dir" tool added.
146    - improvements and cleanup to Tools structure
147    - documentation updates
148    
149    ----------------------------------------------------------------------
150    Name: Allen Leung
151    Date: Thu Dec 14 03:45:24 EST 2000
152    Description:
153    Tag:  leunga-20001214-int-inf
154    Description:
155    
156       In IntInf, added these standard functions, which are missing from our
157    implementation:
158    
159        andb : int * int -> int
160        xorb : int * int -> int
161        orb  : int * int -> int
162        notb : int -> int
163         <<   : int * word -> int
164        ~>>  : int * word -> int
165    
166       Not tested, I hope they are correct.
167    
168    ----------------------------------------------------------------------
169    Name: Allen Leung
170    Date: Fri Dec  8 19:23:26 EST 2000
171    Description:
172    Tag:  leunga-20001208-nowhere
173    Description:
174    
175      Slight improvements to the 'nowhere' tool to handle OR-patterns,
176    to generate better error messages etc.  Plus a brief manual.
177    
178    ----------------------------------------------------------------------
179    Name: Lal George
180    Date: 2000/12/08 09:54:02 EST 2000
181    Tag: Release_110_31
182    Description:
183    
184    - Version 110.31
185    ----------------------------------------------------------------------
186    Name: Allen Leung
187    Date: Thu Dec  7 22:01:04 EST 2000
188    Tag:  leunga-20001207-cell-monster-hack
189    Description:
190    
191    Major MLRISC internal changes.  Affect all clients.
192    Summary:
193    
194    1.  Type CELLS.cell = int is now replaced by a datatype.
195        As a result, the old regmap is now gone.  Almost all interfaces
196        in MLRISC change as a consequence.
197    
198    2.  A new brand version of machine description tool (v3.0) that generates
199        modules expecting the new interface.  The old version is removed.
200    
201    3.  The RA interface has been further abstracted into two new functors.
202        RISC_RA and X86RA.  These functors have much simpler interfaces.
203        [See also directory MLRISC/demo.]
204    
205    4.  Some other new source->source code generation tools are available:
206    
207        a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
208        b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
209           I use this tool to generate the peephole optimizers---with the new
210           cell type changes, peephole rules are becoming difficult to write
211           without conditional pattern matching.
212    
213    5.  More Intmap -> IntHashTable change.  Previous changes by Matthias didn't
214        cover the entire MLRISC source tree so many things broke.
215    
216    6.  CM files have been moved to the subdirectory MLRISC/cm.
217        They are moved because there are a lot of them and they clutter up the
218        root dir.
219    
220    7.  More detailed documentation to come...
221    
222        NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
223        a makeml -rebuild first.  This is because of other other
224        changes that Matthias has made (see below).
225    
226    
227    ----------------------------------------------------------------------
228    Name: Matthias Blume
229    Date: 2000/11/30 23:12:00 JST
230    Tag: blume-20001130-filereorg
231    Description:
232    
233    Some manual updates and some file reorganizations in CM.
234    
235    ----------------------------------------------------------------------
236    Name: Matthias Blume
237    Date: 2000/11/24 17:45:00 JST
238    Tag: blume-20001124-link
239    Description:
240    
241    Drastically improved link traversal code for the case that the dynamic
242    value was already loaded at bootstrap time.  As a result, CM and CMB
243    now both load blazingly fast -- even on a very slow machine.  Also,
244    memory consumption has been further reduced by this.
245    
246    Warning: The format of the PIDMAP file has changed.  THerefore, to
247    bootstrap you have to do this:
248    
249    1. Run CMB.make
250    2. Make a symbolic link for the boot directory:
251         ln -s sml.boot.ARCH-OS xxx
252    3. "Rebuild" the boot directory:
253         ./makeml -boot xxx -rebuild sml ; rm xxx
254    4. Boot normally:
255          ./makeml
256    
257    ----------------------------------------------------------------------
258    Name: Matthias Blume
259    Date: 2000/11/21 21:20:00 JST
260    Tag: blume-20001121-tools
261    Description:
262    
263    Continued hacking on autoloading problem -- with success this time.
264    Also changed tool-plugin mechanism.  See new CM manual.
265    
266    ----------------------------------------------------------------------
267    Name: Matthias Blume
268    Date: 2000/11/19 14:30:00 JST
269    Tag:  blume-20001119-autoload
270    Description:
271    
272    Some hacking to make autoloading faster.  Success for CMB, no success
273    so far for CM.  There is a reduced structure CM' that autoloads faster.
274    (This is a temporary, non-documented hack to be eliminated again when
275    the general problem is solved.)
276    
277    ----------------------------------------------------------------------
278    Name: Matthias Blume
279    Date: 2000/11/17 14:10:00 JST
280    Tag: blume-20001117-pickle-lib
281    Description:
282    
283    1. Eliminated comp-lib.cm
284    2. Made pickle-lib.cm
285    3. Eliminated all uses of intset.sml (from comp-lib.cm)
286    4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
287       equivalent constructs from smlnj-lib.cm (INtHashTable).
288    5. Point 4. also goes for those uses of intmap.* in MLRISC.
289       Duplicated intmap modules thrown out.
290    6. Hunted down all duplicated SCC code and replaced it with
291       equivalent stuff (GraphSCCFn from smlnj-lib.cm).
292    7. Rewrote Feedback module.
293    8. Moved sortedlist.sml into viscomp-lib.cm.  Eventually it
294       should be thrown out and equivalent modules from smlnj-lib.cm
295       should be used (IntRedBlackSet, IntListSet, ...).
296    
297    Confirmed that compiler compiles to fixpoint.
298    
299    ----------------------------------------------------------------------
300    Name: Allen Leung
301    Date: 2000/11/10 18:00:00
302    Tag: leunga-20001110-new-x86-fp
303    
304    A new x86 floating point code generator has been added.
305    By default this is turned off.  To turn this on, do:
306    
307        CM.autoload "$smlnj/compiler.cm";
308        Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
309    
310    Changes:
311    
312    1.  Changed FTAN to FPTAN so that the assembly output is correct.
313    2.  Changed the extension callback for FTANGENT to generate:
314    
315              fptan
316              fstp  %st(0)
317        instead of
318              fptan
319              fstpl ftempmem
320    
321    3.  Numerous assembly fixes for x86.
322    
323    5.  Cleaned up the machine code output module x86/x86MC.sml and added
324        support for a whole bunch of instructions and addressing modes:
325    
326          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st, %st(n)
327          faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp  %st, %st(n)
328          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st(n), %st
329          fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
330          fxch %st(n)
331          fld %st(n)
332          fst %st(n)
333          fst mem
334          fstp %st(n)
335          fucom %st(n)
336          fucomp %st(n)
337    
338        All these are now generated when the fast fp mode is turned on.
339    
340    6.  Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
341    
342    ----------------------------------------------------------------------
343    Name: Matthias Blume
344    Date: 2000/11/09 11:20:00 JST
345    Tag: blume-20001109-scc
346    Description:
347    
348    Eliminated some code duplication:
349    
350    1. Added "where" clause to GraphSCCFn in SML/NJ Library.
351       (Otherwise the functor is useless.)
352    2. Used GraphSCCFn where SCCUtilFun was used previously.
353    3. Got rid of SCCUtilFun (in comp-lib.cm).
354    
355    ----------------------------------------------------------------------
356    Name: Lal George
357    Date: 2000/11/06 09:02:21 EST 2000
358    Tag: Release_110_30
359    Description:
360    
361    - Version 110.30
362    ----------------------------------------------------------------------
363    Name: Matthias Blume
364    Date: 2000/11/04 14:45:00
365    Tag: blume-20001104-mlbuild
366    Description:
367    
368    - Made ml-build faster on startup.
369    - Documentation fixes.
370    
371    ----------------------------------------------------------------------
372    Name: Matthias Blume
373    Date: 2000/11/02 17:00:00 JST
374    Tag: blume-20001102-condcomp
375    Description:
376    
377    - Small tweaks to pickler -- new BOOTFILES!
378    - Version bumped to 110.29.2.
379    - Added conditional compilation facility to init.cmi (see comment there).
380    ----------------------------------------------------------------------
381    Name: Allen Leung
382    Date: 2000/10/23 19:31:00
383    Tag: leunga-20001023-demo-ra
384    
385    1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
386    2. Test programs for the graph library updated
387    3. Some new MLRISC demo programs added
388    
389    ----------------------------------------------------------------------
390    Name: Matthias Blume
391    Date: 2000/08/31 22:15:00 JST
392    Tag: blume-20001017-errmsg
393    Description:
394    
395    More error message grief: Where there used to be no messages, there
396    now were some that had bogus error regions.  Fixed.
397    
398    ----------------------------------------------------------------------
399    Name: Matthias Blume
400    Date: 2000/08/31 17:30:00 JST
401    Tag: blume-20001017-v110p29p1
402    Description:
403    
404    I made a version 110.29.1 with new bootfiles.
405    
406    Changes:  Modified pickler/unpickler for faster and leaner unpickling.
407              CM documentation changes and a small bugfix in CM's error reporting.
408    
409    ----------------------------------------------------------------------
410    Name: Lal George
411    Date: 2000/09/27 14:42:35 EDT
412    Tag: george-20000927-nodestatus
413    Description:
414    
415    Changed the type of the nodestatus, so that:
416    
417            SPILLED(~1)             is now SPILLED
418            SPILLED(m) where m>=0   is now MEMREG(m)
419            SPILLED(s) where s<~1   is now SPILL_LOC(~s)
420    
421    ----------------------------------------------------------------------
422    Name: Matthias Blume
423    Date: 2000/09/07 14:45:00 JST
424    Tag: blume-20000907-cmerrmsg
425    Description:
426    
427    Small tweak to CM to avoid getting ML syntax error messages twice.
428    
429    ----------------------------------------------------------------------
430    Name: Matthias Blume
431    Date: 2000/08/31 18:00:00 JST
432    Tag: blume-20000831-cvsbootfiles
433    Description:
434    
435    New URL for boot files (because the 110.29 files on the BL server do
436    now work correctly with my updated install scripts for yacc and lex).
437    
438    ----------------------------------------------------------------------
439    Name: Matthias Blume
440    Date: 2000/08/08 12:33:00 JST
441    Tag: blume-20000808-manual
442    Description:
443    
444    Tiny update to CM manual.
445    
446    ----------------------------------------------------------------------
447    Name: Allen Leung
448    Date: 2000/08/7 19:31:00
449    Tag: leunga-20000807-a-whole-bunch-of-stuff
450    
451      Moby, C--, SSA, x86, machine descriptions etc.  Should only affect C--
452    and Mobdy.
453    
454    1.  x86
455    
456       a.  Fixes to peephole module by John and Dan.
457       b.  Assembly fix to SETcc by Allen.
458       c.  Fix to c-call by John.
459       d.  Fix to spilling by John.  (This one deals with the missing FSTPT case)
460       e.  Instruction selection optimization to SETcc as suggested by John.
461    
462           For example,
463    
464            MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
465    
466           should generate:
467    
468            MOVL a, x
469            SUBL b, x
470            SHRL 31, x
471    
472    2.  IR stuff
473    
474         A bunch of new DJ-graph related algorithms added.  These
475         speed up SSA construction.
476    
477    3.  SSA + Scheduling
478    
479         Added code for SSA and scheduling to the repository
480    
481    ----------------------------------------------------------------------
482    Name: Lal George
483    Date: 2000/07/27 11:53:14 EDT
484    
485    Tag: lal-20000727-linux-ppc
486    Description:
487    
488     Made changes to support Linux PPC.
489     p.s. I have confirmation that the 110.29 boot files work fine.
490    
491    ----------------------------------------------------------------------
492    Name: Matthias Blume
493    Date: 2000/07/27 17:40:00 JST
494    Tag: blume-20000727-scripts
495    Description:
496    
497    !!!! WARNING !!!!
498    You must recompile the runtime system!
499    !!!! WARNING !!!!
500    
501    This is basically another round of script-enhancements:
502    
503    1. sml, ml-build, and ml-makedepend accept options -D and -U to define
504       and undefine CM preprocessor symbols.
505    
506    2. ml-build avoids generating a new heap image if it finds that the
507       existing one is still ok.  (The condition is that no ML file had to
508       be recompiled and all ML files are found to be older that the heap
509       file.)
510    
511       To make this work smoothly, I also hacked the runtime system as
512       well as SMLofNJ.SysInfo to get access to the heap image suffix
513       (.sparc-solaris, ...) that is currently being used.
514    
515       Moreover, the signature of CM.mk_standalone has changed.  See the
516       CM manual.
517    
518    3. ml-makedepend accepts additional options -n, -a, and -o.  (See the
519       CM manual for details.)
520    
521    4. More CM manual updates:
522        - all of the above has been documented.
523        - there is now a section describing the (CM-related) command line
524          arguments that are accepted by the "sml" command
525    
526    ----------------------------------------------------------------------
527    Name: Matthias Blume
528    Date: 2000/07/25 16:20:00 JST
529    Tag: blume-20000725-makedepend
530    Description:
531    
532    Added a script called ml-makedepend.  This can be used in makefiles
533    for Unix' make in a way very similar to the "makedepend" command for
534    C.
535    
536    The script internally uses function CM.sources.
537    
538    Synopsis:
539    
540        ml-makedepend [-f makefile] cmfile targetname
541    
542    The default for the makefile is "makefile" (or "Makefile" should
543    "makefile" not exist).
544    
545    ml-makedepend adds a cmfile/targetname-specific section to this
546    makefile (after removing the previous version of this section).  The
547    section contains a single dependency specification with targetname on
548    the LHS (targetname is an arbitrary name), and a list of files derived
549    from the cmfile on the RHS.  Some of the files on the RHS are
550    ARCH/OPSYS-specific.  Therefore, ml-makedepend inserts references to
551    "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
552    path names.  The makefile writer is responsible for making sure that
553    these variables have correct at the time "make" is invoked.
554    
555    ----------------------------------------------------------------------
556    Name: Matthias Blume
557    Date: 2000/07/22 23:30:00 JST
558    Tag: blume-20000722-urlupdate
559    Description:
560    
561    Changed BOOT and config/srcarchiveurl to point to BL server:
562    
563        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
564    
565    ----------------------------------------------------------------------
566    Name: Matthias Blume
567    Date: 2000/07/18 18:00:00 JST
568    Tag: blume-20000718-Version_110_29
569    Description:
570    
571    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
572    
573    2. Updated config/version to 110.29
574    
575    3. Updated config/srcarchiveurl
576    
577    3. New boot files!
578       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
579    
580    ----------------------------------------------------------------------
581    Name: Matthias Blume
582    Date: 2000/07/11 13:58:00 JST
583    Tag: blume-20000711-doctypo
584    Description:
585    
586    Fixed a few typos in CM manual.
587    
588    ----------------------------------------------------------------------
589    Name: Allen Leung
590    Date: 2000/06/15 00:38:00
591    Tag: leunga-20000704-sparc-x86
592    
593    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
594    2. fix to x86 RET bug [found by Dan Grossman]
595    3. sparc assembly bug fix for ticc instructions [found by Fermin]
596    
597       Affects c-- and moby only
598    
599    ----------------------------------------------------------------------
600    Name: Matthias Blume
601    Date: 2000/07/04 15:26:00
602    Tag: blume-20000704-trigger
603    Description:
604    
605    1. Improvements to CM manual.
606    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
607       of getting a back-trace.  The function, when called, raises an
608       internal exception which explicitly carries the full back-trace history,
609       so it is unaffected by any intervening handle-raise pairs ("trivial"
610       or not).  The interactive loop will print that history once it arrives
611       at top level.
612       Short of having all exceptions implicitly carry the full history, the
613       recommended way of using this facility is:
614         - compile your program with instrumentation "on"
615         - run it, when it raises an exception, look at the history
616         - if the history is "cut off" because of some handler, go and modify
617           your program so that it explicitly calls BTrace.trigger
618         - recompile (still instrumented), and rerun; look at the full history
619    
620    ----------------------------------------------------------------------
621    Name: Matthias Blume
622    Date: 2000/07/03 15:36:00 JST
623    Tag: blume-20000702-manual
624    Description:
625    
626    Small corrections and updates to CM manual.
627    
628    ----------------------------------------------------------------------
629    Name: Matthias Blume
630    Date: 2000/06/29 16:04:00 JST
631    Tag: blume-20000629-yacctool
632    Description:
633    
634    Changes:
635    
636    1. Class "mlyacc" now takes separate arguments to pass options to
637       generated .sml- and .sig-files independently.
638    2. Corresponding CM manual updates.
639    3. BTrace module now also reports call sites.  (However, for loop clusters
640       it only shows from where the cluster was entered.)  There are associated
641       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
642    
643    ----------------------------------------------------------------------
644    Name: Matthias Blume
645    Date: 2000/06/27 16:51:00 JST
646    Tag: blume-20000627-noweb
647    Description:
648    
649    Changes:
650    
651     1. Implemented "subdir" and "witness" options for noweb tool.
652        This caused some slight internal changes in CM's tool implementation.
653     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
654        some remaining issues from earlier path anchor changes.
655     3. Updated CM manual accordingly.
656    
657     4. Changed implementation of back-tracing so that I now consider it
658        ready for prime-time.
659    
660        In particular, you don't have to explicitly trigger the back-trace
661        anymore.  Instead, if you are running BTrace-instrumented code and
662        there is an uncaught exception (regardless of whether or not it was
663        raised in instrumented code), the top-level evalloop will print
664        the back-trace.
665    
666        Features:
667    
668          - Instrumented and uninstrumented code work together seemlessly.
669            (Of course, uninstrumented code is never mentioned in actual
670             back-traces.)
671    
672          - Asymptotic time- and space-complexity of instrumented code is
673            equal to that of uninstrumented code.  (This means that
674            tail-recursion is preserved by the instrumentation phase.)
675    
676          - Modules whose code has been instrumented in different sessions
677            work together without problem.
678    
679          - There is no penalty whatsoever on uninstrumented code.
680    
681          - There is no penalty on "raise" expressions, even in
682            instrumented code.
683    
684        A potential bug (or perhaps it is a feature, too):
685    
686          A back-trace reaches no further than the outermost instrumented
687          non-trivial "raise".  Here, a "trivial" raise is one that is the
688          sole RHS of a "handle" rule.  Thus, back-traces reach trough
689    
690               <exp> handle e => raise e
691    
692          and even
693    
694               <exp> handle Foo => raise Bar
695    
696          and, of course, through
697    
698               <exp> handle Foo => ...
699    
700         if the exception was not Foo.
701    
702         Back-traces always reach right through any un-instrumented code
703         including any of its "handle" expressions, trivial or not.
704    
705       To try this out, do the following:
706    
707         - Erase all existing binfiles for your program.
708           (You may keep binfiles for those modules where you think you
709            definitely don't need back-tracing.)
710         - Turn on back-trace instrumentation:
711              SMLofNJ.Internals.BTrace.mode (SOME true);
712         - Recompile your program.  (I.e., run "CM.make" or "use".)
713         - You may now turn instrumentation off again (if you want):
714              SMLofNJ.Internals.BTrace.mode (SOME false);
715         - Run your program as usual.  If it raises an exception that
716           reaches the interactive toplevel, then a back-trace will
717           automatically be printed.  After that, the toplevel loop
718           will print the exception history as usual.
719    
720    ----------------------------------------------------------------------
721    Name: Matthias Blume
722    Date: 2000/06/26 09:56:46 JST
723    Tag: blume-20000626-setup
724    Description:
725    
726    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
727          ML code before and after compiling a file (e.g., to set compiler
728          flags)
729    
730    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
731              - associated changes to btrace.sml (BTrace instrumentation pass)
732              - cleaner implementation of btimp.sml (BTrace tracing and report
733                module)
734    
735    CM manual: * new path encoding documented
736               * description of setup-parameter to "sml" added
737    
738    The biggest user-visible change to back-tracing is that it is no
739    longer necessary to compile all traced modules within the same
740    session.  (This was a real limitation.)
741    
742    ----------------------------------------------------------------------
743    Name: Matthias Blume
744    Date: 2000/06/24 12:40:00 JST
745    Tag: blume-20000624-startup
746    Description:
747    
748    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
749    bit too often -- to put it mildly. :)
750    
751    ----------------------------------------------------------------------
752    Name: Matthias Blume
753    Date: 2000/06/23 18:20:00 JST
754    Tag: blume-20000623-btrace
755    Description:
756    
757    This updates adds a backtrace facility to aid programmers in debugging
758    their programs.  This involves the following changes:
759    
760    1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
761       keeping track of the current call stack.  When programs are compiled
762       in a special mode, the compiler will insert calls to these hooks
763       into the user program.
764       "Hook" means that it is possible for different implementations of
765       back-tracing to register themselves (at different times).
766    
767    2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
768       as an Absyn.dec->Absyn.dec rewrite.  Normally this phase is turned off.
769       It can be turned on using this call:
770         SMLofNJ.Internals.BTrace.mode (SOME true);
771       Turning it off again:
772         SMLofNJ.Internals.BTrace.mode (SOME false);
773       Querying the current status:
774         SMLofNJ.Internals.BTrace.mode NONE;
775       Annotated programs are about twice as big as normal ones, and they
776       run a factor of 2 to 4 slower with a dummy back-trace plugin (one
777       where all hooks do nothing).  The slowdown with a plugin that is
778       actually useful (such as the one supplied by default) is even greater,
779       but in the case of the default plugin it is still only an constant
780       factor (amortized).
781    
782    3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
783       with a sub-structure BTrace for controlling back-tracing.  In particular,
784       the above-mentioned function "mode" controls whether the annotation
785       phase is invoked by the compiler.  Another important function is
786       "trigger": when called it aborts the current execution and causes
787       the top-level loop to print a full back-trace.
788    
789    4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
790       for back-tracing.  It keeps track of the dynamic call stack and in
791       addition to that it keeps a partial history at each "level" of that
792       stack.  For example, if a tail-calls b, b tail-calls c, and c tail-calls
793       d and b (at separate times, dynamically), then the report will show:
794    
795       GOTO   d
796             /c
797       GOTO  \b
798       CALL   a
799    
800       This shows that there was an initial non-tail call of a, then a
801       tail-call to b or c, looping behavior in a cluster of functions that
802       consist of b and c, and then a goto from that cluster (i.e., either from
803       b or from c) to d.
804    
805       Note that (depending on the user program) the amount of information
806       that the back-trace module has to keep track of at each level is bounded
807       by a constant.  Thus, the whole implementation has the same asymptotical
808       complexity as the original program (both in space and in time).
809    
810    5. compiler/TopLevel/interact/evalloop.sml has been modified to
811       handle the special exception SMLofNJ.Internals.BTrace.BTrace
812       which is raised by the "trigger" function mentioned above.
813    
814    Notes on usage:
815    
816    - Annotated code works well together with unannotated code:
817    Unannotated calls simply do not show up at all in the backtrace.
818    
819    - It is not a good idea to let modules that were annotated during
820    different sessions run at the same time.  This is because the compiler
821    chooses small integers to identify individual functions, and there
822    will be clashes if different modules were compiled in separate sessions.
823    (Nothing will crash, and you will even be told about the clashes, but
824    back-trace information will in general not be useful.)
825    
826    - Back-tracing can be confused by callcc and capture.
827    
828    - The only way of getting a back-trace right now is to explicitly
829    invoke the "trigger" function from your user program.  Eventually, we
830    should make every exception carry back-trace information (if
831    available).  But since this creates more overhead at "raise"-time
832    (similar to the current exnHistory overhead), I have not yet
833    implemented this.  (The implementation will be rather easy.)  With
834    exceptions carrying back-trace information, this facility will be even
835    more useful because users don't need to modify their programs...
836    
837    - While it is possible to compile the compiler with back-trace
838    annotations turned on (I did it to get some confidence in
839    correctness), you must make absolutely sure that core.sml and
840    btimp.sml are compiled WITHOUT annotation!  (core.sml cannot actually
841    be compiled with annotation because there is no core access yet, but
842    if you compile btimp.sml with annotation, then the system will go into
843    an infinite recursion and crash.)
844    Since CM currently does not know about BTrace, the only way to turn
845    annotations on and off for different modules of the compiler is to
846    interrupt CMB.make, change the settings, and re-invoke it.  Of course,
847    this is awkward and clumsy.
848    
849    Sample sessions:
850    
851    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
852    - SMLofNJ.Internals.BTrace.mode (SOME true);
853    [autoloading]
854    [autoloading done]
855    val it = false : bool
856    - structure X = struct
857    -     fun main n = let
858    -         fun a (x, 0) = d x
859    -           | a (x, n) = b (x, n - 1)
860    -         and b (x, n) = c (x, n)
861    -         and c (x, n) = a (x, n)
862    -         and d x = e (x, 3)
863    -         and e (x, 0) = f x
864    -           | e (x, n) = e (x, n - 1)
865    -         and f 0 = SMLofNJ.Internals.BTrace.trigger ()
866    -           | f n = n * g (n - 1)
867    -         and g n = a (n, 3)
868    -     in
869    -         f n
870    -     end
871    - end;
872    structure X : sig val main : int -> int end
873    - X.main 3;
874    *** BACK-TRACE ***
875    GOTO   stdIn:4.2-13.20: X.main[2].f
876    GOTO-( stdIn:4.2-13.20: X.main[2].e
877    GOTO   stdIn:4.2-13.20: X.main[2].d
878         / stdIn:4.2-13.20: X.main[2].a
879         | stdIn:4.2-13.20: X.main[2].b
880    GOTO-\ stdIn:4.2-13.20: X.main[2].c
881    CALL   stdIn:4.2-13.20: X.main[2].g
882    GOTO   stdIn:4.2-13.20: X.main[2].f
883    GOTO-( stdIn:4.2-13.20: X.main[2].e
884    GOTO   stdIn:4.2-13.20: X.main[2].d
885         / stdIn:4.2-13.20: X.main[2].a
886         | stdIn:4.2-13.20: X.main[2].b
887    GOTO-\ stdIn:4.2-13.20: X.main[2].c
888    CALL   stdIn:4.2-13.20: X.main[2].g
889    GOTO   stdIn:4.2-13.20: X.main[2].f
890    GOTO-( stdIn:4.2-13.20: X.main[2].e
891    GOTO   stdIn:4.2-13.20: X.main[2].d
892         / stdIn:4.2-13.20: X.main[2].a
893         | stdIn:4.2-13.20: X.main[2].b
894    GOTO-\ stdIn:4.2-13.20: X.main[2].c
895    CALL   stdIn:4.2-13.20: X.main[2].g
896    GOTO   stdIn:4.2-13.20: X.main[2].f
897    CALL   stdIn:2.15-17.4: X.main[2]
898    -
899    
900    (Note that because of a FLINt bug the above code currently does not
901    compile without BTrace turned on.)
902    
903    Here is another example, using my modified Tiger compiler:
904    
905    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
906    - SMLofNJ.Internals.BTrace.mode (SOME true);
907    [autoloading]
908    [autoloading done]
909    val it = false : bool
910    - CM.make "sources.cm";
911    [autoloading]
912    ...
913    [autoloading done]
914    [scanning sources.cm]
915    [parsing (sources.cm):parse.sml]
916    [creating directory CM/SKEL ...]
917    [parsing (sources.cm):tiger.lex.sml]
918    ...
919    [wrote CM/sparc-unix/semant.sml]
920    [compiling (sources.cm):main.sml]
921    [wrote CM/sparc-unix/main.sml]
922    [New bindings added.]
923    val it = true : bool
924    - Main.compile ("../testcases/merge.tig", "foo.out");
925    *** BACK-TRACE ***
926    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
927    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
928    CALL   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
929    GOTO   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
930    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
931    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
932    CALL   lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
933         / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
934    CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
935    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
936    CALL   lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
937    CALL   main.sml:1.18-118.4: Main.compile[2]
938    -
939    
940    ----------------------------------------------------------------------
941    Name: Matthias Blumen
942    Date: 2000/06/21 18:00:00 JST
943    Tag: blume-20000621-manual
944    Description:
945    
946    CM manual update: Path environments documented.
947    
948    ----------------------------------------------------------------------
949    Name: Matthias Blume
950    Date: 2000/06/19 13:40:00
951    Tag: blume-20000619-manual
952    Description:
953    
954    CM manual and system/README update.  This only covers the fact that
955    there are no more implicit anchors.  (Path environments and the "bind"
956    option to "cm" have yet to be documented.)
957    
958    ----------------------------------------------------------------------
959    Name: Matthias Blume
960    Date: 2000/06/19 11:05:00 JST
961    Tag: blume-20000619-chdir-bugfix
962    Description:
963    
964    Fixed a bug in new SrcPath module that sometimes led to a bad chDir call.
965    
966    ----------------------------------------------------------------------
967    Name: Matthias Blume
968    Date: 2000/06/18 22:00:10 JST
969    Tag: blume-20000618-implicit-anchors-really-gone
970    Description:
971    
972    I updates the previous HISTORY entry where I forgot to mention that
973    implicit anchors are no longer with us.
974    
975    The current update also gets rid of the (now useless) controller
976    CM.Control.implicit_anchors.
977    
978    ----------------------------------------------------------------------
979    Name: Matthias Blume
980    Date: 2000/06/16 17:30:00 JST
981    Tag: blume-20000616-anchorenv
982    Description:
983    
984    This patch implements the long anticipated (just kidding :) "anchor
985    environment" mechanism.  In the course of doing this, I also
986    re-implemented CM's internal "SrcPath" module from scratch.  The new
987    one should be more robust in certain boundary cases.  In any case, it
988    is a lot cleaner than its predecessor (IMHO).
989    
990    This time, although there is yet another boot file format change, I
991    kept the unpickler backward-compatible.  As a result, no new bootfiles
992    are necessary and bootstrapping is straightforward.  (You cannot read
993    new bootfiles into an old system, but the other way around is no
994    problem.)
995    
996    Visible changes:
997    
998    ** 0. Implicit path anchors (without the leading $-symbol) are no
999    longer recognized at all. This means that such path names are not
1000    illegal either.  For example, the name basis.cm simply refers to a
1001    local file called "basis.cm" (i.e, the name is an ordinary path
1002    relative to .cm-files directory).  Or, to put it differently, only
1003    names that start with $ are anchored paths.
1004    
1005    ** 1. The $<singlearc> abbreviation for $/<singlearc> has finally
1006    vanished.
1007    
1008    John (Reppy) had critizised this as soon as I originally proposed and
1009    implemented it, but at that time I did not really deeply believe
1010    him. :) Now I came full-circle because I need the $<singlearc> syntax
1011    in another place where it cannot be seen as an abbreviation for
1012    $/<singlearc>.  To avoid the confusion, $<singlearc> now means what it
1013    seems to mean (i.e., it "expands" into the corresponding anchor
1014    value).
1015    
1016    However, when paths are used as members in CM description files, it
1017    continues to be true that there must be at least another arc after the
1018    anchor.  This is now enforced separately during semantic analysis
1019    (i.e., from a lexical/syntactical point of view, the notation is ok.)
1020    
1021    ** 2. The "cm" class now accepts an option "bind".  The option's value
1022    is a sub-option list of precisely two items -- one labeled "anchor"
1023    and the other one labeled "value".  As you might expect, "anchor" is
1024    used to specify an anchor name to be bound, and "value" specifies what
1025    the anchor is being bound to.
1026    
1027    The value must be a directory name and can be given in either standard
1028    syntax (including the possibility that it is itself an anchored path)
1029    or native syntax.
1030    
1031    Examples:
1032    
1033       foo.cm (bind:(anchor:bar value:$mystuff/bar))
1034       lib.cm (bind:(anchor:a value:"H:\\x\\y\\z"))  (* only works under windows *)
1035    
1036    and so on.
1037    
1038    The meaning of this is that the .cm-file will be processed with an
1039    augmented anchor environment where the given anchor(s) is/are bound to
1040    the given values(s).
1041    
1042    The rationale for having this feature is this: Suppose you are trying
1043    to use two different (already stable) libraries a.cm and b.cm (that
1044    you perhaps didn't write yourself).  Further, suppose each of these
1045    two libraries internally uses its own auxiliary library $aux/lib.cm.
1046    Normally you would now have a problem because the anchor "lib" can not
1047    be bound to more than one value globally.  Therefore, the project that
1048    uses both a.cm and b.cm must locally redirect the anchor to some other
1049    place:
1050    
1051       a.cm (bind:(anchor:lib value:/usr/lib/smlnj/a-stuff))
1052       b.cm (bind:(anchor:lib value:/usr/lib/smlnj/b-stuff))
1053    
1054    This hard-wires $lib/aux.cm to /usr/lib/smlnj/a-stuff/aux.cm or
1055    /usr/lib/smlnj/b-stuff/aux.cm, respectively.
1056    
1057    Hard-wiring path names is a bit inflexible (and CM will verbosely warn
1058    you when you do so at the time of CM.stabilize).  Therefore, you can
1059    also use an anchored path as the value:
1060    
1061      a.cm (bind:(anchor:lib value:$a-lib))
1062      b.cm (bind:(anchor:lib value:$b-lib))
1063    
1064    Now you can globally configure (using the usual CM.Anchor.anchor or
1065    pathconfig machinery) bindings for "a-lib" and "b-lib".  Since "lib"
1066    itself is always locally bound, setting it globally is no longer
1067    meaningful or necessary (but it does not hurt either).  In fact, "lib"
1068    can still be used as a global anchor for separate purposes.  As a
1069    matter of fact, one can locally define "lib" in terms of a global
1070    "lib":
1071    
1072      a.cm (bind:(anchor:lib value:$lib/a))
1073      b.cm (bind:(anchor:lib value:$lib/b))
1074    
1075    ** 3: The encoding of path names has changed.  This affects the way
1076    path names are shown in CM's progress report and also the internal
1077    protocol encoding used for parallel make.
1078    
1079    The encoding now uses one or more ':'-separated segments.  Each
1080    segments corresponds to a file that has been specified relative to the
1081    file given by its preceding segment.  The first segment is either
1082    relative to the CWD, absolute, or anchored.  Each segment itself is
1083    basically a Unix pathname; all segments but the first are relative.
1084    
1085    Example:
1086    
1087       $foo/bar/baz.cm:a/b/c.sml
1088    
1089    This path denotes the file bar/a/b/c.sml relative to the directory
1090    denoted by anchor "foo".  Notice that the encoding also includes
1091    baz.cm which is the .cm-file that listed a/b/c.sml.  As usual, such
1092    paths are resolved relative to the .cm-files directory, so baz.cm must
1093    be ignored to get the "real" pathname.
1094    
1095    To make this fact more obvious, CM puts the names of such "virtual
1096    arcs" into parentheses when they appear in progress reports. (No
1097    parentheses will appear in the internal protocol encoding.)  Thus,
1098    what you really see is:
1099    
1100      $foo/bar/(baz.cm):a/b/c.sml
1101    
1102    I find this notation to be much more informative than before.
1103    
1104    Another new feature of the encoding is that special characters
1105    including parentheses, colons, (back)slashes, and white space are
1106    written as \ddd (where ddd is the decimal encoding of the character).
1107    
1108    *** The CM manual still needs to be updated.
1109    
1110    ----------------------------------------------------------------------
1111    Name: Allen Leung
1112    Date: 2000/06/15 00:38:00
1113    Tag: leunga-20000615-x86-peephole
1114    
1115    x86 Peephole fix by Fermin.  Affects c-- and moby only.
1116    
1117    ----------------------------------------------------------------------
1118    Name: Matthias Blume
1119    Date: 2000/06/12 11:40:00
1120    Tag: blume-20000612-parmakefix
1121    Description:
1122    
1123    More cleanup after changing the file naming scheme: This time I
1124    repaired the parallel make mechanism for CMB.make which I broke earlier.
1125    
1126    ----------------------------------------------------------------------
1127    Name: Allen Leung
1128    Date: 2000/06/09 01:25:00
1129    Tag: leunga-20000609-various
1130    
1131    None of these things should affect normal SML/NJ operations
1132    
1133    1. Peephole improvements provided by Fermin (c--)
1134    2. New annotation DEFUSE for adding extra dependence (moby)
1135    3. New X86 LOCK instructions (moby)
1136    4. New machine description language for reservation tables (scheduling)
1137    5. Fixes to various optimization/analysis modules (branch chaining, dominator
1138       trees etc.)
1139    6. I've changed the CM files so that they can work with versions
1140       110.0.6, 110.25 and 110.28
1141    
1142    ----------------------------------------------------------------------
1143    Name: Matthias Blume
1144    Date: 2000/06/09 12:40:00
1145    Tag: blume-20000609-log
1146    Description:
1147    
1148    - Removed all(?) remaining RCS Log entries from sources.
1149    
1150    - Fixed bug in ml-yacc and ml-lex sources (use explicit anchors for
1151      anchored paths).
1152    
1153    ----------------------------------------------------------------------
1154    Name: Matthias Blume
1155    Date: 2000/06/07 17:00:00 JST
1156    Tag: blume-20000607-no-implicit-anchors
1157    Description:
1158    
1159    1. This update changes the default setting for
1160    CM.Control.implicit_anchors from true to false.  This means that
1161    implicit anchors are no longer permitted by default.  I also tried to
1162    make sure that nothing else still relies on implicit anchors.
1163    (This is the next step on the schedule towards a CM that does not even
1164    have the notion of implicit anchors anymore.)
1165    
1166    2. More CM manual updates.
1167    
1168    3. I managed to track down and fix the pickling bug I mentioned last
1169    time.  Because of the previously existing workaround, this entails no
1170    immediate practical changes.
1171    
1172    ----------------------------------------------------------------------
1173    Name: Matthias Blume
1174    Date: 2000/06/06 11:15:00 JST
1175    Tag: blume-20000606-lazierpickle
1176    Description:
1177    
1178    !!!! NEW BOOT FILES !!!!
1179    
1180    * The main purpose of this update is to make library pickles lazier in
1181    order to reduce the initial space penalty for autoloading a library.
1182    As a result, it is now possible to have $smlnj/compiler.cm
1183    pre-registered.  This should take care of the many complaints or
1184    inquiries about missing structure Compiler.  This required changes to
1185    CM's internal data structures and small tweaks to some algorithms.
1186    
1187    As a neat additional effect, it is no longer necessary (for the sake
1188    of lean heap image files) to distinguish between a "minimal" CM and a
1189    "full" CM.  Now, there is only one CM (i.e., the "full" version:
1190    $smlnj/cm.cm aka $smlnj/cm/full.cm), and it is always available at the
1191    interactive top level. ($smlnj/cm/minimal.cm is gone.)
1192    
1193    To make the life of compiler-hackers easier, "makeml" now also
1194    pre-registers $smlnj/cmb.cm (aka $smlnj/cmb/current.cm).  In other
1195    words, after you bootstrap a new sml for the first time, you will not
1196    have to autoload $smlnj/cmb.cm again afterwards.  (The first time
1197    around you will still have to do it, though.)
1198    
1199    * A second change consists of major updates to the CM manual.  There
1200    are now several appendices with summary information and also a full
1201    specification of the CM description file syntax.
1202    
1203    * In directory src/system I added the script "allcross".  This script
1204    invokes sml and cross-compiles the compiler for all supported
1205    architectures.  (Useful when providing a new set of boot files.)
1206    
1207    * There seems to be a latent bug in my "lazy pickles" mechanism.  I
1208    added a small tweak to pickle-util.sml to work around this problem,
1209    but it is not a proper fix yet.  I will investigate further.  (The
1210    effect of the bug was an inflation of library pickle size.)
1211    
1212    * Version number increased to 110.28.1 (to avoid compatibility problems).
1213    
1214    ----------------------------------------------------------------------
1215    Name: Allen Leung
1216    Date: 2000/05/25 17:28 EDT
1217    Tag: leunga-20000525-ra
1218    Description:
1219    
1220      Fixed a bug in freezing phase of the register allocator.
1221    
1222    ----------------------------------------------------------------------
1223    Name: Allen Leung
1224    Date: 2000/05/15 22:53 EDT
1225    Tag: leunga-20000515-alpha-x86-ra
1226    Description:
1227    
1228      1. Alpha
1229    
1230          Slight cleanup.  Removed the instruction SGNXL
1231    
1232      2. X86
1233    
1234          Added the following instructions to the instruction set:
1235    
1236            ROLx, RORx,
1237            BTx, BTSx, BTLx, BTRx,
1238            XCHGx, and variants with the LOCK prefix
1239    
1240      3. Register Allocation
1241    
1242          The module ra-rewrite-with-renaming has been improved.
1243    
1244      These have no effect on SML/NJ.
1245    
1246    ----------------------------------------------------------------------
1247    Name: Matthias Blume
1248    Date: 2000/05/15 16:20:00 JST
1249    Tag: blume-20000515-lightrebuild
1250    Description:
1251    
1252    1. I added an alternative to "-rebuild" to "makeml".  The difference is
1253       that prior to calling CMB.make' the CM-variable "LIGHT" will be
1254       defined.  In effect, the command will not build any cross-compiler
1255       backends and therefore finish more quickly.
1256    
1257       The "fixpt" script also takes a "-light" switch to be able to use
1258       this new facility while compiling for a fixpoint.
1259    
1260    2. I replaced all mentions of anchored paths in group owner specifications
1261       with simple relative paths (usually starting with "..").
1262       The rationale is that a library's internal workings should not be
1263       compromised by the lack of some anchor.  (An anchor is necessary
1264       for someone who wants to refer to the library by an anchored path,
1265       but it should not be necessary to build the same library in the first
1266       place.)
1267    
1268    3. I changed the way CM's tool mechanism determines the shell command
1269       string used for things like ml-yacc etc. so that it does not break
1270       when CM.Control.implicit_anchors is turned off.
1271    
1272    ----------------------------------------------------------------------
1273    Name: Matthias Blume
1274    Date: 2000/05/12 18:20:00 JST
1275    Tag: blume-20000512-ml-build
1276    Description:
1277    
1278    Fixed a bug in config/_ml-build that prevented ml-yacc and ml-lex from
1279    getting installed properly (by config/install.sh).
1280    
1281    ----------------------------------------------------------------------
1282    Name: Matthias Blume
1283    Date: 2000/05/12 17:30:00 JST
1284    Tag: blume-20000512-anchors
1285    Description:
1286    
1287    !!! NEW BOOT FILES !!!
1288    
1289    This change is in preparation of fading out support for "implicitly
1290    anchored path names".  I went through all sources and used the
1291    explicit (and relatively new) $-notation.  See system/README and the
1292    CM manual for more info on this.
1293    
1294    I also modified the anchoring scheme for some things such as "smlnj",
1295    "MLRISC", "cm", etc. to take advantage of the fact that explicit
1296    anchors are more expressive: anchor name and first arc do not have to
1297    coincide.  This entails the following user-visible change:
1298    
1299    You have to write $smlnj/foo/bar instead of smlnj/foo/bar.  In
1300    particular, when you fire up sml with a command-line argument, say,
1301    e.g.:
1302    
1303       sml '$smlnj/cmb.cm'
1304    
1305    At the ML toplevel prompt:
1306    
1307       CM.autoload "$smlnj/cmb.cm";
1308    
1309    There is also a new controller in CM.Control that can be used to turn
1310    off all remaining support for implicit anchors by saying:
1311    
1312        CM.autoload "$smlnj/
1313        #set CM.Control.implicit_anchors false;
1314    
1315    This causes CM to reject implicitly anchored paths.  This is (for the
1316    time being) less permissive than the "final" version where there will
1317    be no more such implicit anchors and relative paths will be just that:
1318    relative.
1319    
1320    The next step (version after next version?) will be to make the
1321    default for CM.Control.implicit_anchors false.  After the dust has
1322    settled, I can then produce the "final" version of this...
1323    
1324    Note: Since bootstrapping is a bit tricky, I provided new boot files.
1325    
1326    ----------------------------------------------------------------------
1327    Name: Matthias Blume
1328    Date: 2000/05/11 16:30:00 JST
1329    Tag: blume-20000511-sources
1330    Description:
1331    
1332    The main change is that I added function CM.sources as a generalized
1333    version of the earlier CM.makedepend.  This entails the following
1334    additional changes:
1335    
1336      - CM.makedepend has been dropped.
1337    
1338      - CM manual has been updated.
1339    
1340      - TOOLS signature and API have been changed.
1341    
1342    ----------------------------------------------------------------------
1343    Name: Allen Leung
1344    Date: 2000/05/10 21:17 EDT
1345    Tag: leunga-20000510-moby-c--ssa
1346    Description:
1347    
1348      Various bug fixes and new features for C--, Moby and MLRISC optimizations.
1349    None of these affect SML/NJ.
1350    
1351    1. Register Allocation
1352    
1353        a. A new ra spilling module (ra/ra-spill-with-renaming) is implemented.
1354           This module tries to remove local (i.e. basic block level) redundancies
1355           during spilling.
1356    
1357        b. A new framework for performing region based register allocation.
1358           Not yet entirely functional.
1359    
1360    2. X86
1361    
1362       a. DefUse for POP was missing the stack pointer [found by Lal]
1363       b. Reload for CALL was incorrect in X86Spill [found by John]
1364       c. Various fixes in X86Spill so that it can be used correctly for
1365          the new spilling module.
1366    
1367    3. SSA/IR
1368    
1369       a. New module ir/dj-dataflow.sml implements elimination based
1370          data flow analysis.
1371    
1372    4. MLRiscGen
1373    
1374       a. Fix for gc type annotation
1375    
1376    5. MDGen
1377    
1378       Various fixes for machine description -> ml code translation.  For ssa
1379       only.
1380    
1381    ----------------------------------------------------------------------
1382    Name: Allen Leung
1383    Date: 2000/05/08 22:17 EDT
1384    Tag: leunga-20000508-labexp
1385    Description:
1386    
1387      Fermin has found a few assembly problems with constant expressions
1388      generated in LabelExp.  Mostly, the problems involve extra parentheses,
1389      which choke on dumb assemblers.  This is his fix.
1390    
1391    ----------------------------------------------------------------------
1392    Name: Dave MacQueen
1393    Date: 2000/04/09 14:00 EDT
1394    Tag: dbm-20000502-Version_110_28
1395    Description:
1396    
1397    1. Updated src/compiler/TopLevel/main/version.sml to version 110.28
1398    
1399    2. Updated config/version to 110.28
1400    
1401    3. Updated config/srcarchiveurl
1402    
1403    3. New boot files!
1404       ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.28/
1405    
1406    ----------------------------------------------------------------------
1407    Name: Matthias Blume
1408    Date: 2000/05/01 19:05:00 JST
1409    Tag: blume-20000501-noweb
1410    Description:
1411    
1412    A new noweb tool has been added.  The existing system is entirely
1413    unaffected by this, but some CM users have asked for renewed noweb
1414    support.  Everything is documented in the CM manual.
1415    
1416    New (plugin) libraries:
1417    
1418       noweb-tool.cm
1419       nw-ext.cm
1420    
1421    ----------------------------------------------------------------------
1422    Name: Dave MacQueen
1423    Date: 2000/04/30 12:40PM EDT
1424    Tag: dbm-20000430-bug_fixes
1425    Description:
1426    
1427    1. Fix for bug 1498
1428       smlnj/src/system/Basis/Implementation/Unsafe/object.sig
1429       smlnj/src/system/Basis/Implementation/Unsafe/object.sml
1430         added toRealArray function
1431       smlnj/src/compiler/MiscUtil/print/ppobj.sml
1432         added check for tag Obj.RealArray to array printing case in ppObj
1433    
1434    2. Fix for bug 1510
1435       smlnj/src/compiler/Semant/types/typesutil.sml
1436         fixed definition of dummyargs (used by equalTycon) so that
1437         dummy args are distinct types
1438    
1439    ----------------------------------------------------------------------
1440    Name: Matthias Blume
1441    Date: 2000/04/30 01:00:00 JST
1442    Tag: blume-20000430-versions
1443    Description:
1444    
1445    1. CM version numbering added.  This is an implementation of Lal's
1446       proposal for adding version numbers and version checking to .cm
1447       files.  Lal said that his proposal was just that -- a proposal.
1448       For the time being I went ahead and implemented it so that people
1449       can comment on it.  Everything is completely backward-compatible
1450       (except for the stable library format, i.e., new bootfiles!).
1451    
1452       As usual, see the CM manual for details.
1453    
1454    2. An alternative syntax for anchored paths has been implemented.
1455       Dave has recently voiced the same concerns that I had when I did
1456       this, so there should be some support.  My take is that eventually
1457       I will let support for the current syntax (where anchors are
1458       "implicit") fade out in favor of the new, explicit syntax.
1459       In order to be backward-compatible, both old and new syntax are
1460       currently supported.
1461    
1462       Again, see the CM manual for details.
1463    
1464    3. Parallel make is trying to be slightly smarter:  When the master
1465       process finds a "bottleneck", i.e., when there is only one
1466       compilation unit that can be compiled and everybody else is
1467       waiting on it, then it will simply compile it directly instead
1468       of clumsily telling one of the slaves to do it.
1469    
1470    4. Support for "unsharing" added.  This is necessary in order to be
1471       able to have two different versions of the same library running
1472       at the same time (e.g., for trying out a new MLRISC while still
1473       having the old MLRISC linked into the current compiler, etc.)
1474       See the CM manual.
1475    
1476    5. Simple "makedepend" functionality added for generating Makefile
1477       dependency information.  (This is rather crude at the moment.
1478       Expect some changes here in the future.)
1479    
1480    6. ".fun" added as a recognized suffix for ML files. Also documented
1481       explicitly in the manual that the fallback behavior (unknown suffix
1482       -> ML file) is not an official feature!
1483    
1484    7. Small changes to the pickler for stable libraries.
1485    
1486    8. Several internal changes to CM (for cleanup/improvement).
1487    
1488    
1489    !!!! NEW BINFILES !!!!
1490    
1491    ----------------------------------------------------------------------
1492    Name: Matthias Blume
1493    Date: 2000/04/28 17:30:00 JST
1494    Tag: blume-20000428-pathconfig
1495    Description:
1496    
1497    1. I changed config/install.sh to remove duplicate entries from the
1498       lib/pathconfig file at the end.  Moreover, the final version of
1499       lib/pathconfig is sorted alphabetically.  The same (sorting) is done
1500       in src/system/installml.
1501    
1502    2. The config/install.sh script now consistently uses relative
1503       pathnames in lib/pathconfig whenever the anchor is in the lib
1504       directory.  (So far this was true for the libraries that come
1505       pre-compiled and bundled as part of the bootfiles but not for
1506       libraries that are compiled by the script itself.)
1507    
1508    ----------------------------------------------------------------------
1509    Name: Matthias Blume
1510    Date: 2000/04/26 13:10:00 JST
1511    Tag: blume-20000426-fun_suffix
1512    Description:
1513    
1514    Added ".fun" as a recognized file name suffix (for ML code).
1515    
1516    ----------------------------------------------------------------------
1517    Name: Allen Leung
1518    Date: 2000/04/25 17:00:00 EST
1519    Tag: leunga-20000425-alpha-ra
1520    Description:
1521    
1522    1. Alpha
1523    
1524        PSEUDOARITH was missing in AlphaRewrite.  This causes an endless loop
1525    in C--.
1526    
1527    2. RA
1528    
1529       Added a flag "ra-dump-size" to print out the size of the flowgraph
1530       and the interference graph.
1531    
1532    ----------------------------------------------------------------------
1533    Name: Dave MacQueen
1534    Date: 2000/04/25/
1535    Tag: dbm-20000425-mlyacc_doc_examples
1536    Description:
1537      Updated mlyacc.tex sections 5 and 7 for SML '97 and CM.
1538      Updated all three examples in src/ml-yacc/examples to run
1539      under 110.* using CM.make.
1540    
1541    ----------------------------------------------------------------------
1542    Name: Allen Leung
1543    Date: 2000/04/20 23:04:00 EST
1544    Tag: leunga-20000420-ssa-c---stuff
1545    Description:
1546    
1547      This update synchronizes my repository with Yale's.  Most of these
1548    changes, however, do not affect SML/NJ at all (the RA is an exception).
1549    
1550    1. Register Allocator
1551    
1552       a. An improvement in the interference graph construction:
1553          Given a copy
1554    
1555                s <- t
1556    
1557          no interference edge between s and t is added for this definition of s.
1558    
1559       b. I've added two new spill heuristic modules that Fermin and I developed
1560          (in the new library RA.cm). These are unused in SML/NJ but maybe
1561          useful for others (Moby?)
1562    
1563    2. X86
1564    
1565       a. Various fixes in the backend provided by Fermin [C--] and Lal.
1566    
1567    3. Alpha
1568    
1569       a. Added the BSR instruction and code generation that goes with it [C--]
1570       b. Other fixes too numerous to recount provided by Fermin [C--]
1571    
1572    4. Regmaps
1573    
1574       a. The regmaps are not initialized with the identity physical bindings
1575          at creation time.  This is unneeded.
1576    
1577    5. MLRISC Optimizations
1578    
1579       a. The DJ-Graph module can now compute the iterated dominance frontiers
1580          intersects with liveness incrementally in linear time! Woohoo!
1581          This is now used in my new SSA construction algorithm.
1582    
1583       b. THe branch reorganization module is now smarter about linear chains of
1584          basic blocks.
1585    
1586    
1587    ----------------------------------------------------------------------
1588    Name: Matthias Blume
1589    Date: 2000/04/12 13:52:00 JST
1590    Tag: blume_main_v110p27_1
1591    Description:
1592    
1593    Changed install.sh script to handle archive files without version number
1594    and to use "boot.<arch>-<os>" instead of "sml.boot.<arch>-<os>" for the
1595    name of the boot file archive.
1596    
1597    ----------------------------------------------------------------------
1598    Name: Dave MacQueen
1599    Date: 2000/04/09 14:00 EDT
1600    Tag: dbm-20000410-Version_110_27
1601    Description:
1602    
1603    1. Updated src/compiler/TopLevel/main/version.sml to version 110.27
1604    
1605    2. Updated src/config/version to 110.27
1606    
1607    3. New boot files!
1608    
1609    ----------------------------------------------------------------------
1610    Name: Allen Leung
1611    Date: 2000/04/09 19:09:00 EST
1612    Tag: leunga-20000409-misc
1613    Description:
1614    
1615    1.  Yet another fix for x86 assembly for idivl, imull, mull and friends.
1616    
1617    2.  Miscellaneous improvements to MLRISC (unused in sml/nj)
1618    
1619    ----------------------------------------------------------------------
1620    Name: Stefan
1621    Date: 2000/04/07 10:00:00 EDT
1622    Tag: monnier-20000406-branch-handling
1623    Description:
1624    
1625    Improved handling of branches (mostly those generated from
1626    polymorphic equality), removed switchoff and changed the
1627    default optimization settings (more cpsopt and less flintopt).
1628    
1629    ----------------------------------------------------------------------
1630    Name: Allen Leung
1631    Date: 2000/04/06 01:30:00 EST
1632    Tag: leunga-20000406-peephole-x86-SSA-2
1633    Description:
1634    
1635       Forgot a few files.
1636    
1637    ----------------------------------------------------------------------
1638    Name: Allen Leung
1639    Date: 2000/04/06 00:36:00 EST
1640    Tag: leunga-20000406-peephole-x86-SSA
1641    Description:
1642    
1643    1.  New Peephole code
1644    
1645    2.  Minor improvement to X86 instruction selection
1646    
1647    3.  Various fixes to SSA and machine description -> code translator
1648    
1649    ----------------------------------------------------------------------
1650    Name: Matthias Blume
1651    Date: 2000/04/05 12:30:00 JST
1652    Tag: blume_main_v110p26p2_3
1653    Description:
1654    
1655    This update just merges three minor cosmetic updates to CM's sources
1656    to get ready for the 110.27 code freeze on Friday.  No functionality
1657    has changed.
1658    
1659    ----------------------------------------------------------------------
1660    Name: Allen Leung
1661    Date: 2000/04/04 19:39:00 EST
1662    Tag: leunga-20000404-x86-asm
1663    Description:
1664    
1665    1.  Fixed a problem in X86 assembly.
1666    
1667        Things like
1668    
1669           jmp %eax
1670           jmp (%eax)
1671    
1672        should be output as
1673    
1674           jmp *%eax
1675           jmp *(%eax)
1676    
1677    2.  Assembly output
1678    
1679          Added a new flag
1680    
1681              "asm-indent-copies" (default to false)
1682    
1683          When this flag is on, parallel copies will be indented an extra level.
1684    
1685    ----------------------------------------------------------------------
1686    Name: Allen Leung
1687    Date: 2000/04/04 03:18:00 EST
1688    Tag: leunga-20000404-C--Moby
1689    Description:
1690    
1691        All of these fixes are related to C--, Moby, and my own optimization
1692        stuff; so they shouldn't affect SML/NJ.
1693    
1694    1.  X86
1695    
1696        Various fixes related floating point, and extensions.
1697    
1698    2.  Alpha
1699    
1700        Some extra patterns related to loads with signed/zero extension
1701        provided by Fermin.
1702    
1703    3.  Assembly
1704    
1705        When generating assembly, resolve the value of client defined constants,
1706        instead of generating symbolic values.  This is controlled by the
1707        new flag "asm-resolve-constants", which is default to true.
1708    
1709    4.  Machine Descriptions
1710    
1711        a. The precedence parser was slightly broken when parsing infixr symbols.
1712        b. The type generalizing code had the bound variables reversed, resulting
1713           in a problem during arity raising.
1714        c. Various fixes in machine descriptions.
1715    
1716    ----------------------------------------------------------------------
1717    Name: Matthias Blume
1718    Date: 2000/04/03 16:05:00 JST
1719    Tag: blume_main_v110p26p2_2
1720    Description:
1721    
1722    I eliminated coreEnv from compInfo.  Access to the "Core" structure is
1723    now done via the ordinary static environment that is context to each
1724    compilation unit.
1725    
1726    To this end, I arranged that instead of "structure Core" as "structure
1727    _Core" is bound in the pervasive environment.  Core access is done via
1728    _Core (which can never be accidentally rebound because _Core is not a
1729    legal surface-syntax symbol).
1730    
1731    The current solution is much cleaner because the core environment is
1732    now simply part of the pervasive environment which is part of every
1733    compilation unit's context anyway.  In particular, this eliminates all
1734    special-case handling that was necessary until now in order to deal
1735    with dynamic and symbolic parts of the core environment.
1736    
1737    Remaining hackery (to bind the "magic" symbol _Core) is localized in the
1738    compilation manager's bootstrap compiler (actually: in the "init group"
1739    handling).  See the comments in src/system/smlnj/init/init.cmi for
1740    more details.
1741    
1742    I also tried to track down all mentions of "Core" (as string argument
1743    to Symbol.strSymbol) in the compiler and replaced them with a
1744    reference to the new CoreSym.coreSym.  Seems cleaner since the actual
1745    name appears in one place only.
1746    
1747    Binfile and bootfile format have not changed, but the switchover from
1748    the old "init.cmi" to the new one is a bit tricky, so I supplied new
1749    bootfiles anyway.
1750    
1751    ----------------------------------------------------------------------
1752    Name: Allen Leung
1753    Date: 2000/04/02 21:17:00 EST
1754    Tag: leunga-20000402-mltree
1755    Description:
1756    
1757       1. Renamed the constructor CALL in MLTREE by popular demand.
1758       2. Added a bunch of files from my repository.  These are currently
1759          used by other non-SMLNJ backends.
1760    
1761    ----------------------------------------------------------------------
1762    Name: Allen Leung
1763    Date: 2000/03/31 21:15:00 EST
1764    Tag: leunga-20000331-aliasing
1765    Description:
1766    
1767    This update contains a rewritten (and hopefully more correct) module
1768    for extracting aliasing information from CPS.
1769    
1770       To turn on this feature:
1771    
1772            Compiler.Control.CG.memDisambiguate := true
1773    
1774       To pretty print the region information with assembly
1775    
1776           Compiler.Control.MLRISC.getFlag "asm-show-region" := true;
1777    
1778       To control how many levels of aliasing information are printed, use:
1779    
1780           Compiler.Control.MLRISC.getInt "points-to-show-level" := n
1781    
1782       The default of n is 3.
1783    
1784    ----------------------------------------------------------------------
1785    Name: David MacQueen
1786    Date: 2000/03/31 11:15:00 EST
1787    Tag: dbm-20000331-runtime_fix
1788    Description:
1789    
1790    This update contains:
1791    
1792    1. runtime/c-lib/c-libraries.c
1793       includes added in revision 1.2 caused compilation errors on hppa-hpux
1794    
1795    2. fix for bug 1556
1796       system/Basis/Implementation/NJ/internal-signals.sml
1797    
1798    ----------------------------------------------------------------------
1799    Name: Matthias Blume
1800    Date: 2000/03/31 18:00:00 JST
1801    Tag: blume_main_v110p26p2_1
1802    Description:
1803    
1804    This update contains:
1805    
1806    1. A small change to CM's handling of stable libraries:
1807       CM now maintains one "global" modmap that is used for all stable
1808       libraries.  The use of such a global modmap maximizes sharing and
1809       minimizes the need for re-traversing parts of environments during
1810       modmap construction.  (However, this has minor impact since modmap
1811       construction seems to account for just one percent or less of total
1812       compile time.)
1813    
1814    2. I added a "genmap" phase to the statistics.  This is where I got the
1815       "one percent" number (see above).
1816    
1817    3. CM's new tool parameter mechanism just became _even_ better. :)
1818       - The parser understands named parameters and recursive options.
1819       - The "make" and "shell" tools use these new features.
1820         (This makes it a lot easier to cascade these tools.)
1821       - There is a small syntax change: named parameters use a
1822    
1823           <name> : ( <option> ... )            or
1824           <name> : <string>
1825    
1826         syntax.  Previously, named parameters were implemented in an
1827         ad-hoc fashion by each tool individually (by parsing strings)
1828         and had the form
1829    
1830           <name>=<string>
1831    
1832       See the CM manual for a full description of these issues.
1833    
1834    ----------------------------------------------------------------------
1835    Name: Matthias Blume
1836    Date: 2000/03/30 18:00:00 JST
1837    Tag: blume_main_v110p26p2_0
1838    Description:
1839    
1840    !!!!! WARNING !!!!!!
1841    !!  New binfiles  !!
1842    !!!!!!!!!!!!!!!!!!!!
1843    
1844    This update contains:
1845    
1846    1. Moderate changes to CM:
1847    
1848       - Changes to CM's tools mechanism.  In particular, it is now possible
1849       to have tools that accept additional "command line" parameters
1850       (specified in the .cm file at each instance where the tool's class is
1851       used).
1852    
1853       This was done to accommodate the new "make" and "shell" tools which
1854       facilitate fairly seamless hookup to portions of code managed using
1855       Makefiles or Shell scripts.
1856    
1857       There are no classes "shared" or "private" anymore.  Instead, the
1858       sharing annotation is now a parameter to the "sml" class.
1859    
1860       There is a bit of generic machinery for implementing one's own
1861       tools that accept command-line parameters.  However, I am not yet fully
1862       satisfied with that part, so expect changes here in the future.
1863    
1864       All existing tools are described in the CM manual.
1865    
1866       - Slightly better error handling.  (CM now suppresses many followup
1867       error messages that tended to be more annoying than helpful.)
1868    
1869    2. Major changes to the compiler's static environment data structures.
1870    
1871       - no CMStaticEnv anymore.
1872            - no CMEnv, no "BareEnvironment" (actually, _only_ BareEnvironment,
1873              but it is called Environment), no conversions between different
1874              kinds of static environments
1875    
1876       - There is still a notion of a "modmap", but such modmaps are generated
1877         on demand at the time when they are needed.  This sounds slow, but I
1878         sped up the code that generates modmaps enough for this not to lead to
1879         a slowdown of the compiler (at least I didn't detect any).
1880    
1881       - To facilitate rapid modmap generation, static environments now
1882         contain an (optional) "modtree" structure.  Modtree annotations are
1883         constructed by the unpickler during unpickling.  (This means that
1884         the elaborator does not have to worry about modtrees at all.)
1885         Modtrees have the advantage that they are compositional in the same
1886         way as the environment data structure itself is compositional.
1887         As a result, modtrees never hang on to parts of an environment that
1888         has already been rendered "stale" by filtering or rebinding.
1889    
1890       - I went through many, many trials and errors before arriving at the
1891         current solution.  (The initial idea of "linkpaths" did not work.)
1892         But the result of all this is that I have touched a lot of files that
1893         depend on the "modules" and "types" data structures (most of the
1894         elaborator). There were a lot of changes during my "linkpath" trials
1895         that could have been reverted to their original state but weren't.
1896         Please, don't be too harsh on me for messing with this code a bit more
1897         than what was strictly necessary...  (I _did_ resist the tempation
1898         of doing any "global reformatting" to avoid an untimely death at
1899         Dave's hands. :)
1900    
1901       - One positive aspect of the previous point:  At least I made sure that
1902         all files that I touched now compile without warnings (other than
1903         "polyEqual").
1904    
1905       - compiler now tends to run "leaner" (i.e., ties up less memory in
1906         redundant modmaps)
1907    
1908  ----------------------------------------------------------------------  ----------------------------------------------------------------------
1909  Name: Allen Leung  Name: Allen Leung
1910  Date: 2000/03/29 18:00:00  Date: 2000/03/29 18:00:00
1911  Tag: leunga-20000327-mlriscGen_hppa_alpha_x86  Tag: leunga-20000327-mlriscGen_hppa_alpha_x86
1912    Boot files (optional): ftp://react-ilp.cs.nyu.edu/leunga/110.26.1-sml.boot.x86-unix-20000330.tar.gz
1913  Description:  Description:
1914    
1915     This update contains *MAJOR* changes to the way code is generated from CPS     This update contains *MAJOR* changes to the way code is generated from CPS
# Line 103  Line 1997 
1997    
1998       I've changed andl to testl in the floating point test sequence       I've changed andl to testl in the floating point test sequence
1999       whenever appropriate.  The Intel optimization guide states that       whenever appropriate.  The Intel optimization guide states that
2000       testl is perferable to andl.       testl is preferable to andl.
2001    
2002  7. RA (x86 only)  7. RA (x86 only)
2003    
# Line 285  Line 2179 
2179    
2180  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an
2181  additional argument called "template" which is an optional string that  additional argument called "template" which is an optional string that
2182  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
2183  explanation.  explanation.
2184    
2185  2. A special-purpose tool can be "regisitered" by simply dropping the  2. A special-purpose tool can be "registered" by simply dropping the
2186  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same
2187  directory where the .cm file lives that uses this tool.  (The  directory where the .cm file lives that uses this tool.  (The
2188  behavior/misfeature until now was to look for the tool description  behavior/misfeature until now was to look for the tool description
# Line 332  Line 2226 
2226  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
2227  <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,
2228  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
2229  perhaps got accidentially killed).  In this case, fixpt will quickly  perhaps got accidentally killed).  In this case, fixpt will quickly
2230  move through what exists before continuing where it left off earlier,  move through what exists before continuing where it left off earlier,
2231  and, thus, saves a lot of time.  and, thus, saves a lot of time.
2232    
# Line 382  Line 2276 
2276    it from that remote directory.    it from that remote directory.
2277    This should simplify installation further:  For machines that have    This should simplify installation further:  For machines that have
2278    access to the internet, just fetch <version>-config.tgz, unpack it,    access to the internet, just fetch <version>-config.tgz, unpack it,
2279    edit config/targets, and go (run config/install.sh).  The scipt will    edit config/targets, and go (run config/install.sh).  The script will
2280    fetch everything else that it might need all by itself.    fetch everything else that it might need all by itself.
2281    
2282    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.585  
changed lines
  Added in v.773

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