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 645, Mon May 15 07:17:30 2000 UTC revision 778, Fri Jan 12 14:06:33 2001 UTC
# Line 13  Line 13 
13  Description:  Description:
14  ----------------------------------------------------------------------  ----------------------------------------------------------------------
15  Name: Matthias Blume  Name: Matthias Blume
16    Date: 2001/01/12 23:30:00 JST
17    Tag: blume-20010112-bootfiles
18    Description:
19    
20    Made a new set of bootfiles that goes with the current state of the
21    repository.
22    
23    ----------------------------------------------------------------------
24    Name: Matthias Blume
25    Date: 2001/01/12 21:20:00 JST
26    Tag: blume-20010112-sync
27    Description:
28    
29    I am just flushing out some minor changes that had accumulated in
30    my private branch in order to sync with the main tree.  (This is
31    mainly because I had CVS trouble when trying to merge _into_ my
32    private branch.)
33    
34    Most people should be completely unaffected by this.
35    
36    ----------------------------------------------------------------------
37    Name: Allen Leung
38    Date: Thu Jan 11 21:03:00 EST 2001
39    Tag: leunga-20010111-labexp=mltree
40    Description:
41    
42    1.  Removed the type LabelExp and replace it by MLTree.
43    2.  Rewritten mltree-simplify with the pattern matcher tool.
44    3.  There were some bugs in alpha code generator which would break
45        64-bit code generation.
46    4.  Redo the tools to generate code with the
47    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
48        are now generated by perl scripts.
49    
50    ----------------------------------------------------------------------
51    Name: Matthias Blume
52    Date: 2001/01/10 21:55:00 JST
53    Tag: blume-20010110-rcc
54    Description:
55    
56    The RCC stuff now seems to work (but only on the x86).
57    This required hacking of the c-calls interface (and -implementation) in
58    MLRISC.
59    
60    Normal compiler users should be unaffected.
61    
62    ----------------------------------------------------------------------
63    Name: Matthias Blume
64    Date: 2001/01/09 01:20:00 JST
65    Tag: blume-20010109-rcc
66    Description:
67    
68    This is a fairly big patch, flushing out a large number of pending
69    changes that I made to my development copy over the last couple of days.
70    
71    Of practical relevance at this moment is a workaround for a pickling
72    bug that Allen ran into the other day.  The cause of the bug itself is
73    still unknown and it might be hard to fix it properly, but the
74    workaround has some merits of its own (namely somewhat reducing pickling
75    overhead for certain libraries).  Therefore, I think this solution should
76    be satisfactory at this time.
77    
78    The rest of the changes (i.e., the vast majority) has to do with my
79    ongoing efforts of providing direct support for C function calls from
80    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
81    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
82    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
83    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
84    handle RCC.
85    
86    The last part (the changes to mlriscGen.sml) are still known to be
87    wrong on the x86 and not implemented on all other architectures.  But
88    the infrastructure is in place. I had to change a few functor
89    signatures in the backend to be able to route the CCalls interface
90    from MLRISC there, and I had to specialize the mltree type (on the
91    x86) to include the necessary extensions. (The extensions themselves
92    were already there and redy to go in MLRISC/x86).
93    
94    Everything should be very happy as soon as someone helps me with
95    mlriscGen.sml...
96    
97    In any case, nothing of this should matter to anyone as long as the
98    new primop is not being used (which is going to be the case unless you
99    find it where I hid it :). The rest of the compiler is completely
100    unaffected.
101    
102    ----------------------------------------------------------------------
103    Name: Matthias Blume
104    Date: 2001/01/05 00:30:00 JST
105    Tag: blume-20010105-primops
106    Description:
107    
108    Added some experimental support for work that I am doing right now.
109    These changes mostly concern added primops, but there is also a new
110    experimental C library in the runtime system (but currently not enabled
111    anywhere except on Linux/X86).
112    
113    In the course of adding primops (and playing with them), I discovered that
114    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
115    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
116    To recover, I made type information in INL_PRIM mandatory and changed
117    prim.sml as well as built-in.sml accordingly.  The InLine structure now
118    has complete, correct type information (i.e., no bottom types).
119    
120    Since all these changes mean that we need new binfiles, I also bumped the
121    version number to 110.32.1.
122    
123    ----------------------------------------------------------------------
124    Name: Matthias Blume
125    Date: 2000/12/30 22:10:00 JST
126    Tag: blume-20001230-various
127    Description:
128    
129    Added proxy libraries for MLRISC and let MLRISC libraries refer
130    to each other using path anchors.  (See CM manual for explanation.)
131    
132    Updated CM documentation.
133    
134    Fixed some bugs in CM.
135    
136    Implemented "proxy" libraries (= syntactic sugar for CM).
137    
138    Added "-quiet" option to makeml and changed runtime system accordingly.
139    
140    Added cleanup handler for exportML to reset timers and compiler stats.
141    
142    ----------------------------------------------------------------------
143    Name: Lal George
144    Date: 2000/12/22 22:22:58 EST 2000
145    Tag: Release_110_32
146    Description:
147    
148            Infinite precision used throughout MLRISC.
149            see MLRISC/mltree/machine-int.sig
150    
151    ----------------------------------------------------------------------
152    Name: Matthias Blume
153    Date: 2000/12/22 23:16:00 JST
154    Tag: blume-20001222-warn
155    Description:
156    
157    Corrected wording and formatting of some CM warning message which I
158    broke in my previous patch.
159    
160    ----------------------------------------------------------------------
161    Name: Matthias Blume
162    Date: 2000/12/22 21:20:00 JST
163    Tag: blume-20001222-anchorenv
164    Description:
165    
166    Fixed CM's handling of anchor environments in connection with CMB.make.
167    
168    ----------------------------------------------------------------------
169    Name: Matthias Blume
170    Date: 2000/12/22 13:15:00 JST
171    Tag: blume-20001222-cleanup
172    Description:
173    
174    Removed src/cm/ffi which does not (and did not) belong here.
175    
176    ----------------------------------------------------------------------
177    Name: Matthias Blume
178    Date: 2000/12/21 23:55:00 JST
179    Tag: blume-20001221-exn
180    Description:
181    
182    Probably most important: CM no longer silently swallows all exceptions
183    in the compiler.
184    Plus: some other minor CM changes.  For example, CM now reports some
185    sizes for generated binfiles (code, data, envpickle, lambdapickle).
186    
187    ----------------------------------------------------------------------
188    Name: Matthias Blume
189    Date: 2000/12/15 00:01:05 JST
190    Tag: blume-20001215-dirtool
191    Description:
192    
193    - "dir" tool added.
194    - improvements and cleanup to Tools structure
195    - documentation updates
196    
197    ----------------------------------------------------------------------
198    Name: Allen Leung
199    Date: Thu Dec 14 03:45:24 EST 2000
200    Description:
201    Tag:  leunga-20001214-int-inf
202    Description:
203    
204       In IntInf, added these standard functions, which are missing from our
205    implementation:
206    
207        andb : int * int -> int
208        xorb : int * int -> int
209        orb  : int * int -> int
210        notb : int -> int
211         <<   : int * word -> int
212        ~>>  : int * word -> int
213    
214       Not tested, I hope they are correct.
215    
216    ----------------------------------------------------------------------
217    Name: Allen Leung
218    Date: Fri Dec  8 19:23:26 EST 2000
219    Description:
220    Tag:  leunga-20001208-nowhere
221    Description:
222    
223      Slight improvements to the 'nowhere' tool to handle OR-patterns,
224    to generate better error messages etc.  Plus a brief manual.
225    
226    ----------------------------------------------------------------------
227    Name: Lal George
228    Date: 2000/12/08 09:54:02 EST 2000
229    Tag: Release_110_31
230    Description:
231    
232    - Version 110.31
233    ----------------------------------------------------------------------
234    Name: Allen Leung
235    Date: Thu Dec  7 22:01:04 EST 2000
236    Tag:  leunga-20001207-cell-monster-hack
237    Description:
238    
239    Major MLRISC internal changes.  Affect all clients.
240    Summary:
241    
242    1.  Type CELLS.cell = int is now replaced by a datatype.
243        As a result, the old regmap is now gone.  Almost all interfaces
244        in MLRISC change as a consequence.
245    
246    2.  A new brand version of machine description tool (v3.0) that generates
247        modules expecting the new interface.  The old version is removed.
248    
249    3.  The RA interface has been further abstracted into two new functors.
250        RISC_RA and X86RA.  These functors have much simpler interfaces.
251        [See also directory MLRISC/demo.]
252    
253    4.  Some other new source->source code generation tools are available:
254    
255        a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
256        b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
257           I use this tool to generate the peephole optimizers---with the new
258           cell type changes, peephole rules are becoming difficult to write
259           without conditional pattern matching.
260    
261    5.  More Intmap -> IntHashTable change.  Previous changes by Matthias didn't
262        cover the entire MLRISC source tree so many things broke.
263    
264    6.  CM files have been moved to the subdirectory MLRISC/cm.
265        They are moved because there are a lot of them and they clutter up the
266        root dir.
267    
268    7.  More detailed documentation to come...
269    
270        NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
271        a makeml -rebuild first.  This is because of other other
272        changes that Matthias has made (see below).
273    
274    
275    ----------------------------------------------------------------------
276    Name: Matthias Blume
277    Date: 2000/11/30 23:12:00 JST
278    Tag: blume-20001130-filereorg
279    Description:
280    
281    Some manual updates and some file reorganizations in CM.
282    
283    ----------------------------------------------------------------------
284    Name: Matthias Blume
285    Date: 2000/11/24 17:45:00 JST
286    Tag: blume-20001124-link
287    Description:
288    
289    Drastically improved link traversal code for the case that the dynamic
290    value was already loaded at bootstrap time.  As a result, CM and CMB
291    now both load blazingly fast -- even on a very slow machine.  Also,
292    memory consumption has been further reduced by this.
293    
294    Warning: The format of the PIDMAP file has changed.  THerefore, to
295    bootstrap you have to do this:
296    
297    1. Run CMB.make
298    2. Make a symbolic link for the boot directory:
299         ln -s sml.boot.ARCH-OS xxx
300    3. "Rebuild" the boot directory:
301         ./makeml -boot xxx -rebuild sml ; rm xxx
302    4. Boot normally:
303          ./makeml
304    
305    ----------------------------------------------------------------------
306    Name: Matthias Blume
307    Date: 2000/11/21 21:20:00 JST
308    Tag: blume-20001121-tools
309    Description:
310    
311    Continued hacking on autoloading problem -- with success this time.
312    Also changed tool-plugin mechanism.  See new CM manual.
313    
314    ----------------------------------------------------------------------
315    Name: Matthias Blume
316    Date: 2000/11/19 14:30:00 JST
317    Tag:  blume-20001119-autoload
318    Description:
319    
320    Some hacking to make autoloading faster.  Success for CMB, no success
321    so far for CM.  There is a reduced structure CM' that autoloads faster.
322    (This is a temporary, non-documented hack to be eliminated again when
323    the general problem is solved.)
324    
325    ----------------------------------------------------------------------
326    Name: Matthias Blume
327    Date: 2000/11/17 14:10:00 JST
328    Tag: blume-20001117-pickle-lib
329    Description:
330    
331    1. Eliminated comp-lib.cm
332    2. Made pickle-lib.cm
333    3. Eliminated all uses of intset.sml (from comp-lib.cm)
334    4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
335       equivalent constructs from smlnj-lib.cm (INtHashTable).
336    5. Point 4. also goes for those uses of intmap.* in MLRISC.
337       Duplicated intmap modules thrown out.
338    6. Hunted down all duplicated SCC code and replaced it with
339       equivalent stuff (GraphSCCFn from smlnj-lib.cm).
340    7. Rewrote Feedback module.
341    8. Moved sortedlist.sml into viscomp-lib.cm.  Eventually it
342       should be thrown out and equivalent modules from smlnj-lib.cm
343       should be used (IntRedBlackSet, IntListSet, ...).
344    
345    Confirmed that compiler compiles to fixpoint.
346    
347    ----------------------------------------------------------------------
348    Name: Allen Leung
349    Date: 2000/11/10 18:00:00
350    Tag: leunga-20001110-new-x86-fp
351    
352    A new x86 floating point code generator has been added.
353    By default this is turned off.  To turn this on, do:
354    
355        CM.autoload "$smlnj/compiler.cm";
356        Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
357    
358    Changes:
359    
360    1.  Changed FTAN to FPTAN so that the assembly output is correct.
361    2.  Changed the extension callback for FTANGENT to generate:
362    
363              fptan
364              fstp  %st(0)
365        instead of
366              fptan
367              fstpl ftempmem
368    
369    3.  Numerous assembly fixes for x86.
370    
371    5.  Cleaned up the machine code output module x86/x86MC.sml and added
372        support for a whole bunch of instructions and addressing modes:
373    
374          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st, %st(n)
375          faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp  %st, %st(n)
376          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st(n), %st
377          fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
378          fxch %st(n)
379          fld %st(n)
380          fst %st(n)
381          fst mem
382          fstp %st(n)
383          fucom %st(n)
384          fucomp %st(n)
385    
386        All these are now generated when the fast fp mode is turned on.
387    
388    6.  Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
389    
390    ----------------------------------------------------------------------
391    Name: Matthias Blume
392    Date: 2000/11/09 11:20:00 JST
393    Tag: blume-20001109-scc
394    Description:
395    
396    Eliminated some code duplication:
397    
398    1. Added "where" clause to GraphSCCFn in SML/NJ Library.
399       (Otherwise the functor is useless.)
400    2. Used GraphSCCFn where SCCUtilFun was used previously.
401    3. Got rid of SCCUtilFun (in comp-lib.cm).
402    
403    ----------------------------------------------------------------------
404    Name: Lal George
405    Date: 2000/11/06 09:02:21 EST 2000
406    Tag: Release_110_30
407    Description:
408    
409    - Version 110.30
410    ----------------------------------------------------------------------
411    Name: Matthias Blume
412    Date: 2000/11/04 14:45:00
413    Tag: blume-20001104-mlbuild
414    Description:
415    
416    - Made ml-build faster on startup.
417    - Documentation fixes.
418    
419    ----------------------------------------------------------------------
420    Name: Matthias Blume
421    Date: 2000/11/02 17:00:00 JST
422    Tag: blume-20001102-condcomp
423    Description:
424    
425    - Small tweaks to pickler -- new BOOTFILES!
426    - Version bumped to 110.29.2.
427    - Added conditional compilation facility to init.cmi (see comment there).
428    ----------------------------------------------------------------------
429    Name: Allen Leung
430    Date: 2000/10/23 19:31:00
431    Tag: leunga-20001023-demo-ra
432    
433    1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
434    2. Test programs for the graph library updated
435    3. Some new MLRISC demo programs added
436    
437    ----------------------------------------------------------------------
438    Name: Matthias Blume
439    Date: 2000/08/31 22:15:00 JST
440    Tag: blume-20001017-errmsg
441    Description:
442    
443    More error message grief: Where there used to be no messages, there
444    now were some that had bogus error regions.  Fixed.
445    
446    ----------------------------------------------------------------------
447    Name: Matthias Blume
448    Date: 2000/08/31 17:30:00 JST
449    Tag: blume-20001017-v110p29p1
450    Description:
451    
452    I made a version 110.29.1 with new bootfiles.
453    
454    Changes:  Modified pickler/unpickler for faster and leaner unpickling.
455              CM documentation changes and a small bugfix in CM's error reporting.
456    
457    ----------------------------------------------------------------------
458    Name: Lal George
459    Date: 2000/09/27 14:42:35 EDT
460    Tag: george-20000927-nodestatus
461    Description:
462    
463    Changed the type of the nodestatus, so that:
464    
465            SPILLED(~1)             is now SPILLED
466            SPILLED(m) where m>=0   is now MEMREG(m)
467            SPILLED(s) where s<~1   is now SPILL_LOC(~s)
468    
469    ----------------------------------------------------------------------
470    Name: Matthias Blume
471    Date: 2000/09/07 14:45:00 JST
472    Tag: blume-20000907-cmerrmsg
473    Description:
474    
475    Small tweak to CM to avoid getting ML syntax error messages twice.
476    
477    ----------------------------------------------------------------------
478    Name: Matthias Blume
479    Date: 2000/08/31 18:00:00 JST
480    Tag: blume-20000831-cvsbootfiles
481    Description:
482    
483    New URL for boot files (because the 110.29 files on the BL server do
484    now work correctly with my updated install scripts for yacc and lex).
485    
486    ----------------------------------------------------------------------
487    Name: Matthias Blume
488    Date: 2000/08/08 12:33:00 JST
489    Tag: blume-20000808-manual
490    Description:
491    
492    Tiny update to CM manual.
493    
494    ----------------------------------------------------------------------
495    Name: Allen Leung
496    Date: 2000/08/7 19:31:00
497    Tag: leunga-20000807-a-whole-bunch-of-stuff
498    
499      Moby, C--, SSA, x86, machine descriptions etc.  Should only affect C--
500    and Mobdy.
501    
502    1.  x86
503    
504       a.  Fixes to peephole module by John and Dan.
505       b.  Assembly fix to SETcc by Allen.
506       c.  Fix to c-call by John.
507       d.  Fix to spilling by John.  (This one deals with the missing FSTPT case)
508       e.  Instruction selection optimization to SETcc as suggested by John.
509    
510           For example,
511    
512            MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
513    
514           should generate:
515    
516            MOVL a, x
517            SUBL b, x
518            SHRL 31, x
519    
520    2.  IR stuff
521    
522         A bunch of new DJ-graph related algorithms added.  These
523         speed up SSA construction.
524    
525    3.  SSA + Scheduling
526    
527         Added code for SSA and scheduling to the repository
528    
529    ----------------------------------------------------------------------
530    Name: Lal George
531    Date: 2000/07/27 11:53:14 EDT
532    
533    Tag: lal-20000727-linux-ppc
534    Description:
535    
536     Made changes to support Linux PPC.
537     p.s. I have confirmation that the 110.29 boot files work fine.
538    
539    ----------------------------------------------------------------------
540    Name: Matthias Blume
541    Date: 2000/07/27 17:40:00 JST
542    Tag: blume-20000727-scripts
543    Description:
544    
545    !!!! WARNING !!!!
546    You must recompile the runtime system!
547    !!!! WARNING !!!!
548    
549    This is basically another round of script-enhancements:
550    
551    1. sml, ml-build, and ml-makedepend accept options -D and -U to define
552       and undefine CM preprocessor symbols.
553    
554    2. ml-build avoids generating a new heap image if it finds that the
555       existing one is still ok.  (The condition is that no ML file had to
556       be recompiled and all ML files are found to be older that the heap
557       file.)
558    
559       To make this work smoothly, I also hacked the runtime system as
560       well as SMLofNJ.SysInfo to get access to the heap image suffix
561       (.sparc-solaris, ...) that is currently being used.
562    
563       Moreover, the signature of CM.mk_standalone has changed.  See the
564       CM manual.
565    
566    3. ml-makedepend accepts additional options -n, -a, and -o.  (See the
567       CM manual for details.)
568    
569    4. More CM manual updates:
570        - all of the above has been documented.
571        - there is now a section describing the (CM-related) command line
572          arguments that are accepted by the "sml" command
573    
574    ----------------------------------------------------------------------
575    Name: Matthias Blume
576    Date: 2000/07/25 16:20:00 JST
577    Tag: blume-20000725-makedepend
578    Description:
579    
580    Added a script called ml-makedepend.  This can be used in makefiles
581    for Unix' make in a way very similar to the "makedepend" command for
582    C.
583    
584    The script internally uses function CM.sources.
585    
586    Synopsis:
587    
588        ml-makedepend [-f makefile] cmfile targetname
589    
590    The default for the makefile is "makefile" (or "Makefile" should
591    "makefile" not exist).
592    
593    ml-makedepend adds a cmfile/targetname-specific section to this
594    makefile (after removing the previous version of this section).  The
595    section contains a single dependency specification with targetname on
596    the LHS (targetname is an arbitrary name), and a list of files derived
597    from the cmfile on the RHS.  Some of the files on the RHS are
598    ARCH/OPSYS-specific.  Therefore, ml-makedepend inserts references to
599    "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
600    path names.  The makefile writer is responsible for making sure that
601    these variables have correct at the time "make" is invoked.
602    
603    ----------------------------------------------------------------------
604    Name: Matthias Blume
605    Date: 2000/07/22 23:30:00 JST
606    Tag: blume-20000722-urlupdate
607    Description:
608    
609    Changed BOOT and config/srcarchiveurl to point to BL server:
610    
611        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
612    
613    ----------------------------------------------------------------------
614    Name: Matthias Blume
615    Date: 2000/07/18 18:00:00 JST
616    Tag: blume-20000718-Version_110_29
617    Description:
618    
619    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
620    
621    2. Updated config/version to 110.29
622    
623    3. Updated config/srcarchiveurl
624    
625    3. New boot files!
626       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
627    
628    ----------------------------------------------------------------------
629    Name: Matthias Blume
630    Date: 2000/07/11 13:58:00 JST
631    Tag: blume-20000711-doctypo
632    Description:
633    
634    Fixed a few typos in CM manual.
635    
636    ----------------------------------------------------------------------
637    Name: Allen Leung
638    Date: 2000/06/15 00:38:00
639    Tag: leunga-20000704-sparc-x86
640    
641    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
642    2. fix to x86 RET bug [found by Dan Grossman]
643    3. sparc assembly bug fix for ticc instructions [found by Fermin]
644    
645       Affects c-- and moby only
646    
647    ----------------------------------------------------------------------
648    Name: Matthias Blume
649    Date: 2000/07/04 15:26:00
650    Tag: blume-20000704-trigger
651    Description:
652    
653    1. Improvements to CM manual.
654    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
655       of getting a back-trace.  The function, when called, raises an
656       internal exception which explicitly carries the full back-trace history,
657       so it is unaffected by any intervening handle-raise pairs ("trivial"
658       or not).  The interactive loop will print that history once it arrives
659       at top level.
660       Short of having all exceptions implicitly carry the full history, the
661       recommended way of using this facility is:
662         - compile your program with instrumentation "on"
663         - run it, when it raises an exception, look at the history
664         - if the history is "cut off" because of some handler, go and modify
665           your program so that it explicitly calls BTrace.trigger
666         - recompile (still instrumented), and rerun; look at the full history
667    
668    ----------------------------------------------------------------------
669    Name: Matthias Blume
670    Date: 2000/07/03 15:36:00 JST
671    Tag: blume-20000702-manual
672    Description:
673    
674    Small corrections and updates to CM manual.
675    
676    ----------------------------------------------------------------------
677    Name: Matthias Blume
678    Date: 2000/06/29 16:04:00 JST
679    Tag: blume-20000629-yacctool
680    Description:
681    
682    Changes:
683    
684    1. Class "mlyacc" now takes separate arguments to pass options to
685       generated .sml- and .sig-files independently.
686    2. Corresponding CM manual updates.
687    3. BTrace module now also reports call sites.  (However, for loop clusters
688       it only shows from where the cluster was entered.)  There are associated
689       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
690    
691    ----------------------------------------------------------------------
692    Name: Matthias Blume
693    Date: 2000/06/27 16:51:00 JST
694    Tag: blume-20000627-noweb
695    Description:
696    
697    Changes:
698    
699     1. Implemented "subdir" and "witness" options for noweb tool.
700        This caused some slight internal changes in CM's tool implementation.
701     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
702        some remaining issues from earlier path anchor changes.
703     3. Updated CM manual accordingly.
704    
705     4. Changed implementation of back-tracing so that I now consider it
706        ready for prime-time.
707    
708        In particular, you don't have to explicitly trigger the back-trace
709        anymore.  Instead, if you are running BTrace-instrumented code and
710        there is an uncaught exception (regardless of whether or not it was
711        raised in instrumented code), the top-level evalloop will print
712        the back-trace.
713    
714        Features:
715    
716          - Instrumented and uninstrumented code work together seemlessly.
717            (Of course, uninstrumented code is never mentioned in actual
718             back-traces.)
719    
720          - Asymptotic time- and space-complexity of instrumented code is
721            equal to that of uninstrumented code.  (This means that
722            tail-recursion is preserved by the instrumentation phase.)
723    
724          - Modules whose code has been instrumented in different sessions
725            work together without problem.
726    
727          - There is no penalty whatsoever on uninstrumented code.
728    
729          - There is no penalty on "raise" expressions, even in
730            instrumented code.
731    
732        A potential bug (or perhaps it is a feature, too):
733    
734          A back-trace reaches no further than the outermost instrumented
735          non-trivial "raise".  Here, a "trivial" raise is one that is the
736          sole RHS of a "handle" rule.  Thus, back-traces reach trough
737    
738               <exp> handle e => raise e
739    
740          and even
741    
742               <exp> handle Foo => raise Bar
743    
744          and, of course, through
745    
746               <exp> handle Foo => ...
747    
748         if the exception was not Foo.
749    
750         Back-traces always reach right through any un-instrumented code
751         including any of its "handle" expressions, trivial or not.
752    
753       To try this out, do the following:
754    
755         - Erase all existing binfiles for your program.
756           (You may keep binfiles for those modules where you think you
757            definitely don't need back-tracing.)
758         - Turn on back-trace instrumentation:
759              SMLofNJ.Internals.BTrace.mode (SOME true);
760         - Recompile your program.  (I.e., run "CM.make" or "use".)
761         - You may now turn instrumentation off again (if you want):
762              SMLofNJ.Internals.BTrace.mode (SOME false);
763         - Run your program as usual.  If it raises an exception that
764           reaches the interactive toplevel, then a back-trace will
765           automatically be printed.  After that, the toplevel loop
766           will print the exception history as usual.
767    
768    ----------------------------------------------------------------------
769    Name: Matthias Blume
770    Date: 2000/06/26 09:56:46 JST
771    Tag: blume-20000626-setup
772    Description:
773    
774    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
775          ML code before and after compiling a file (e.g., to set compiler
776          flags)
777    
778    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
779              - associated changes to btrace.sml (BTrace instrumentation pass)
780              - cleaner implementation of btimp.sml (BTrace tracing and report
781                module)
782    
783    CM manual: * new path encoding documented
784               * description of setup-parameter to "sml" added
785    
786    The biggest user-visible change to back-tracing is that it is no
787    longer necessary to compile all traced modules within the same
788    session.  (This was a real limitation.)
789    
790    ----------------------------------------------------------------------
791    Name: Matthias Blume
792    Date: 2000/06/24 12:40:00 JST
793    Tag: blume-20000624-startup
794    Description:
795    
796    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
797    bit too often -- to put it mildly. :)
798    
799    ----------------------------------------------------------------------
800    Name: Matthias Blume
801    Date: 2000/06/23 18:20:00 JST
802    Tag: blume-20000623-btrace
803    Description:
804    
805    This updates adds a backtrace facility to aid programmers in debugging
806    their programs.  This involves the following changes:
807    
808    1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
809       keeping track of the current call stack.  When programs are compiled
810       in a special mode, the compiler will insert calls to these hooks
811       into the user program.
812       "Hook" means that it is possible for different implementations of
813       back-tracing to register themselves (at different times).
814    
815    2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
816       as an Absyn.dec->Absyn.dec rewrite.  Normally this phase is turned off.
817       It can be turned on using this call:
818         SMLofNJ.Internals.BTrace.mode (SOME true);
819       Turning it off again:
820         SMLofNJ.Internals.BTrace.mode (SOME false);
821       Querying the current status:
822         SMLofNJ.Internals.BTrace.mode NONE;
823       Annotated programs are about twice as big as normal ones, and they
824       run a factor of 2 to 4 slower with a dummy back-trace plugin (one
825       where all hooks do nothing).  The slowdown with a plugin that is
826       actually useful (such as the one supplied by default) is even greater,
827       but in the case of the default plugin it is still only an constant
828       factor (amortized).
829    
830    3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
831       with a sub-structure BTrace for controlling back-tracing.  In particular,
832       the above-mentioned function "mode" controls whether the annotation
833       phase is invoked by the compiler.  Another important function is
834       "trigger": when called it aborts the current execution and causes
835       the top-level loop to print a full back-trace.
836    
837    4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
838       for back-tracing.  It keeps track of the dynamic call stack and in
839       addition to that it keeps a partial history at each "level" of that
840       stack.  For example, if a tail-calls b, b tail-calls c, and c tail-calls
841       d and b (at separate times, dynamically), then the report will show:
842    
843       GOTO   d
844             /c
845       GOTO  \b
846       CALL   a
847    
848       This shows that there was an initial non-tail call of a, then a
849       tail-call to b or c, looping behavior in a cluster of functions that
850       consist of b and c, and then a goto from that cluster (i.e., either from
851       b or from c) to d.
852    
853       Note that (depending on the user program) the amount of information
854       that the back-trace module has to keep track of at each level is bounded
855       by a constant.  Thus, the whole implementation has the same asymptotical
856       complexity as the original program (both in space and in time).
857    
858    5. compiler/TopLevel/interact/evalloop.sml has been modified to
859       handle the special exception SMLofNJ.Internals.BTrace.BTrace
860       which is raised by the "trigger" function mentioned above.
861    
862    Notes on usage:
863    
864    - Annotated code works well together with unannotated code:
865    Unannotated calls simply do not show up at all in the backtrace.
866    
867    - It is not a good idea to let modules that were annotated during
868    different sessions run at the same time.  This is because the compiler
869    chooses small integers to identify individual functions, and there
870    will be clashes if different modules were compiled in separate sessions.
871    (Nothing will crash, and you will even be told about the clashes, but
872    back-trace information will in general not be useful.)
873    
874    - Back-tracing can be confused by callcc and capture.
875    
876    - The only way of getting a back-trace right now is to explicitly
877    invoke the "trigger" function from your user program.  Eventually, we
878    should make every exception carry back-trace information (if
879    available).  But since this creates more overhead at "raise"-time
880    (similar to the current exnHistory overhead), I have not yet
881    implemented this.  (The implementation will be rather easy.)  With
882    exceptions carrying back-trace information, this facility will be even
883    more useful because users don't need to modify their programs...
884    
885    - While it is possible to compile the compiler with back-trace
886    annotations turned on (I did it to get some confidence in
887    correctness), you must make absolutely sure that core.sml and
888    btimp.sml are compiled WITHOUT annotation!  (core.sml cannot actually
889    be compiled with annotation because there is no core access yet, but
890    if you compile btimp.sml with annotation, then the system will go into
891    an infinite recursion and crash.)
892    Since CM currently does not know about BTrace, the only way to turn
893    annotations on and off for different modules of the compiler is to
894    interrupt CMB.make, change the settings, and re-invoke it.  Of course,
895    this is awkward and clumsy.
896    
897    Sample sessions:
898    
899    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
900    - SMLofNJ.Internals.BTrace.mode (SOME true);
901    [autoloading]
902    [autoloading done]
903    val it = false : bool
904    - structure X = struct
905    -     fun main n = let
906    -         fun a (x, 0) = d x
907    -           | a (x, n) = b (x, n - 1)
908    -         and b (x, n) = c (x, n)
909    -         and c (x, n) = a (x, n)
910    -         and d x = e (x, 3)
911    -         and e (x, 0) = f x
912    -           | e (x, n) = e (x, n - 1)
913    -         and f 0 = SMLofNJ.Internals.BTrace.trigger ()
914    -           | f n = n * g (n - 1)
915    -         and g n = a (n, 3)
916    -     in
917    -         f n
918    -     end
919    - end;
920    structure X : sig val main : int -> int end
921    - X.main 3;
922    *** BACK-TRACE ***
923    GOTO   stdIn:4.2-13.20: X.main[2].f
924    GOTO-( stdIn:4.2-13.20: X.main[2].e
925    GOTO   stdIn:4.2-13.20: X.main[2].d
926         / stdIn:4.2-13.20: X.main[2].a
927         | stdIn:4.2-13.20: X.main[2].b
928    GOTO-\ stdIn:4.2-13.20: X.main[2].c
929    CALL   stdIn:4.2-13.20: X.main[2].g
930    GOTO   stdIn:4.2-13.20: X.main[2].f
931    GOTO-( stdIn:4.2-13.20: X.main[2].e
932    GOTO   stdIn:4.2-13.20: X.main[2].d
933         / stdIn:4.2-13.20: X.main[2].a
934         | stdIn:4.2-13.20: X.main[2].b
935    GOTO-\ stdIn:4.2-13.20: X.main[2].c
936    CALL   stdIn:4.2-13.20: X.main[2].g
937    GOTO   stdIn:4.2-13.20: X.main[2].f
938    GOTO-( stdIn:4.2-13.20: X.main[2].e
939    GOTO   stdIn:4.2-13.20: X.main[2].d
940         / stdIn:4.2-13.20: X.main[2].a
941         | stdIn:4.2-13.20: X.main[2].b
942    GOTO-\ stdIn:4.2-13.20: X.main[2].c
943    CALL   stdIn:4.2-13.20: X.main[2].g
944    GOTO   stdIn:4.2-13.20: X.main[2].f
945    CALL   stdIn:2.15-17.4: X.main[2]
946    -
947    
948    (Note that because of a FLINt bug the above code currently does not
949    compile without BTrace turned on.)
950    
951    Here is another example, using my modified Tiger compiler:
952    
953    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
954    - SMLofNJ.Internals.BTrace.mode (SOME true);
955    [autoloading]
956    [autoloading done]
957    val it = false : bool
958    - CM.make "sources.cm";
959    [autoloading]
960    ...
961    [autoloading done]
962    [scanning sources.cm]
963    [parsing (sources.cm):parse.sml]
964    [creating directory CM/SKEL ...]
965    [parsing (sources.cm):tiger.lex.sml]
966    ...
967    [wrote CM/sparc-unix/semant.sml]
968    [compiling (sources.cm):main.sml]
969    [wrote CM/sparc-unix/main.sml]
970    [New bindings added.]
971    val it = true : bool
972    - Main.compile ("../testcases/merge.tig", "foo.out");
973    *** BACK-TRACE ***
974    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
975    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
976    CALL   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
977    GOTO   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
978    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
979    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
980    CALL   lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
981         / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
982    CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
983    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
984    CALL   lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
985    CALL   main.sml:1.18-118.4: Main.compile[2]
986    -
987    
988    ----------------------------------------------------------------------
989    Name: Matthias Blumen
990    Date: 2000/06/21 18:00:00 JST
991    Tag: blume-20000621-manual
992    Description:
993    
994    CM manual update: Path environments documented.
995    
996    ----------------------------------------------------------------------
997    Name: Matthias Blume
998    Date: 2000/06/19 13:40:00
999    Tag: blume-20000619-manual
1000    Description:
1001    
1002    CM manual and system/README update.  This only covers the fact that
1003    there are no more implicit anchors.  (Path environments and the "bind"
1004    option to "cm" have yet to be documented.)
1005    
1006    ----------------------------------------------------------------------
1007    Name: Matthias Blume
1008    Date: 2000/06/19 11:05:00 JST
1009    Tag: blume-20000619-chdir-bugfix
1010    Description:
1011    
1012    Fixed a bug in new SrcPath module that sometimes led to a bad chDir call.
1013    
1014    ----------------------------------------------------------------------
1015    Name: Matthias Blume
1016    Date: 2000/06/18 22:00:10 JST
1017    Tag: blume-20000618-implicit-anchors-really-gone
1018    Description:
1019    
1020    I updates the previous HISTORY entry where I forgot to mention that
1021    implicit anchors are no longer with us.
1022    
1023    The current update also gets rid of the (now useless) controller
1024    CM.Control.implicit_anchors.
1025    
1026    ----------------------------------------------------------------------
1027    Name: Matthias Blume
1028    Date: 2000/06/16 17:30:00 JST
1029    Tag: blume-20000616-anchorenv
1030    Description:
1031    
1032    This patch implements the long anticipated (just kidding :) "anchor
1033    environment" mechanism.  In the course of doing this, I also
1034    re-implemented CM's internal "SrcPath" module from scratch.  The new
1035    one should be more robust in certain boundary cases.  In any case, it
1036    is a lot cleaner than its predecessor (IMHO).
1037    
1038    This time, although there is yet another boot file format change, I
1039    kept the unpickler backward-compatible.  As a result, no new bootfiles
1040    are necessary and bootstrapping is straightforward.  (You cannot read
1041    new bootfiles into an old system, but the other way around is no
1042    problem.)
1043    
1044    Visible changes:
1045    
1046    ** 0. Implicit path anchors (without the leading $-symbol) are no
1047    longer recognized at all. This means that such path names are not
1048    illegal either.  For example, the name basis.cm simply refers to a
1049    local file called "basis.cm" (i.e, the name is an ordinary path
1050    relative to .cm-files directory).  Or, to put it differently, only
1051    names that start with $ are anchored paths.
1052    
1053    ** 1. The $<singlearc> abbreviation for $/<singlearc> has finally
1054    vanished.
1055    
1056    John (Reppy) had critizised this as soon as I originally proposed and
1057    implemented it, but at that time I did not really deeply believe
1058    him. :) Now I came full-circle because I need the $<singlearc> syntax
1059    in another place where it cannot be seen as an abbreviation for
1060    $/<singlearc>.  To avoid the confusion, $<singlearc> now means what it
1061    seems to mean (i.e., it "expands" into the corresponding anchor
1062    value).
1063    
1064    However, when paths are used as members in CM description files, it
1065    continues to be true that there must be at least another arc after the
1066    anchor.  This is now enforced separately during semantic analysis
1067    (i.e., from a lexical/syntactical point of view, the notation is ok.)
1068    
1069    ** 2. The "cm" class now accepts an option "bind".  The option's value
1070    is a sub-option list of precisely two items -- one labeled "anchor"
1071    and the other one labeled "value".  As you might expect, "anchor" is
1072    used to specify an anchor name to be bound, and "value" specifies what
1073    the anchor is being bound to.
1074    
1075    The value must be a directory name and can be given in either standard
1076    syntax (including the possibility that it is itself an anchored path)
1077    or native syntax.
1078    
1079    Examples:
1080    
1081       foo.cm (bind:(anchor:bar value:$mystuff/bar))
1082       lib.cm (bind:(anchor:a value:"H:\\x\\y\\z"))  (* only works under windows *)
1083    
1084    and so on.
1085    
1086    The meaning of this is that the .cm-file will be processed with an
1087    augmented anchor environment where the given anchor(s) is/are bound to
1088    the given values(s).
1089    
1090    The rationale for having this feature is this: Suppose you are trying
1091    to use two different (already stable) libraries a.cm and b.cm (that
1092    you perhaps didn't write yourself).  Further, suppose each of these
1093    two libraries internally uses its own auxiliary library $aux/lib.cm.
1094    Normally you would now have a problem because the anchor "lib" can not
1095    be bound to more than one value globally.  Therefore, the project that
1096    uses both a.cm and b.cm must locally redirect the anchor to some other
1097    place:
1098    
1099       a.cm (bind:(anchor:lib value:/usr/lib/smlnj/a-stuff))
1100       b.cm (bind:(anchor:lib value:/usr/lib/smlnj/b-stuff))
1101    
1102    This hard-wires $lib/aux.cm to /usr/lib/smlnj/a-stuff/aux.cm or
1103    /usr/lib/smlnj/b-stuff/aux.cm, respectively.
1104    
1105    Hard-wiring path names is a bit inflexible (and CM will verbosely warn
1106    you when you do so at the time of CM.stabilize).  Therefore, you can
1107    also use an anchored path as the value:
1108    
1109      a.cm (bind:(anchor:lib value:$a-lib))
1110      b.cm (bind:(anchor:lib value:$b-lib))
1111    
1112    Now you can globally configure (using the usual CM.Anchor.anchor or
1113    pathconfig machinery) bindings for "a-lib" and "b-lib".  Since "lib"
1114    itself is always locally bound, setting it globally is no longer
1115    meaningful or necessary (but it does not hurt either).  In fact, "lib"
1116    can still be used as a global anchor for separate purposes.  As a
1117    matter of fact, one can locally define "lib" in terms of a global
1118    "lib":
1119    
1120      a.cm (bind:(anchor:lib value:$lib/a))
1121      b.cm (bind:(anchor:lib value:$lib/b))
1122    
1123    ** 3: The encoding of path names has changed.  This affects the way
1124    path names are shown in CM's progress report and also the internal
1125    protocol encoding used for parallel make.
1126    
1127    The encoding now uses one or more ':'-separated segments.  Each
1128    segments corresponds to a file that has been specified relative to the
1129    file given by its preceding segment.  The first segment is either
1130    relative to the CWD, absolute, or anchored.  Each segment itself is
1131    basically a Unix pathname; all segments but the first are relative.
1132    
1133    Example:
1134    
1135       $foo/bar/baz.cm:a/b/c.sml
1136    
1137    This path denotes the file bar/a/b/c.sml relative to the directory
1138    denoted by anchor "foo".  Notice that the encoding also includes
1139    baz.cm which is the .cm-file that listed a/b/c.sml.  As usual, such
1140    paths are resolved relative to the .cm-files directory, so baz.cm must
1141    be ignored to get the "real" pathname.
1142    
1143    To make this fact more obvious, CM puts the names of such "virtual
1144    arcs" into parentheses when they appear in progress reports. (No
1145    parentheses will appear in the internal protocol encoding.)  Thus,
1146    what you really see is:
1147    
1148      $foo/bar/(baz.cm):a/b/c.sml
1149    
1150    I find this notation to be much more informative than before.
1151    
1152    Another new feature of the encoding is that special characters
1153    including parentheses, colons, (back)slashes, and white space are
1154    written as \ddd (where ddd is the decimal encoding of the character).
1155    
1156    *** The CM manual still needs to be updated.
1157    
1158    ----------------------------------------------------------------------
1159    Name: Allen Leung
1160    Date: 2000/06/15 00:38:00
1161    Tag: leunga-20000615-x86-peephole
1162    
1163    x86 Peephole fix by Fermin.  Affects c-- and moby only.
1164    
1165    ----------------------------------------------------------------------
1166    Name: Matthias Blume
1167    Date: 2000/06/12 11:40:00
1168    Tag: blume-20000612-parmakefix
1169    Description:
1170    
1171    More cleanup after changing the file naming scheme: This time I
1172    repaired the parallel make mechanism for CMB.make which I broke earlier.
1173    
1174    ----------------------------------------------------------------------
1175    Name: Allen Leung
1176    Date: 2000/06/09 01:25:00
1177    Tag: leunga-20000609-various
1178    
1179    None of these things should affect normal SML/NJ operations
1180    
1181    1. Peephole improvements provided by Fermin (c--)
1182    2. New annotation DEFUSE for adding extra dependence (moby)
1183    3. New X86 LOCK instructions (moby)
1184    4. New machine description language for reservation tables (scheduling)
1185    5. Fixes to various optimization/analysis modules (branch chaining, dominator
1186       trees etc.)
1187    6. I've changed the CM files so that they can work with versions
1188       110.0.6, 110.25 and 110.28
1189    
1190    ----------------------------------------------------------------------
1191    Name: Matthias Blume
1192    Date: 2000/06/09 12:40:00
1193    Tag: blume-20000609-log
1194    Description:
1195    
1196    - Removed all(?) remaining RCS Log entries from sources.
1197    
1198    - Fixed bug in ml-yacc and ml-lex sources (use explicit anchors for
1199      anchored paths).
1200    
1201    ----------------------------------------------------------------------
1202    Name: Matthias Blume
1203    Date: 2000/06/07 17:00:00 JST
1204    Tag: blume-20000607-no-implicit-anchors
1205    Description:
1206    
1207    1. This update changes the default setting for
1208    CM.Control.implicit_anchors from true to false.  This means that
1209    implicit anchors are no longer permitted by default.  I also tried to
1210    make sure that nothing else still relies on implicit anchors.
1211    (This is the next step on the schedule towards a CM that does not even
1212    have the notion of implicit anchors anymore.)
1213    
1214    2. More CM manual updates.
1215    
1216    3. I managed to track down and fix the pickling bug I mentioned last
1217    time.  Because of the previously existing workaround, this entails no
1218    immediate practical changes.
1219    
1220    ----------------------------------------------------------------------
1221    Name: Matthias Blume
1222    Date: 2000/06/06 11:15:00 JST
1223    Tag: blume-20000606-lazierpickle
1224    Description:
1225    
1226    !!!! NEW BOOT FILES !!!!
1227    
1228    * The main purpose of this update is to make library pickles lazier in
1229    order to reduce the initial space penalty for autoloading a library.
1230    As a result, it is now possible to have $smlnj/compiler.cm
1231    pre-registered.  This should take care of the many complaints or
1232    inquiries about missing structure Compiler.  This required changes to
1233    CM's internal data structures and small tweaks to some algorithms.
1234    
1235    As a neat additional effect, it is no longer necessary (for the sake
1236    of lean heap image files) to distinguish between a "minimal" CM and a
1237    "full" CM.  Now, there is only one CM (i.e., the "full" version:
1238    $smlnj/cm.cm aka $smlnj/cm/full.cm), and it is always available at the
1239    interactive top level. ($smlnj/cm/minimal.cm is gone.)
1240    
1241    To make the life of compiler-hackers easier, "makeml" now also
1242    pre-registers $smlnj/cmb.cm (aka $smlnj/cmb/current.cm).  In other
1243    words, after you bootstrap a new sml for the first time, you will not
1244    have to autoload $smlnj/cmb.cm again afterwards.  (The first time
1245    around you will still have to do it, though.)
1246    
1247    * A second change consists of major updates to the CM manual.  There
1248    are now several appendices with summary information and also a full
1249    specification of the CM description file syntax.
1250    
1251    * In directory src/system I added the script "allcross".  This script
1252    invokes sml and cross-compiles the compiler for all supported
1253    architectures.  (Useful when providing a new set of boot files.)
1254    
1255    * There seems to be a latent bug in my "lazy pickles" mechanism.  I
1256    added a small tweak to pickle-util.sml to work around this problem,
1257    but it is not a proper fix yet.  I will investigate further.  (The
1258    effect of the bug was an inflation of library pickle size.)
1259    
1260    * Version number increased to 110.28.1 (to avoid compatibility problems).
1261    
1262    ----------------------------------------------------------------------
1263    Name: Allen Leung
1264    Date: 2000/05/25 17:28 EDT
1265    Tag: leunga-20000525-ra
1266    Description:
1267    
1268      Fixed a bug in freezing phase of the register allocator.
1269    
1270    ----------------------------------------------------------------------
1271    Name: Allen Leung
1272    Date: 2000/05/15 22:53 EDT
1273    Tag: leunga-20000515-alpha-x86-ra
1274    Description:
1275    
1276      1. Alpha
1277    
1278          Slight cleanup.  Removed the instruction SGNXL
1279    
1280      2. X86
1281    
1282          Added the following instructions to the instruction set:
1283    
1284            ROLx, RORx,
1285            BTx, BTSx, BTLx, BTRx,
1286            XCHGx, and variants with the LOCK prefix
1287    
1288      3. Register Allocation
1289    
1290          The module ra-rewrite-with-renaming has been improved.
1291    
1292      These have no effect on SML/NJ.
1293    
1294    ----------------------------------------------------------------------
1295    Name: Matthias Blume
1296  Date: 2000/05/15 16:20:00 JST  Date: 2000/05/15 16:20:00 JST
1297  Tag: blume-20000515-lightrebuild  Tag: blume-20000515-lightrebuild
1298  Description:  Description:
# Line 470  Line 1750 
1750    
1751  3.  Assembly  3.  Assembly
1752    
1753      When generating assemby, resolve the value of client defined constants,      When generating assembly, resolve the value of client defined constants,
1754      instead of generating symbolic values.  This is controlled by the      instead of generating symbolic values.  This is controlled by the
1755      new flag "asm-resolve-constants", which is default to true.      new flag "asm-resolve-constants", which is default to true.
1756    
# Line 493  Line 1773 
1773    
1774  To this end, I arranged that instead of "structure Core" as "structure  To this end, I arranged that instead of "structure Core" as "structure
1775  _Core" is bound in the pervasive environment.  Core access is done via  _Core" is bound in the pervasive environment.  Core access is done via
1776  _Core (which can never be accidentially rebound because _Core is not a  _Core (which can never be accidentally rebound because _Core is not a
1777  legal surface-syntax symbol).  legal surface-syntax symbol).
1778    
1779  The current solution is much cleaner because the core environment is  The current solution is much cleaner because the core environment is
# Line 503  Line 1783 
1783  with dynamic and symbolic parts of the core environment.  with dynamic and symbolic parts of the core environment.
1784    
1785  Remaining hackery (to bind the "magic" symbol _Core) is localized in the  Remaining hackery (to bind the "magic" symbol _Core) is localized in the
1786  compilation mananger's bootstrap compiler (actually: in the "init group"  compilation manager's bootstrap compiler (actually: in the "init group"
1787  handling).  See the comments in src/system/smlnj/init/init.cmi for  handling).  See the comments in src/system/smlnj/init/init.cmi for
1788  more details.  more details.
1789    
# Line 618  Line 1898 
1898     (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
1899     used).     used).
1900    
1901     This was done to accomodate the new "make" and "shell" tools which     This was done to accommodate the new "make" and "shell" tools which
1902     facilitate fairly seemless hookup to portions of code managed using     facilitate fairly seamless hookup to portions of code managed using
1903     Makefiles or Shell scripts.     Makefiles or Shell scripts.
1904    
1905     There are no classes "shared" or "private" anymore.  Instead, the     There are no classes "shared" or "private" anymore.  Instead, the
# Line 631  Line 1911 
1911    
1912     All existing tools are described in the CM manual.     All existing tools are described in the CM manual.
1913    
1914     - Slightly better error handling.  (CM now surpresses many followup     - Slightly better error handling.  (CM now suppresses many followup
1915     error messages that tended to be more annoying than helpful.)     error messages that tended to be more annoying than helpful.)
1916    
1917  2. Major changes to the compiler's static environment data structures.  2. Major changes to the compiler's static environment data structures.
# Line 765  Line 2045 
2045    
2046       I've changed andl to testl in the floating point test sequence       I've changed andl to testl in the floating point test sequence
2047       whenever appropriate.  The Intel optimization guide states that       whenever appropriate.  The Intel optimization guide states that
2048       testl is perferable to andl.       testl is preferable to andl.
2049    
2050  7. RA (x86 only)  7. RA (x86 only)
2051    
# Line 947  Line 2227 
2227    
2228  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an  1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an
2229  additional argument called "template" which is an optional string that  additional argument called "template" which is an optional string that
2230  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
2231  explanation.  explanation.
2232    
2233  2. A special-purpose tool can be "regisitered" by simply dropping the  2. A special-purpose tool can be "registered" by simply dropping the
2234  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same  corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same
2235  directory where the .cm file lives that uses this tool.  (The  directory where the .cm file lives that uses this tool.  (The
2236  behavior/misfeature until now was to look for the tool description  behavior/misfeature until now was to look for the tool description
# Line 994  Line 2274 
2274  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
2275  <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,
2276  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
2277  perhaps got accidentially killed).  In this case, fixpt will quickly  perhaps got accidentally killed).  In this case, fixpt will quickly
2278  move through what exists before continuing where it left off earlier,  move through what exists before continuing where it left off earlier,
2279  and, thus, saves a lot of time.  and, thus, saves a lot of time.
2280    
# Line 1044  Line 2324 
2324    it from that remote directory.    it from that remote directory.
2325    This should simplify installation further:  For machines that have    This should simplify installation further:  For machines that have
2326    access to the internet, just fetch <version>-config.tgz, unpack it,    access to the internet, just fetch <version>-config.tgz, unpack it,
2327    edit config/targets, and go (run config/install.sh).  The scipt will    edit config/targets, and go (run config/install.sh).  The script will
2328    fetch everything else that it might need all by itself.    fetch everything else that it might need all by itself.
2329    
2330    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.645  
changed lines
  Added in v.778

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