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

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