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 675, Fri Jun 23 09:18:18 2000 UTC revision 679, Thu Jun 29 07:03:20 2000 UTC
# Line 12  Line 12 
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14  ----------------------------------------------------------------------  ----------------------------------------------------------------------
15    Name: Matthias Blumen
16    Date: 2000/06/29 16:04:00 JST
17    Tag: blume-20000629-yacctool
18    Description:
19    
20    Changes:
21    
22    1. Class "mlyacc" now takes separate arguments to pass options to
23       generated .sml- and .sig-files independently.
24    2. Corresponding CM manual updates.
25    3. BTrace module now also reports call sites.  (However, for loop clusters
26       it only shows from where the cluster was entered.)  There are associated
27       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
28    
29    ----------------------------------------------------------------------
30    Name: Matthias Blume
31    Date: 2000/06/27 16:51:00 JST
32    Tag: blume-20000627-noweb
33    Description:
34    
35    Changes:
36    
37     1. Implemented "subdir" and "witness" options for noweb tool.
38        This caused some slight internal changes in CM's tool implementation.
39     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
40        some remaining issues from earlier path anchor changes.
41     3. Updated CM manual accordingly.
42    
43     4. Changed implementation of back-tracing so that I now consider it
44        ready for prime-time.
45    
46        In particular, you don't have to explicitly trigger the back-trace
47        anymore.  Instead, if you are running BTrace-instrumented code and
48        there is an uncaught exception (regardless of whether or not it was
49        raised in instrumented code), the top-level evalloop will print
50        the back-trace.
51    
52        Features:
53    
54          - Instrumented and uninstrumented code work together seemlessly.
55            (Of course, uninstrumented code is never mentioned in actual
56             back-traces.)
57    
58          - Asymptotic time- and space-complexity of instrumented code is
59            equal to that of uninstrumented code.  (This means that
60            tail-recursion is preserved by the instrumentation phase.)
61    
62          - Modules whose code has been instrumented in different sessions
63            work together without problem.
64    
65          - There is no penalty whatsoever on uninstrumented code.
66    
67          - There is no penalty on "raise" expressions, even in
68            instrumented code.
69    
70        A potential bug (or perhaps it is a feature, too):
71    
72          A back-trace reaches no further than the outermost instrumented
73          non-trivial "raise".  Here, a "trivial" raise is one that is the
74          sole RHS of a "handle" rule.  Thus, back-traces reach trough
75    
76               <exp> handle e => raise e
77    
78          and even
79    
80               <exp> handle Foo => raise Bar
81    
82          and, of course, through
83    
84               <exp> handle Foo => ...
85    
86         if the exception was not Foo.
87    
88         Back-traces always reach right through any un-instrumented code
89         including any of its "handle" expressions, trivial or not.
90    
91       To try this out, do the following:
92    
93         - Erase all existing binfiles for your program.
94           (You may keep binfiles for those modules where you think you
95            definitely don't need back-tracing.)
96         - Turn on back-trace instrumentation:
97              SMLofNJ.Internals.BTrace.mode (SOME true);
98         - Recompile your program.  (I.e., run "CM.make" or "use".)
99         - You may now turn instrumentation off again (if you want):
100              SMLofNJ.Internals.BTrace.mode (SOME false);
101         - Run your program as usual.  If it raises an exception that
102           reaches the interactive toplevel, then a back-trace will
103           automatically be printed.  After that, the toplevel loop
104           will print the exception history as usual.
105    
106    ----------------------------------------------------------------------
107    Name: Matthias Blume
108    Date: 2000/06/26 09:56:46 JST
109    Tag: blume-20000626-setup
110    Description:
111    
112    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
113          ML code before and after compiling a file (e.g., to set compiler
114          flags)
115    
116    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
117              - associated changes to btrace.sml (BTrace instrumentation pass)
118              - cleaner implementation of btimp.sml (BTrace tracing and report
119                module)
120    
121    CM manual: * new path encoding documented
122               * description of setup-parameter to "sml" added
123    
124    The biggest user-visible change to back-tracing is that it is no
125    longer necessary to compile all traced modules within the same
126    session.  (This was a real limitation.)
127    
128    ----------------------------------------------------------------------
129    Name: Matthias Blume
130    Date: 2000/06/24 12:40:00 JST
131    Tag: blume-20000624-startup
132    Description:
133    
134    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
135    bit too often -- to put it mildly. :)
136    
137    ----------------------------------------------------------------------
138  Name: Matthias Blume  Name: Matthias Blume
139  Date: 2000/06/23 18:20:00 JST  Date: 2000/06/23 18:20:00 JST
140  Tag: blume-20000623-btrace  Tag: blume-20000623-btrace

Legend:
Removed from v.675  
changed lines
  Added in v.679

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