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 672, Mon Jun 19 04:40:29 2000 UTC revision 710, Tue Oct 17 08:21:09 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/08/31 17:30:00 JST
18    Tag: blume-20001017-v110p29p1
19    Description:
20    
21    I made a version 110.29.1 with new bootfiles.
22    
23    Changes:  Modified pickler/unpickler for faster and leaner unpickling.
24              CM documentation changes and a small bugfix in CM's error reporting.
25    
26    ----------------------------------------------------------------------
27    Name: Lal George
28    Date: 2000/09/27 14:42:35 EDT
29    Tag: george-20000927-nodestatus
30    Description:
31    
32    Changed the type of the nodestatus, so that:
33    
34            SPILLED(~1)             is now SPILLED
35            SPILLED(m) where m>=0   is now MEMREG(m)
36            SPILLED(s) where s<~1   is now SPILL_LOC(~s)
37    
38    ----------------------------------------------------------------------
39    Name: Matthias Blume
40    Date: 2000/09/07 14:45:00 JST
41    Tag: blume-20000907-cmerrmsg
42    Description:
43    
44    Small tweak to CM to avoid getting ML syntax error messages twice.
45    
46    ----------------------------------------------------------------------
47    Name: Matthias Blume
48    Date: 2000/08/31 18:00:00 JST
49    Tag: blume-20000831-cvsbootfiles
50    Description:
51    
52    New URL for boot files (because the 110.29 files on the BL server do
53    now work correctly with my updated install scripts for yacc and lex).
54    
55    ----------------------------------------------------------------------
56    Name: Matthias Blume
57    Date: 2000/08/08 12:33:00 JST
58    Tag: blume-20000808-manual
59    Description:
60    
61    Tiny update to CM manual.
62    
63    ----------------------------------------------------------------------
64    Name: Allen Leung
65    Date: 2000/08/7 19:31:00
66    Tag: leunga-20000807-a-whole-bunch-of-stuff
67    
68      Moby, C--, SSA, x86, machine descriptions etc.  Should only affect C--
69    and Mobdy.
70    
71    1.  x86
72    
73       a.  Fixes to peephole module by John and Dan.
74       b.  Assembly fix to SETcc by Allen.
75       c.  Fix to c-call by John.
76       d.  Fix to spilling by John.  (This one deals with the missing FSTPT case)
77       e.  Instruction selection optimization to SETcc as suggested by John.
78    
79           For example,
80    
81            MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
82    
83           should generate:
84    
85            MOVL a, x
86            SUBL b, x
87            SHRL 31, x
88    
89    2.  IR stuff
90    
91         A bunch of new DJ-graph related algorithms added.  These
92         speed up SSA construction.
93    
94    3.  SSA + Scheduling
95    
96         Added code for SSA and scheduling to the repository
97    
98    ----------------------------------------------------------------------
99    Name: Lal George
100    Date: 2000/07/27 11:53:14 EDT
101    
102    Tag: lal-20000727-linux-ppc
103    Description:
104    
105     Made changes to support Linux PPC.
106     p.s. I have confirmation that the 110.29 boot files work fine.
107    
108    ----------------------------------------------------------------------
109    Name: Matthias Blume
110    Date: 2000/07/27 17:40:00 JST
111    Tag: blume-20000727-scripts
112    Description:
113    
114    !!!! WARNING !!!!
115    You must recompile the runtime system!
116    !!!! WARNING !!!!
117    
118    This is basically another round of script-enhancements:
119    
120    1. sml, ml-build, and ml-makedepend accept options -D and -U to define
121       and undefine CM preprocessor symbols.
122    
123    2. ml-build avoids generating a new heap image if it finds that the
124       existing one is still ok.  (The condition is that no ML file had to
125       be recompiled and all ML files are found to be older that the heap
126       file.)
127    
128       To make this work smoothly, I also hacked the runtime system as
129       well as SMLofNJ.SysInfo to get access to the heap image suffix
130       (.sparc-solaris, ...) that is currently being used.
131    
132       Moreover, the signature of CM.mk_standalone has changed.  See the
133       CM manual.
134    
135    3. ml-makedepend accepts additional options -n, -a, and -o.  (See the
136       CM manual for details.)
137    
138    4. More CM manual updates:
139        - all of the above has been documented.
140        - there is now a section describing the (CM-related) command line
141          arguments that are accepted by the "sml" command
142    
143    ----------------------------------------------------------------------
144    Name: Matthias Blume
145    Date: 2000/07/25 16:20:00 JST
146    Tag: blume-20000725-makedepend
147    Description:
148    
149    Added a script called ml-makedepend.  This can be used in makefiles
150    for Unix' make in a way very similar to the "makedepend" command for
151    C.
152    
153    The script internally uses function CM.sources.
154    
155    Synopsis:
156    
157        ml-makedepend [-f makefile] cmfile targetname
158    
159    The default for the makefile is "makefile" (or "Makefile" should
160    "makefile" not exist).
161    
162    ml-makedepend adds a cmfile/targetname-specific section to this
163    makefile (after removing the previous version of this section).  The
164    section contains a single dependency specification with targetname on
165    the LHS (targetname is an arbitrary name), and a list of files derived
166    from the cmfile on the RHS.  Some of the files on the RHS are
167    ARCH/OPSYS-specific.  Therefore, ml-makedepend inserts references to
168    "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
169    path names.  The makefile writer is responsible for making sure that
170    these variables have correct at the time "make" is invoked.
171    
172    ----------------------------------------------------------------------
173    Name: Matthias Blume
174    Date: 2000/07/22 23:30:00 JST
175    Tag: blume-20000722-urlupdate
176    Description:
177    
178    Changed BOOT and config/srcarchiveurl to point to BL server:
179    
180        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
181    
182    ----------------------------------------------------------------------
183    Name: Matthias Blume
184    Date: 2000/07/18 18:00:00 JST
185    Tag: blume-20000718-Version_110_29
186    Description:
187    
188    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
189    
190    2. Updated config/version to 110.29
191    
192    3. Updated config/srcarchiveurl
193    
194    3. New boot files!
195       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
196    
197    ----------------------------------------------------------------------
198    Name: Matthias Blume
199    Date: 2000/07/11 13:58:00 JST
200    Tag: blume-20000711-doctypo
201    Description:
202    
203    Fixed a few typos in CM manual.
204    
205    ----------------------------------------------------------------------
206    Name: Allen Leung
207    Date: 2000/06/15 00:38:00
208    Tag: leunga-20000704-sparc-x86
209    
210    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
211    2. fix to x86 RET bug [found by Dan Grossman]
212    3. sparc assembly bug fix for ticc instructions [found by Fermin]
213    
214       Affects c-- and moby only
215    
216    ----------------------------------------------------------------------
217    Name: Matthias Blume
218    Date: 2000/07/04 15:26:00
219    Tag: blume-20000704-trigger
220    Description:
221    
222    1. Improvements to CM manual.
223    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
224       of getting a back-trace.  The function, when called, raises an
225       internal exception which explicitly carries the full back-trace history,
226       so it is unaffected by any intervening handle-raise pairs ("trivial"
227       or not).  The interactive loop will print that history once it arrives
228       at top level.
229       Short of having all exceptions implicitly carry the full history, the
230       recommended way of using this facility is:
231         - compile your program with instrumentation "on"
232         - run it, when it raises an exception, look at the history
233         - if the history is "cut off" because of some handler, go and modify
234           your program so that it explicitly calls BTrace.trigger
235         - recompile (still instrumented), and rerun; look at the full history
236    
237    ----------------------------------------------------------------------
238    Name: Matthias Blume
239    Date: 2000/07/03 15:36:00 JST
240    Tag: blume-20000702-manual
241    Description:
242    
243    Small corrections and updates to CM manual.
244    
245    ----------------------------------------------------------------------
246    Name: Matthias Blume
247    Date: 2000/06/29 16:04:00 JST
248    Tag: blume-20000629-yacctool
249    Description:
250    
251    Changes:
252    
253    1. Class "mlyacc" now takes separate arguments to pass options to
254       generated .sml- and .sig-files independently.
255    2. Corresponding CM manual updates.
256    3. BTrace module now also reports call sites.  (However, for loop clusters
257       it only shows from where the cluster was entered.)  There are associated
258       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
259    
260    ----------------------------------------------------------------------
261    Name: Matthias Blume
262    Date: 2000/06/27 16:51:00 JST
263    Tag: blume-20000627-noweb
264    Description:
265    
266    Changes:
267    
268     1. Implemented "subdir" and "witness" options for noweb tool.
269        This caused some slight internal changes in CM's tool implementation.
270     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
271        some remaining issues from earlier path anchor changes.
272     3. Updated CM manual accordingly.
273    
274     4. Changed implementation of back-tracing so that I now consider it
275        ready for prime-time.
276    
277        In particular, you don't have to explicitly trigger the back-trace
278        anymore.  Instead, if you are running BTrace-instrumented code and
279        there is an uncaught exception (regardless of whether or not it was
280        raised in instrumented code), the top-level evalloop will print
281        the back-trace.
282    
283        Features:
284    
285          - Instrumented and uninstrumented code work together seemlessly.
286            (Of course, uninstrumented code is never mentioned in actual
287             back-traces.)
288    
289          - Asymptotic time- and space-complexity of instrumented code is
290            equal to that of uninstrumented code.  (This means that
291            tail-recursion is preserved by the instrumentation phase.)
292    
293          - Modules whose code has been instrumented in different sessions
294            work together without problem.
295    
296          - There is no penalty whatsoever on uninstrumented code.
297    
298          - There is no penalty on "raise" expressions, even in
299            instrumented code.
300    
301        A potential bug (or perhaps it is a feature, too):
302    
303          A back-trace reaches no further than the outermost instrumented
304          non-trivial "raise".  Here, a "trivial" raise is one that is the
305          sole RHS of a "handle" rule.  Thus, back-traces reach trough
306    
307               <exp> handle e => raise e
308    
309          and even
310    
311               <exp> handle Foo => raise Bar
312    
313          and, of course, through
314    
315               <exp> handle Foo => ...
316    
317         if the exception was not Foo.
318    
319         Back-traces always reach right through any un-instrumented code
320         including any of its "handle" expressions, trivial or not.
321    
322       To try this out, do the following:
323    
324         - Erase all existing binfiles for your program.
325           (You may keep binfiles for those modules where you think you
326            definitely don't need back-tracing.)
327         - Turn on back-trace instrumentation:
328              SMLofNJ.Internals.BTrace.mode (SOME true);
329         - Recompile your program.  (I.e., run "CM.make" or "use".)
330         - You may now turn instrumentation off again (if you want):
331              SMLofNJ.Internals.BTrace.mode (SOME false);
332         - Run your program as usual.  If it raises an exception that
333           reaches the interactive toplevel, then a back-trace will
334           automatically be printed.  After that, the toplevel loop
335           will print the exception history as usual.
336    
337    ----------------------------------------------------------------------
338    Name: Matthias Blume
339    Date: 2000/06/26 09:56:46 JST
340    Tag: blume-20000626-setup
341    Description:
342    
343    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
344          ML code before and after compiling a file (e.g., to set compiler
345          flags)
346    
347    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
348              - associated changes to btrace.sml (BTrace instrumentation pass)
349              - cleaner implementation of btimp.sml (BTrace tracing and report
350                module)
351    
352    CM manual: * new path encoding documented
353               * description of setup-parameter to "sml" added
354    
355    The biggest user-visible change to back-tracing is that it is no
356    longer necessary to compile all traced modules within the same
357    session.  (This was a real limitation.)
358    
359    ----------------------------------------------------------------------
360    Name: Matthias Blume
361    Date: 2000/06/24 12:40:00 JST
362    Tag: blume-20000624-startup
363    Description:
364    
365    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
366    bit too often -- to put it mildly. :)
367    
368    ----------------------------------------------------------------------
369    Name: Matthias Blume
370    Date: 2000/06/23 18:20:00 JST
371    Tag: blume-20000623-btrace
372    Description:
373    
374    This updates adds a backtrace facility to aid programmers in debugging
375    their programs.  This involves the following changes:
376    
377    1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
378       keeping track of the current call stack.  When programs are compiled
379       in a special mode, the compiler will insert calls to these hooks
380       into the user program.
381       "Hook" means that it is possible for different implementations of
382       back-tracing to register themselves (at different times).
383    
384    2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
385       as an Absyn.dec->Absyn.dec rewrite.  Normally this phase is turned off.
386       It can be turned on using this call:
387         SMLofNJ.Internals.BTrace.mode (SOME true);
388       Turning it off again:
389         SMLofNJ.Internals.BTrace.mode (SOME false);
390       Querying the current status:
391         SMLofNJ.Internals.BTrace.mode NONE;
392       Annotated programs are about twice as big as normal ones, and they
393       run a factor of 2 to 4 slower with a dummy back-trace plugin (one
394       where all hooks do nothing).  The slowdown with a plugin that is
395       actually useful (such as the one supplied by default) is even greater,
396       but in the case of the default plugin it is still only an constant
397       factor (amortized).
398    
399    3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
400       with a sub-structure BTrace for controlling back-tracing.  In particular,
401       the above-mentioned function "mode" controls whether the annotation
402       phase is invoked by the compiler.  Another important function is
403       "trigger": when called it aborts the current execution and causes
404       the top-level loop to print a full back-trace.
405    
406    4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
407       for back-tracing.  It keeps track of the dynamic call stack and in
408       addition to that it keeps a partial history at each "level" of that
409       stack.  For example, if a tail-calls b, b tail-calls c, and c tail-calls
410       d and b (at separate times, dynamically), then the report will show:
411    
412       GOTO   d
413             /c
414       GOTO  \b
415       CALL   a
416    
417       This shows that there was an initial non-tail call of a, then a
418       tail-call to b or c, looping behavior in a cluster of functions that
419       consist of b and c, and then a goto from that cluster (i.e., either from
420       b or from c) to d.
421    
422       Note that (depending on the user program) the amount of information
423       that the back-trace module has to keep track of at each level is bounded
424       by a constant.  Thus, the whole implementation has the same asymptotical
425       complexity as the original program (both in space and in time).
426    
427    5. compiler/TopLevel/interact/evalloop.sml has been modified to
428       handle the special exception SMLofNJ.Internals.BTrace.BTrace
429       which is raised by the "trigger" function mentioned above.
430    
431    Notes on usage:
432    
433    - Annotated code works well together with unannotated code:
434    Unannotated calls simply do not show up at all in the backtrace.
435    
436    - It is not a good idea to let modules that were annotated during
437    different sessions run at the same time.  This is because the compiler
438    chooses small integers to identify individual functions, and there
439    will be clashes if different modules were compiled in separate sessions.
440    (Nothing will crash, and you will even be told about the clashes, but
441    back-trace information will in general not be useful.)
442    
443    - Back-tracing can be confused by callcc and capture.
444    
445    - The only way of getting a back-trace right now is to explicitly
446    invoke the "trigger" function from your user program.  Eventually, we
447    should make every exception carry back-trace information (if
448    available).  But since this creates more overhead at "raise"-time
449    (similar to the current exnHistory overhead), I have not yet
450    implemented this.  (The implementation will be rather easy.)  With
451    exceptions carrying back-trace information, this facility will be even
452    more useful because users don't need to modify their programs...
453    
454    - While it is possible to compile the compiler with back-trace
455    annotations turned on (I did it to get some confidence in
456    correctness), you must make absolutely sure that core.sml and
457    btimp.sml are compiled WITHOUT annotation!  (core.sml cannot actually
458    be compiled with annotation because there is no core access yet, but
459    if you compile btimp.sml with annotation, then the system will go into
460    an infinite recursion and crash.)
461    Since CM currently does not know about BTrace, the only way to turn
462    annotations on and off for different modules of the compiler is to
463    interrupt CMB.make, change the settings, and re-invoke it.  Of course,
464    this is awkward and clumsy.
465    
466    Sample sessions:
467    
468    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
469    - SMLofNJ.Internals.BTrace.mode (SOME true);
470    [autoloading]
471    [autoloading done]
472    val it = false : bool
473    - structure X = struct
474    -     fun main n = let
475    -         fun a (x, 0) = d x
476    -           | a (x, n) = b (x, n - 1)
477    -         and b (x, n) = c (x, n)
478    -         and c (x, n) = a (x, n)
479    -         and d x = e (x, 3)
480    -         and e (x, 0) = f x
481    -           | e (x, n) = e (x, n - 1)
482    -         and f 0 = SMLofNJ.Internals.BTrace.trigger ()
483    -           | f n = n * g (n - 1)
484    -         and g n = a (n, 3)
485    -     in
486    -         f n
487    -     end
488    - end;
489    structure X : sig val main : int -> int end
490    - X.main 3;
491    *** BACK-TRACE ***
492    GOTO   stdIn:4.2-13.20: X.main[2].f
493    GOTO-( stdIn:4.2-13.20: X.main[2].e
494    GOTO   stdIn:4.2-13.20: X.main[2].d
495         / stdIn:4.2-13.20: X.main[2].a
496         | stdIn:4.2-13.20: X.main[2].b
497    GOTO-\ stdIn:4.2-13.20: X.main[2].c
498    CALL   stdIn:4.2-13.20: X.main[2].g
499    GOTO   stdIn:4.2-13.20: X.main[2].f
500    GOTO-( stdIn:4.2-13.20: X.main[2].e
501    GOTO   stdIn:4.2-13.20: X.main[2].d
502         / stdIn:4.2-13.20: X.main[2].a
503         | stdIn:4.2-13.20: X.main[2].b
504    GOTO-\ stdIn:4.2-13.20: X.main[2].c
505    CALL   stdIn:4.2-13.20: X.main[2].g
506    GOTO   stdIn:4.2-13.20: X.main[2].f
507    GOTO-( stdIn:4.2-13.20: X.main[2].e
508    GOTO   stdIn:4.2-13.20: X.main[2].d
509         / stdIn:4.2-13.20: X.main[2].a
510         | stdIn:4.2-13.20: X.main[2].b
511    GOTO-\ stdIn:4.2-13.20: X.main[2].c
512    CALL   stdIn:4.2-13.20: X.main[2].g
513    GOTO   stdIn:4.2-13.20: X.main[2].f
514    CALL   stdIn:2.15-17.4: X.main[2]
515    -
516    
517    (Note that because of a FLINt bug the above code currently does not
518    compile without BTrace turned on.)
519    
520    Here is another example, using my modified Tiger compiler:
521    
522    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
523    - SMLofNJ.Internals.BTrace.mode (SOME true);
524    [autoloading]
525    [autoloading done]
526    val it = false : bool
527    - CM.make "sources.cm";
528    [autoloading]
529    ...
530    [autoloading done]
531    [scanning sources.cm]
532    [parsing (sources.cm):parse.sml]
533    [creating directory CM/SKEL ...]
534    [parsing (sources.cm):tiger.lex.sml]
535    ...
536    [wrote CM/sparc-unix/semant.sml]
537    [compiling (sources.cm):main.sml]
538    [wrote CM/sparc-unix/main.sml]
539    [New bindings added.]
540    val it = true : bool
541    - Main.compile ("../testcases/merge.tig", "foo.out");
542    *** BACK-TRACE ***
543    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
544    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
545    CALL   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
546    GOTO   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
547    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
548    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
549    CALL   lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
550         / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
551    CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
552    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
553    CALL   lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
554    CALL   main.sml:1.18-118.4: Main.compile[2]
555    -
556    
557    ----------------------------------------------------------------------
558    Name: Matthias Blumen
559    Date: 2000/06/21 18:00:00 JST
560    Tag: blume-20000621-manual
561    Description:
562    
563    CM manual update: Path environments documented.
564    
565  ----------------------------------------------------------------------  ----------------------------------------------------------------------
566  Name: Matthias Blume  Name: Matthias Blume
567  Date: 2000/06/19 13:40:00  Date: 2000/06/19 13:40:00

Legend:
Removed from v.672  
changed lines
  Added in v.710

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