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 671, Mon Jun 19 02:02:32 2000 UTC revision 808, Wed Apr 18 15:43:09 2001 UTC
# Line 11  Line 11 
11  Date:  Date:
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    
15    ----------------------------------------------------------------------
16    Name: Matthias Blume
17    Date: 2001/04/18 12:45:00 EDT
18    Tag: blume-20010418-ccalls
19    Description:
20    
21     - fixed two off-by-4 errors in the x86-specific c-calls implementation
22       (this bug prevented structure arguments containing pointers from being
23        passed correctly)
24     - changed the raw-C-call code in mlriscGen.sml in such a way that
25       structure arguments are represented as a pointer to the beginning
26       of the structure (instead of having a series of synthesized arguments,
27       one for each structure member)
28    
29     - made makeml script's verbosity level configurable via environment
30       variable (MAKEML_VERBOSITY)
31    
32     - eliminteded placeholder implementations for f32l, w16s, i16s, and f32s
33       in rawmem-x86.sml; we are now using the real thing
34    
35    ----------------------------------------------------------------------
36    Name: Matthias Blume
37    Date: 2001/03/22 16:25:00 EST
38    Tag: blume-20010322-bootfiles
39    Description:
40    
41    Created a new set of bootfiles (for your automatic installation convenience).
42    
43    ----------------------------------------------------------------------
44    Name: Matthias Blume
45    Date: 2001/03/22 15:10:00 EST
46    Tag: blume-20010322-rawmem-parcm
47    Description:
48    
49    1. All "raw memory access" primitives for the new FFI are implemented now
50       (at least on the x86).
51    2. Some further cleanup of CM's parallel make mechanism.
52    
53    ----------------------------------------------------------------------
54    Name: Matthias Blume
55    Date: 2001/03/19 17:53:00 EST
56    Tag: blume-20010319-parallel
57    Description:
58    
59    Parallel make (using compile servers) now works again.
60    
61    To this end, CM.stabilize and CMB.make have been modified to work in
62    two passes when compile servers are attached:
63       1. Compile everything, do not perform stabilization; this pass
64          uses compile servers
65       2. Stabilize everything; this pass does not use compile servers
66    If there are no compile servers, the two passes are combined into one
67    (as before).  Splitting the passes increases the inherent parallelism
68    in the dependency graph because the entire graph including all
69    libraries is available at the same time.  This, in turn, improves
70    server utilization.  The downside is that the master process will
71    have to do some extra work after compilation is done (because for
72    technical reasons it must re-read all the binfiles during stabilization).
73    
74    ----------------------------------------------------------------------
75    Name: Matthias Blume
76    Date: 2001/03/16 12:22:00 EST
77    Tag: blume-20010316-bootfiles
78    Description:
79    
80    Created a new set of bootfiles (for your automatic installation convenience).
81    
82    ----------------------------------------------------------------------
83    Name: Matthias Blume
84    Date: 2001/03/16 11:00:00 EST
85    Tag: blume-20010316-MLTREE-fixup
86    Description:
87    
88    This is a minor fixup for an (untagged) earlier commit by Allen.
89    (A file was missing).
90    
91    ----------------------------------------------------------------------
92    Name: Allen Leung
93    Date: Mon Mar  5 18:54:57 EST 2001
94    Tag: leunga-20010305-cut-support
95    
96    1. New support for alternative control-flow in MLTREE.
97       Currently we support
98    
99          FLOW_TO(CALL ...., [k1,...,kn])
100    
101       This is needed for 'cuts to' in C-- and try/handle-like constructs
102       in Moby
103    
104       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
105    
106    2. Register Allocator
107    
108       Changes in interface [from Fermin, John]
109    
110    3. Alpha 8-bit SLL support [Fermin]
111    
112    4. All architectures
113    
114       A new module (ClusterExpandCopies) for expanding parallel copies.
115    
116    ----------------------------------------------------------------------
117    Name: Allen Leung
118    Date: 2001/02/27 23:07:00 EST
119    Tag: leunga-20010227-minor-stuff
120    
121    1. Alpha bug fix for CMOVNE
122    2. Handle mltree COND(..,FCMP ...,...)
123    3. Bug fix in simplifier
124    
125    ----------------------------------------------------------------------
126    Name: Matthias Blume
127    Date: 2001/01/30 17:50:00 EST
128    Tag: blume-20010130-sync
129    Description:
130    
131    This is just a minor update to sync my devel branch with the main brach.
132    The only visible change is the addition of some README files.
133    
134    ----------------------------------------------------------------------
135    Name: Matthias Blume
136    Date: 2001/01/12 23:30:00 JST
137    Tag: blume-20010112-bootfiles
138    Description:
139    
140    Made a new set of bootfiles that goes with the current state of the
141    repository.
142    
143    ----------------------------------------------------------------------
144    Name: Matthias Blume
145    Date: 2001/01/12 21:20:00 JST
146    Tag: blume-20010112-sync
147    Description:
148    
149    I am just flushing out some minor changes that had accumulated in
150    my private branch in order to sync with the main tree.  (This is
151    mainly because I had CVS trouble when trying to merge _into_ my
152    private branch.)
153    
154    Most people should be completely unaffected by this.
155    
156    ----------------------------------------------------------------------
157    Name: Allen Leung
158    Date: Thu Jan 11 21:03:00 EST 2001
159    Tag: leunga-20010111-labexp=mltree
160    Description:
161    
162    1.  Removed the type LabelExp and replace it by MLTree.
163    2.  Rewritten mltree-simplify with the pattern matcher tool.
164    3.  There were some bugs in alpha code generator which would break
165        64-bit code generation.
166    4.  Redo the tools to generate code with the
167    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
168        are now generated by perl scripts.
169    
170    ----------------------------------------------------------------------
171    Name: Matthias Blume
172    Date: 2001/01/10 21:55:00 JST
173    Tag: blume-20010110-rcc
174    Description:
175    
176    The RCC stuff now seems to work (but only on the x86).
177    This required hacking of the c-calls interface (and -implementation) in
178    MLRISC.
179    
180    Normal compiler users should be unaffected.
181    
182    ----------------------------------------------------------------------
183    Name: Matthias Blume
184    Date: 2001/01/09 01:20:00 JST
185    Tag: blume-20010109-rcc
186    Description:
187    
188    This is a fairly big patch, flushing out a large number of pending
189    changes that I made to my development copy over the last couple of days.
190    
191    Of practical relevance at this moment is a workaround for a pickling
192    bug that Allen ran into the other day.  The cause of the bug itself is
193    still unknown and it might be hard to fix it properly, but the
194    workaround has some merits of its own (namely somewhat reducing pickling
195    overhead for certain libraries).  Therefore, I think this solution should
196    be satisfactory at this time.
197    
198    The rest of the changes (i.e., the vast majority) has to do with my
199    ongoing efforts of providing direct support for C function calls from
200    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
201    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
202    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
203    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
204    handle RCC.
205    
206    The last part (the changes to mlriscGen.sml) are still known to be
207    wrong on the x86 and not implemented on all other architectures.  But
208    the infrastructure is in place. I had to change a few functor
209    signatures in the backend to be able to route the CCalls interface
210    from MLRISC there, and I had to specialize the mltree type (on the
211    x86) to include the necessary extensions. (The extensions themselves
212    were already there and redy to go in MLRISC/x86).
213    
214    Everything should be very happy as soon as someone helps me with
215    mlriscGen.sml...
216    
217    In any case, nothing of this should matter to anyone as long as the
218    new primop is not being used (which is going to be the case unless you
219    find it where I hid it :). The rest of the compiler is completely
220    unaffected.
221    
222    ----------------------------------------------------------------------
223    Name: Matthias Blume
224    Date: 2001/01/05 00:30:00 JST
225    Tag: blume-20010105-primops
226    Description:
227    
228    Added some experimental support for work that I am doing right now.
229    These changes mostly concern added primops, but there is also a new
230    experimental C library in the runtime system (but currently not enabled
231    anywhere except on Linux/X86).
232    
233    In the course of adding primops (and playing with them), I discovered that
234    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
235    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
236    To recover, I made type information in INL_PRIM mandatory and changed
237    prim.sml as well as built-in.sml accordingly.  The InLine structure now
238    has complete, correct type information (i.e., no bottom types).
239    
240    Since all these changes mean that we need new binfiles, I also bumped the
241    version number to 110.32.1.
242    
243    ----------------------------------------------------------------------
244    Name: Matthias Blume
245    Date: 2000/12/30 22:10:00 JST
246    Tag: blume-20001230-various
247    Description:
248    
249    Added proxy libraries for MLRISC and let MLRISC libraries refer
250    to each other using path anchors.  (See CM manual for explanation.)
251    
252    Updated CM documentation.
253    
254    Fixed some bugs in CM.
255    
256    Implemented "proxy" libraries (= syntactic sugar for CM).
257    
258    Added "-quiet" option to makeml and changed runtime system accordingly.
259    
260    Added cleanup handler for exportML to reset timers and compiler stats.
261    
262    ----------------------------------------------------------------------
263    Name: Lal George
264    Date: 2000/12/22 22:22:58 EST 2000
265    Tag: Release_110_32
266    Description:
267    
268            Infinite precision used throughout MLRISC.
269            see MLRISC/mltree/machine-int.sig
270    
271    ----------------------------------------------------------------------
272    Name: Matthias Blume
273    Date: 2000/12/22 23:16:00 JST
274    Tag: blume-20001222-warn
275    Description:
276    
277    Corrected wording and formatting of some CM warning message which I
278    broke in my previous patch.
279    
280    ----------------------------------------------------------------------
281    Name: Matthias Blume
282    Date: 2000/12/22 21:20:00 JST
283    Tag: blume-20001222-anchorenv
284    Description:
285    
286    Fixed CM's handling of anchor environments in connection with CMB.make.
287    
288    ----------------------------------------------------------------------
289    Name: Matthias Blume
290    Date: 2000/12/22 13:15:00 JST
291    Tag: blume-20001222-cleanup
292    Description:
293    
294    Removed src/cm/ffi which does not (and did not) belong here.
295    
296    ----------------------------------------------------------------------
297    Name: Matthias Blume
298    Date: 2000/12/21 23:55:00 JST
299    Tag: blume-20001221-exn
300    Description:
301    
302    Probably most important: CM no longer silently swallows all exceptions
303    in the compiler.
304    Plus: some other minor CM changes.  For example, CM now reports some
305    sizes for generated binfiles (code, data, envpickle, lambdapickle).
306    
307    ----------------------------------------------------------------------
308    Name: Matthias Blume
309    Date: 2000/12/15 00:01:05 JST
310    Tag: blume-20001215-dirtool
311    Description:
312    
313    - "dir" tool added.
314    - improvements and cleanup to Tools structure
315    - documentation updates
316    
317    ----------------------------------------------------------------------
318    Name: Allen Leung
319    Date: Thu Dec 14 03:45:24 EST 2000
320    Description:
321    Tag:  leunga-20001214-int-inf
322    Description:
323    
324       In IntInf, added these standard functions, which are missing from our
325    implementation:
326    
327        andb : int * int -> int
328        xorb : int * int -> int
329        orb  : int * int -> int
330        notb : int -> int
331         <<   : int * word -> int
332        ~>>  : int * word -> int
333    
334       Not tested, I hope they are correct.
335    
336    ----------------------------------------------------------------------
337    Name: Allen Leung
338    Date: Fri Dec  8 19:23:26 EST 2000
339    Description:
340    Tag:  leunga-20001208-nowhere
341    Description:
342    
343      Slight improvements to the 'nowhere' tool to handle OR-patterns,
344    to generate better error messages etc.  Plus a brief manual.
345    
346    ----------------------------------------------------------------------
347    Name: Lal George
348    Date: 2000/12/08 09:54:02 EST 2000
349    Tag: Release_110_31
350    Description:
351    
352    - Version 110.31
353    ----------------------------------------------------------------------
354    Name: Allen Leung
355    Date: Thu Dec  7 22:01:04 EST 2000
356    Tag:  leunga-20001207-cell-monster-hack
357    Description:
358    
359    Major MLRISC internal changes.  Affect all clients.
360    Summary:
361    
362    1.  Type CELLS.cell = int is now replaced by a datatype.
363        As a result, the old regmap is now gone.  Almost all interfaces
364        in MLRISC change as a consequence.
365    
366    2.  A new brand version of machine description tool (v3.0) that generates
367        modules expecting the new interface.  The old version is removed.
368    
369    3.  The RA interface has been further abstracted into two new functors.
370        RISC_RA and X86RA.  These functors have much simpler interfaces.
371        [See also directory MLRISC/demo.]
372    
373    4.  Some other new source->source code generation tools are available:
374    
375        a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
376        b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
377           I use this tool to generate the peephole optimizers---with the new
378           cell type changes, peephole rules are becoming difficult to write
379           without conditional pattern matching.
380    
381    5.  More Intmap -> IntHashTable change.  Previous changes by Matthias didn't
382        cover the entire MLRISC source tree so many things broke.
383    
384    6.  CM files have been moved to the subdirectory MLRISC/cm.
385        They are moved because there are a lot of them and they clutter up the
386        root dir.
387    
388    7.  More detailed documentation to come...
389    
390        NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
391        a makeml -rebuild first.  This is because of other other
392        changes that Matthias has made (see below).
393    
394    
395    ----------------------------------------------------------------------
396    Name: Matthias Blume
397    Date: 2000/11/30 23:12:00 JST
398    Tag: blume-20001130-filereorg
399    Description:
400    
401    Some manual updates and some file reorganizations in CM.
402    
403    ----------------------------------------------------------------------
404    Name: Matthias Blume
405    Date: 2000/11/24 17:45:00 JST
406    Tag: blume-20001124-link
407    Description:
408    
409    Drastically improved link traversal code for the case that the dynamic
410    value was already loaded at bootstrap time.  As a result, CM and CMB
411    now both load blazingly fast -- even on a very slow machine.  Also,
412    memory consumption has been further reduced by this.
413    
414    Warning: The format of the PIDMAP file has changed.  THerefore, to
415    bootstrap you have to do this:
416    
417    1. Run CMB.make
418    2. Make a symbolic link for the boot directory:
419         ln -s sml.boot.ARCH-OS xxx
420    3. "Rebuild" the boot directory:
421         ./makeml -boot xxx -rebuild sml ; rm xxx
422    4. Boot normally:
423          ./makeml
424    
425    ----------------------------------------------------------------------
426    Name: Matthias Blume
427    Date: 2000/11/21 21:20:00 JST
428    Tag: blume-20001121-tools
429    Description:
430    
431    Continued hacking on autoloading problem -- with success this time.
432    Also changed tool-plugin mechanism.  See new CM manual.
433    
434    ----------------------------------------------------------------------
435    Name: Matthias Blume
436    Date: 2000/11/19 14:30:00 JST
437    Tag:  blume-20001119-autoload
438    Description:
439    
440    Some hacking to make autoloading faster.  Success for CMB, no success
441    so far for CM.  There is a reduced structure CM' that autoloads faster.
442    (This is a temporary, non-documented hack to be eliminated again when
443    the general problem is solved.)
444    
445    ----------------------------------------------------------------------
446    Name: Matthias Blume
447    Date: 2000/11/17 14:10:00 JST
448    Tag: blume-20001117-pickle-lib
449    Description:
450    
451    1. Eliminated comp-lib.cm
452    2. Made pickle-lib.cm
453    3. Eliminated all uses of intset.sml (from comp-lib.cm)
454    4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
455       equivalent constructs from smlnj-lib.cm (INtHashTable).
456    5. Point 4. also goes for those uses of intmap.* in MLRISC.
457       Duplicated intmap modules thrown out.
458    6. Hunted down all duplicated SCC code and replaced it with
459       equivalent stuff (GraphSCCFn from smlnj-lib.cm).
460    7. Rewrote Feedback module.
461    8. Moved sortedlist.sml into viscomp-lib.cm.  Eventually it
462       should be thrown out and equivalent modules from smlnj-lib.cm
463       should be used (IntRedBlackSet, IntListSet, ...).
464    
465    Confirmed that compiler compiles to fixpoint.
466    
467    ----------------------------------------------------------------------
468    Name: Allen Leung
469    Date: 2000/11/10 18:00:00
470    Tag: leunga-20001110-new-x86-fp
471    
472    A new x86 floating point code generator has been added.
473    By default this is turned off.  To turn this on, do:
474    
475        CM.autoload "$smlnj/compiler.cm";
476        Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
477    
478    Changes:
479    
480    1.  Changed FTAN to FPTAN so that the assembly output is correct.
481    2.  Changed the extension callback for FTANGENT to generate:
482    
483              fptan
484              fstp  %st(0)
485        instead of
486              fptan
487              fstpl ftempmem
488    
489    3.  Numerous assembly fixes for x86.
490    
491    5.  Cleaned up the machine code output module x86/x86MC.sml and added
492        support for a whole bunch of instructions and addressing modes:
493    
494          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st, %st(n)
495          faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp  %st, %st(n)
496          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st(n), %st
497          fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
498          fxch %st(n)
499          fld %st(n)
500          fst %st(n)
501          fst mem
502          fstp %st(n)
503          fucom %st(n)
504          fucomp %st(n)
505    
506        All these are now generated when the fast fp mode is turned on.
507    
508    6.  Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
509    
510    ----------------------------------------------------------------------
511    Name: Matthias Blume
512    Date: 2000/11/09 11:20:00 JST
513    Tag: blume-20001109-scc
514    Description:
515    
516    Eliminated some code duplication:
517    
518    1. Added "where" clause to GraphSCCFn in SML/NJ Library.
519       (Otherwise the functor is useless.)
520    2. Used GraphSCCFn where SCCUtilFun was used previously.
521    3. Got rid of SCCUtilFun (in comp-lib.cm).
522    
523    ----------------------------------------------------------------------
524    Name: Lal George
525    Date: 2000/11/06 09:02:21 EST 2000
526    Tag: Release_110_30
527    Description:
528    
529    - Version 110.30
530    ----------------------------------------------------------------------
531    Name: Matthias Blume
532    Date: 2000/11/04 14:45:00
533    Tag: blume-20001104-mlbuild
534    Description:
535    
536    - Made ml-build faster on startup.
537    - Documentation fixes.
538    
539    ----------------------------------------------------------------------
540    Name: Matthias Blume
541    Date: 2000/11/02 17:00:00 JST
542    Tag: blume-20001102-condcomp
543    Description:
544    
545    - Small tweaks to pickler -- new BOOTFILES!
546    - Version bumped to 110.29.2.
547    - Added conditional compilation facility to init.cmi (see comment there).
548    ----------------------------------------------------------------------
549    Name: Allen Leung
550    Date: 2000/10/23 19:31:00
551    Tag: leunga-20001023-demo-ra
552    
553    1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
554    2. Test programs for the graph library updated
555    3. Some new MLRISC demo programs added
556    
557    ----------------------------------------------------------------------
558    Name: Matthias Blume
559    Date: 2000/08/31 22:15:00 JST
560    Tag: blume-20001017-errmsg
561    Description:
562    
563    More error message grief: Where there used to be no messages, there
564    now were some that had bogus error regions.  Fixed.
565    
566    ----------------------------------------------------------------------
567    Name: Matthias Blume
568    Date: 2000/08/31 17:30:00 JST
569    Tag: blume-20001017-v110p29p1
570    Description:
571    
572    I made a version 110.29.1 with new bootfiles.
573    
574    Changes:  Modified pickler/unpickler for faster and leaner unpickling.
575              CM documentation changes and a small bugfix in CM's error reporting.
576    
577    ----------------------------------------------------------------------
578    Name: Lal George
579    Date: 2000/09/27 14:42:35 EDT
580    Tag: george-20000927-nodestatus
581    Description:
582    
583    Changed the type of the nodestatus, so that:
584    
585            SPILLED(~1)             is now SPILLED
586            SPILLED(m) where m>=0   is now MEMREG(m)
587            SPILLED(s) where s<~1   is now SPILL_LOC(~s)
588    
589    ----------------------------------------------------------------------
590    Name: Matthias Blume
591    Date: 2000/09/07 14:45:00 JST
592    Tag: blume-20000907-cmerrmsg
593    Description:
594    
595    Small tweak to CM to avoid getting ML syntax error messages twice.
596    
597    ----------------------------------------------------------------------
598    Name: Matthias Blume
599    Date: 2000/08/31 18:00:00 JST
600    Tag: blume-20000831-cvsbootfiles
601    Description:
602    
603    New URL for boot files (because the 110.29 files on the BL server do
604    now work correctly with my updated install scripts for yacc and lex).
605    
606    ----------------------------------------------------------------------
607    Name: Matthias Blume
608    Date: 2000/08/08 12:33:00 JST
609    Tag: blume-20000808-manual
610    Description:
611    
612    Tiny update to CM manual.
613    
614    ----------------------------------------------------------------------
615    Name: Allen Leung
616    Date: 2000/08/7 19:31:00
617    Tag: leunga-20000807-a-whole-bunch-of-stuff
618    
619      Moby, C--, SSA, x86, machine descriptions etc.  Should only affect C--
620    and Mobdy.
621    
622    1.  x86
623    
624       a.  Fixes to peephole module by John and Dan.
625       b.  Assembly fix to SETcc by Allen.
626       c.  Fix to c-call by John.
627       d.  Fix to spilling by John.  (This one deals with the missing FSTPT case)
628       e.  Instruction selection optimization to SETcc as suggested by John.
629    
630           For example,
631    
632            MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
633    
634           should generate:
635    
636            MOVL a, x
637            SUBL b, x
638            SHRL 31, x
639    
640    2.  IR stuff
641    
642         A bunch of new DJ-graph related algorithms added.  These
643         speed up SSA construction.
644    
645    3.  SSA + Scheduling
646    
647         Added code for SSA and scheduling to the repository
648    
649    ----------------------------------------------------------------------
650    Name: Lal George
651    Date: 2000/07/27 11:53:14 EDT
652    
653    Tag: lal-20000727-linux-ppc
654    Description:
655    
656     Made changes to support Linux PPC.
657     p.s. I have confirmation that the 110.29 boot files work fine.
658    
659    ----------------------------------------------------------------------
660    Name: Matthias Blume
661    Date: 2000/07/27 17:40:00 JST
662    Tag: blume-20000727-scripts
663    Description:
664    
665    !!!! WARNING !!!!
666    You must recompile the runtime system!
667    !!!! WARNING !!!!
668    
669    This is basically another round of script-enhancements:
670    
671    1. sml, ml-build, and ml-makedepend accept options -D and -U to define
672       and undefine CM preprocessor symbols.
673    
674    2. ml-build avoids generating a new heap image if it finds that the
675       existing one is still ok.  (The condition is that no ML file had to
676       be recompiled and all ML files are found to be older that the heap
677       file.)
678    
679       To make this work smoothly, I also hacked the runtime system as
680       well as SMLofNJ.SysInfo to get access to the heap image suffix
681       (.sparc-solaris, ...) that is currently being used.
682    
683       Moreover, the signature of CM.mk_standalone has changed.  See the
684       CM manual.
685    
686    3. ml-makedepend accepts additional options -n, -a, and -o.  (See the
687       CM manual for details.)
688    
689    4. More CM manual updates:
690        - all of the above has been documented.
691        - there is now a section describing the (CM-related) command line
692          arguments that are accepted by the "sml" command
693    
694    ----------------------------------------------------------------------
695    Name: Matthias Blume
696    Date: 2000/07/25 16:20:00 JST
697    Tag: blume-20000725-makedepend
698    Description:
699    
700    Added a script called ml-makedepend.  This can be used in makefiles
701    for Unix' make in a way very similar to the "makedepend" command for
702    C.
703    
704    The script internally uses function CM.sources.
705    
706    Synopsis:
707    
708        ml-makedepend [-f makefile] cmfile targetname
709    
710    The default for the makefile is "makefile" (or "Makefile" should
711    "makefile" not exist).
712    
713    ml-makedepend adds a cmfile/targetname-specific section to this
714    makefile (after removing the previous version of this section).  The
715    section contains a single dependency specification with targetname on
716    the LHS (targetname is an arbitrary name), and a list of files derived
717    from the cmfile on the RHS.  Some of the files on the RHS are
718    ARCH/OPSYS-specific.  Therefore, ml-makedepend inserts references to
719    "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
720    path names.  The makefile writer is responsible for making sure that
721    these variables have correct at the time "make" is invoked.
722    
723    ----------------------------------------------------------------------
724    Name: Matthias Blume
725    Date: 2000/07/22 23:30:00 JST
726    Tag: blume-20000722-urlupdate
727    Description:
728    
729    Changed BOOT and config/srcarchiveurl to point to BL server:
730    
731        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
732    
733    ----------------------------------------------------------------------
734    Name: Matthias Blume
735    Date: 2000/07/18 18:00:00 JST
736    Tag: blume-20000718-Version_110_29
737    Description:
738    
739    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
740    
741    2. Updated config/version to 110.29
742    
743    3. Updated config/srcarchiveurl
744    
745    3. New boot files!
746       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
747    
748    ----------------------------------------------------------------------
749    Name: Matthias Blume
750    Date: 2000/07/11 13:58:00 JST
751    Tag: blume-20000711-doctypo
752    Description:
753    
754    Fixed a few typos in CM manual.
755    
756    ----------------------------------------------------------------------
757    Name: Allen Leung
758    Date: 2000/06/15 00:38:00
759    Tag: leunga-20000704-sparc-x86
760    
761    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
762    2. fix to x86 RET bug [found by Dan Grossman]
763    3. sparc assembly bug fix for ticc instructions [found by Fermin]
764    
765       Affects c-- and moby only
766    
767    ----------------------------------------------------------------------
768    Name: Matthias Blume
769    Date: 2000/07/04 15:26:00
770    Tag: blume-20000704-trigger
771    Description:
772    
773    1. Improvements to CM manual.
774    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
775       of getting a back-trace.  The function, when called, raises an
776       internal exception which explicitly carries the full back-trace history,
777       so it is unaffected by any intervening handle-raise pairs ("trivial"
778       or not).  The interactive loop will print that history once it arrives
779       at top level.
780       Short of having all exceptions implicitly carry the full history, the
781       recommended way of using this facility is:
782         - compile your program with instrumentation "on"
783         - run it, when it raises an exception, look at the history
784         - if the history is "cut off" because of some handler, go and modify
785           your program so that it explicitly calls BTrace.trigger
786         - recompile (still instrumented), and rerun; look at the full history
787    
788    ----------------------------------------------------------------------
789    Name: Matthias Blume
790    Date: 2000/07/03 15:36:00 JST
791    Tag: blume-20000702-manual
792    Description:
793    
794    Small corrections and updates to CM manual.
795    
796    ----------------------------------------------------------------------
797    Name: Matthias Blume
798    Date: 2000/06/29 16:04:00 JST
799    Tag: blume-20000629-yacctool
800    Description:
801    
802    Changes:
803    
804    1. Class "mlyacc" now takes separate arguments to pass options to
805       generated .sml- and .sig-files independently.
806    2. Corresponding CM manual updates.
807    3. BTrace module now also reports call sites.  (However, for loop clusters
808       it only shows from where the cluster was entered.)  There are associated
809       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
810    
811    ----------------------------------------------------------------------
812    Name: Matthias Blume
813    Date: 2000/06/27 16:51:00 JST
814    Tag: blume-20000627-noweb
815    Description:
816    
817    Changes:
818    
819     1. Implemented "subdir" and "witness" options for noweb tool.
820        This caused some slight internal changes in CM's tool implementation.
821     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
822        some remaining issues from earlier path anchor changes.
823     3. Updated CM manual accordingly.
824    
825     4. Changed implementation of back-tracing so that I now consider it
826        ready for prime-time.
827    
828        In particular, you don't have to explicitly trigger the back-trace
829        anymore.  Instead, if you are running BTrace-instrumented code and
830        there is an uncaught exception (regardless of whether or not it was
831        raised in instrumented code), the top-level evalloop will print
832        the back-trace.
833    
834        Features:
835    
836          - Instrumented and uninstrumented code work together seemlessly.
837            (Of course, uninstrumented code is never mentioned in actual
838             back-traces.)
839    
840          - Asymptotic time- and space-complexity of instrumented code is
841            equal to that of uninstrumented code.  (This means that
842            tail-recursion is preserved by the instrumentation phase.)
843    
844          - Modules whose code has been instrumented in different sessions
845            work together without problem.
846    
847          - There is no penalty whatsoever on uninstrumented code.
848    
849          - There is no penalty on "raise" expressions, even in
850            instrumented code.
851    
852        A potential bug (or perhaps it is a feature, too):
853    
854          A back-trace reaches no further than the outermost instrumented
855          non-trivial "raise".  Here, a "trivial" raise is one that is the
856          sole RHS of a "handle" rule.  Thus, back-traces reach trough
857    
858               <exp> handle e => raise e
859    
860          and even
861    
862               <exp> handle Foo => raise Bar
863    
864          and, of course, through
865    
866               <exp> handle Foo => ...
867    
868         if the exception was not Foo.
869    
870         Back-traces always reach right through any un-instrumented code
871         including any of its "handle" expressions, trivial or not.
872    
873       To try this out, do the following:
874    
875         - Erase all existing binfiles for your program.
876           (You may keep binfiles for those modules where you think you
877            definitely don't need back-tracing.)
878         - Turn on back-trace instrumentation:
879              SMLofNJ.Internals.BTrace.mode (SOME true);
880         - Recompile your program.  (I.e., run "CM.make" or "use".)
881         - You may now turn instrumentation off again (if you want):
882              SMLofNJ.Internals.BTrace.mode (SOME false);
883         - Run your program as usual.  If it raises an exception that
884           reaches the interactive toplevel, then a back-trace will
885           automatically be printed.  After that, the toplevel loop
886           will print the exception history as usual.
887    
888    ----------------------------------------------------------------------
889    Name: Matthias Blume
890    Date: 2000/06/26 09:56:46 JST
891    Tag: blume-20000626-setup
892    Description:
893    
894    CM: - setup-parameter to "sml" added; this can be used to run arbitrary
895          ML code before and after compiling a file (e.g., to set compiler
896          flags)
897    
898    Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
899              - associated changes to btrace.sml (BTrace instrumentation pass)
900              - cleaner implementation of btimp.sml (BTrace tracing and report
901                module)
902    
903    CM manual: * new path encoding documented
904               * description of setup-parameter to "sml" added
905    
906    The biggest user-visible change to back-tracing is that it is no
907    longer necessary to compile all traced modules within the same
908    session.  (This was a real limitation.)
909    
910    ----------------------------------------------------------------------
911    Name: Matthias Blume
912    Date: 2000/06/24 12:40:00 JST
913    Tag: blume-20000624-startup
914    Description:
915    
916    Fixes startup slowdown problem.  (I was calling SrcPath.sync a _tad_
917    bit too often -- to put it mildly. :)
918    
919    ----------------------------------------------------------------------
920    Name: Matthias Blume
921    Date: 2000/06/23 18:20:00 JST
922    Tag: blume-20000623-btrace
923    Description:
924    
925    This updates adds a backtrace facility to aid programmers in debugging
926    their programs.  This involves the following changes:
927    
928    1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
929       keeping track of the current call stack.  When programs are compiled
930       in a special mode, the compiler will insert calls to these hooks
931       into the user program.
932       "Hook" means that it is possible for different implementations of
933       back-tracing to register themselves (at different times).
934    
935    2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
936       as an Absyn.dec->Absyn.dec rewrite.  Normally this phase is turned off.
937       It can be turned on using this call:
938         SMLofNJ.Internals.BTrace.mode (SOME true);
939       Turning it off again:
940         SMLofNJ.Internals.BTrace.mode (SOME false);
941       Querying the current status:
942         SMLofNJ.Internals.BTrace.mode NONE;
943       Annotated programs are about twice as big as normal ones, and they
944       run a factor of 2 to 4 slower with a dummy back-trace plugin (one
945       where all hooks do nothing).  The slowdown with a plugin that is
946       actually useful (such as the one supplied by default) is even greater,
947       but in the case of the default plugin it is still only an constant
948       factor (amortized).
949    
950    3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
951       with a sub-structure BTrace for controlling back-tracing.  In particular,
952       the above-mentioned function "mode" controls whether the annotation
953       phase is invoked by the compiler.  Another important function is
954       "trigger": when called it aborts the current execution and causes
955       the top-level loop to print a full back-trace.
956    
957    4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
958       for back-tracing.  It keeps track of the dynamic call stack and in
959       addition to that it keeps a partial history at each "level" of that
960       stack.  For example, if a tail-calls b, b tail-calls c, and c tail-calls
961       d and b (at separate times, dynamically), then the report will show:
962    
963       GOTO   d
964             /c
965       GOTO  \b
966       CALL   a
967    
968       This shows that there was an initial non-tail call of a, then a
969       tail-call to b or c, looping behavior in a cluster of functions that
970       consist of b and c, and then a goto from that cluster (i.e., either from
971       b or from c) to d.
972    
973       Note that (depending on the user program) the amount of information
974       that the back-trace module has to keep track of at each level is bounded
975       by a constant.  Thus, the whole implementation has the same asymptotical
976       complexity as the original program (both in space and in time).
977    
978    5. compiler/TopLevel/interact/evalloop.sml has been modified to
979       handle the special exception SMLofNJ.Internals.BTrace.BTrace
980       which is raised by the "trigger" function mentioned above.
981    
982    Notes on usage:
983    
984    - Annotated code works well together with unannotated code:
985    Unannotated calls simply do not show up at all in the backtrace.
986    
987    - It is not a good idea to let modules that were annotated during
988    different sessions run at the same time.  This is because the compiler
989    chooses small integers to identify individual functions, and there
990    will be clashes if different modules were compiled in separate sessions.
991    (Nothing will crash, and you will even be told about the clashes, but
992    back-trace information will in general not be useful.)
993    
994    - Back-tracing can be confused by callcc and capture.
995    
996    - The only way of getting a back-trace right now is to explicitly
997    invoke the "trigger" function from your user program.  Eventually, we
998    should make every exception carry back-trace information (if
999    available).  But since this creates more overhead at "raise"-time
1000    (similar to the current exnHistory overhead), I have not yet
1001    implemented this.  (The implementation will be rather easy.)  With
1002    exceptions carrying back-trace information, this facility will be even
1003    more useful because users don't need to modify their programs...
1004    
1005    - While it is possible to compile the compiler with back-trace
1006    annotations turned on (I did it to get some confidence in
1007    correctness), you must make absolutely sure that core.sml and
1008    btimp.sml are compiled WITHOUT annotation!  (core.sml cannot actually
1009    be compiled with annotation because there is no core access yet, but
1010    if you compile btimp.sml with annotation, then the system will go into
1011    an infinite recursion and crash.)
1012    Since CM currently does not know about BTrace, the only way to turn
1013    annotations on and off for different modules of the compiler is to
1014    interrupt CMB.make, change the settings, and re-invoke it.  Of course,
1015    this is awkward and clumsy.
1016    
1017    Sample sessions:
1018    
1019    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
1020    - SMLofNJ.Internals.BTrace.mode (SOME true);
1021    [autoloading]
1022    [autoloading done]
1023    val it = false : bool
1024    - structure X = struct
1025    -     fun main n = let
1026    -         fun a (x, 0) = d x
1027    -           | a (x, n) = b (x, n - 1)
1028    -         and b (x, n) = c (x, n)
1029    -         and c (x, n) = a (x, n)
1030    -         and d x = e (x, 3)
1031    -         and e (x, 0) = f x
1032    -           | e (x, n) = e (x, n - 1)
1033    -         and f 0 = SMLofNJ.Internals.BTrace.trigger ()
1034    -           | f n = n * g (n - 1)
1035    -         and g n = a (n, 3)
1036    -     in
1037    -         f n
1038    -     end
1039    - end;
1040    structure X : sig val main : int -> int end
1041    - X.main 3;
1042    *** BACK-TRACE ***
1043    GOTO   stdIn:4.2-13.20: X.main[2].f
1044    GOTO-( stdIn:4.2-13.20: X.main[2].e
1045    GOTO   stdIn:4.2-13.20: X.main[2].d
1046         / stdIn:4.2-13.20: X.main[2].a
1047         | stdIn:4.2-13.20: X.main[2].b
1048    GOTO-\ stdIn:4.2-13.20: X.main[2].c
1049    CALL   stdIn:4.2-13.20: X.main[2].g
1050    GOTO   stdIn:4.2-13.20: X.main[2].f
1051    GOTO-( stdIn:4.2-13.20: X.main[2].e
1052    GOTO   stdIn:4.2-13.20: X.main[2].d
1053         / stdIn:4.2-13.20: X.main[2].a
1054         | stdIn:4.2-13.20: X.main[2].b
1055    GOTO-\ stdIn:4.2-13.20: X.main[2].c
1056    CALL   stdIn:4.2-13.20: X.main[2].g
1057    GOTO   stdIn:4.2-13.20: X.main[2].f
1058    GOTO-( stdIn:4.2-13.20: X.main[2].e
1059    GOTO   stdIn:4.2-13.20: X.main[2].d
1060         / stdIn:4.2-13.20: X.main[2].a
1061         | stdIn:4.2-13.20: X.main[2].b
1062    GOTO-\ stdIn:4.2-13.20: X.main[2].c
1063    CALL   stdIn:4.2-13.20: X.main[2].g
1064    GOTO   stdIn:4.2-13.20: X.main[2].f
1065    CALL   stdIn:2.15-17.4: X.main[2]
1066    -
1067    
1068    (Note that because of a FLINt bug the above code currently does not
1069    compile without BTrace turned on.)
1070    
1071    Here is another example, using my modified Tiger compiler:
1072    
1073    Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
1074    - SMLofNJ.Internals.BTrace.mode (SOME true);
1075    [autoloading]
1076    [autoloading done]
1077    val it = false : bool
1078    - CM.make "sources.cm";
1079    [autoloading]
1080    ...
1081    [autoloading done]
1082    [scanning sources.cm]
1083    [parsing (sources.cm):parse.sml]
1084    [creating directory CM/SKEL ...]
1085    [parsing (sources.cm):tiger.lex.sml]
1086    ...
1087    [wrote CM/sparc-unix/semant.sml]
1088    [compiling (sources.cm):main.sml]
1089    [wrote CM/sparc-unix/main.sml]
1090    [New bindings added.]
1091    val it = true : bool
1092    - Main.compile ("../testcases/merge.tig", "foo.out");
1093    *** BACK-TRACE ***
1094    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
1095    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1096    CALL   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
1097    GOTO   lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
1098    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1099    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1100    CALL   lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
1101         / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
1102    CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
1103    CALL   lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1104    CALL   lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
1105    CALL   main.sml:1.18-118.4: Main.compile[2]
1106    -
1107    
1108    ----------------------------------------------------------------------
1109    Name: Matthias Blumen
1110    Date: 2000/06/21 18:00:00 JST
1111    Tag: blume-20000621-manual
1112    Description:
1113    
1114    CM manual update: Path environments documented.
1115    
1116    ----------------------------------------------------------------------
1117    Name: Matthias Blume
1118    Date: 2000/06/19 13:40:00
1119    Tag: blume-20000619-manual
1120    Description:
1121    
1122    CM manual and system/README update.  This only covers the fact that
1123    there are no more implicit anchors.  (Path environments and the "bind"
1124    option to "cm" have yet to be documented.)
1125    
1126  ----------------------------------------------------------------------  ----------------------------------------------------------------------
1127  Name: Matthias Blume  Name: Matthias Blume
1128  Date: 2000/06/19 11:05:00 JST  Date: 2000/06/19 11:05:00 JST

Legend:
Removed from v.671  
changed lines
  Added in v.808

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