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

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