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

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