Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/HISTORY
ViewVC logotype

Annotation of /sml/trunk/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log


Revision 771 - (view) (download)

1 : dbm 570 This is the HISTORY file for the Yale SML/NJ CVS repository.
2 :    
3 :     An entry should be made for _every_ commit to the repository.
4 :     The entries in this file will be used when creating the README
5 :     for new versions, so keep that in mind when writing the
6 :     description.
7 :    
8 :     The form of an entry should be:
9 :    
10 :     Name:
11 :     Date:
12 :     Tag: <post-commit CVS tag>
13 :     Description:
14 : george 749 ----------------------------------------------------------------------
15 : blume 771 Name: Matthias Blume
16 :     Date: 2000/12/30 22:10:00 JST
17 :     Tag: blume-20001230-various
18 :     Description:
19 :    
20 :     Added proxy libraries for MLRISC and let MLRISC libraries refer
21 :     to each other using path anchors. (See CM manual for explanation.)
22 :    
23 :     Updated CM documentation.
24 :    
25 :     Fixed some bugs in CM.
26 :    
27 :     Implemented "proxy" libraries (= syntactic sugar for CM).
28 :    
29 :     Added "-quiet" option to makeml and changed runtime system accordingly.
30 :    
31 :     Added cleanup handler for exportML to reset timers and compiler stats.
32 :    
33 :     ----------------------------------------------------------------------
34 : george 761 Name: Lal George
35 :     Date: 2000/12/22 22:22:58 EST 2000
36 :     Tag: Release_110_32
37 :     Description:
38 :    
39 :     Infinite precision used throughout MLRISC.
40 :     see MLRISC/mltree/machine-int.sig
41 :    
42 :     ----------------------------------------------------------------------
43 : blume 756 Name: Matthias Blume
44 : blume 760 Date: 2000/12/22 23:16:00 JST
45 :     Tag: blume-20001222-warn
46 :     Description:
47 : blume 759
48 : blume 760 Corrected wording and formatting of some CM warning message which I
49 :     broke in my previous patch.
50 : blume 759
51 :     ----------------------------------------------------------------------
52 :     Name: Matthias Blume
53 : blume 763 Date: 2000/12/22 21:20:00 JST
54 :     Tag: blume-20001222-anchorenv
55 :     Description:
56 :    
57 :     Fixed CM's handling of anchor environments in connection with CMB.make.
58 :    
59 :     ----------------------------------------------------------------------
60 :     Name: Matthias Blume
61 : blume 758 Date: 2000/12/22 13:15:00 JST
62 :     Tag: blume-20001222-cleanup
63 :     Description:
64 :    
65 :     Removed src/cm/ffi which does not (and did not) belong here.
66 :    
67 :     ----------------------------------------------------------------------
68 :     Name: Matthias Blume
69 : blume 757 Date: 2000/12/21 23:55:00 JST
70 :     Tag: blume-20001221-exn
71 :     Description:
72 :    
73 :     Probably most important: CM no longer silently swallows all exceptions
74 :     in the compiler.
75 :     Plus: some other minor CM changes. For example, CM now reports some
76 :     sizes for generated binfiles (code, data, envpickle, lambdapickle).
77 :    
78 :     ----------------------------------------------------------------------
79 :     Name: Matthias Blume
80 : blume 756 Date: 2000/12/15 00:01:05 JST
81 :     Tag: blume-20001215-dirtool
82 :     Description:
83 :    
84 :     - "dir" tool added.
85 :     - improvements and cleanup to Tools structure
86 :     - documentation updates
87 :    
88 :     ----------------------------------------------------------------------
89 : leunga 752 Name: Allen Leung
90 : leunga 755 Date: Thu Dec 14 03:45:24 EST 2000
91 :     Description:
92 :     Tag: leunga-20001214-int-inf
93 :     Description:
94 :    
95 :     In IntInf, added these standard functions, which are missing from our
96 :     implementation:
97 :    
98 :     andb : int * int -> int
99 :     xorb : int * int -> int
100 :     orb : int * int -> int
101 :     notb : int -> int
102 :     << : int * word -> int
103 :     ~>> : int * word -> int
104 :    
105 :     Not tested, I hope they are correct.
106 :    
107 :     ----------------------------------------------------------------------
108 :     Name: Allen Leung
109 : leunga 752 Date: Fri Dec 8 19:23:26 EST 2000
110 :     Description:
111 :     Tag: leunga-20001208-nowhere
112 :     Description:
113 :    
114 :     Slight improvements to the 'nowhere' tool to handle OR-patterns,
115 :     to generate better error messages etc. Plus a brief manual.
116 :    
117 :     ----------------------------------------------------------------------
118 : george 749 Name: Lal George
119 :     Date: 2000/12/08 09:54:02 EST 2000
120 :     Tag: Release_110_31
121 :     Description:
122 : george 705
123 : george 749 - Version 110.31
124 : leunga 591 ----------------------------------------------------------------------
125 : leunga 744 Name: Allen Leung
126 :     Date: Thu Dec 7 22:01:04 EST 2000
127 :     Tag: leunga-20001207-cell-monster-hack
128 :     Description:
129 :    
130 :     Major MLRISC internal changes. Affect all clients.
131 :     Summary:
132 :    
133 :     1. Type CELLS.cell = int is now replaced by a datatype.
134 :     As a result, the old regmap is now gone. Almost all interfaces
135 :     in MLRISC change as a consequence.
136 :    
137 :     2. A new brand version of machine description tool (v3.0) that generates
138 :     modules expecting the new interface. The old version is removed.
139 :    
140 :     3. The RA interface has been further abstracted into two new functors.
141 :     RISC_RA and X86RA. These functors have much simpler interfaces.
142 :     [See also directory MLRISC/demo.]
143 :    
144 :     4. Some other new source->source code generation tools are available:
145 :    
146 :     a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
147 :     b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
148 :     I use this tool to generate the peephole optimizers---with the new
149 :     cell type changes, peephole rules are becoming difficult to write
150 :     without conditional pattern matching.
151 :    
152 :     5. More Intmap -> IntHashTable change. Previous changes by Matthias didn't
153 :     cover the entire MLRISC source tree so many things broke.
154 :    
155 :     6. CM files have been moved to the subdirectory MLRISC/cm.
156 :     They are moved because there are a lot of them and they clutter up the
157 :     root dir.
158 :    
159 :     7. More detailed documentation to come...
160 :    
161 :     NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
162 :     a makeml -rebuild first. This is because of other other
163 :     changes that Matthias has made (see below).
164 :    
165 :    
166 :     ----------------------------------------------------------------------
167 : blume 733 Name: Matthias Blume
168 : blume 742 Date: 2000/11/30 23:12:00 JST
169 :     Tag: blume-20001130-filereorg
170 :     Description:
171 :    
172 :     Some manual updates and some file reorganizations in CM.
173 :    
174 :     ----------------------------------------------------------------------
175 :     Name: Matthias Blume
176 : blume 737 Date: 2000/11/24 17:45:00 JST
177 :     Tag: blume-20001124-link
178 :     Description:
179 :    
180 :     Drastically improved link traversal code for the case that the dynamic
181 :     value was already loaded at bootstrap time. As a result, CM and CMB
182 :     now both load blazingly fast -- even on a very slow machine. Also,
183 :     memory consumption has been further reduced by this.
184 :    
185 :     Warning: The format of the PIDMAP file has changed. THerefore, to
186 :     bootstrap you have to do this:
187 :    
188 :     1. Run CMB.make
189 :     2. Make a symbolic link for the boot directory:
190 :     ln -s sml.boot.ARCH-OS xxx
191 :     3. "Rebuild" the boot directory:
192 :     ./makeml -boot xxx -rebuild sml ; rm xxx
193 :     4. Boot normally:
194 :     ./makeml
195 :    
196 :     ----------------------------------------------------------------------
197 :     Name: Matthias Blume
198 : blume 735 Date: 2000/11/21 21:20:00 JST
199 :     Tag: blume-20001121-tools
200 :     Description:
201 :    
202 :     Continued hacking on autoloading problem -- with success this time.
203 :     Also changed tool-plugin mechanism. See new CM manual.
204 :    
205 :     ----------------------------------------------------------------------
206 :     Name: Matthias Blume
207 : blume 734 Date: 2000/11/19 14:30:00 JST
208 :     Tag: blume-20001119-autoload
209 :     Description:
210 :    
211 :     Some hacking to make autoloading faster. Success for CMB, no success
212 :     so far for CM. There is a reduced structure CM' that autoloads faster.
213 :     (This is a temporary, non-documented hack to be eliminated again when
214 :     the general problem is solved.)
215 :    
216 :     ----------------------------------------------------------------------
217 :     Name: Matthias Blume
218 : blume 733 Date: 2000/11/17 14:10:00 JST
219 :     Tag: blume-20001117-pickle-lib
220 :     Description:
221 :    
222 :     1. Eliminated comp-lib.cm
223 :     2. Made pickle-lib.cm
224 :     3. Eliminated all uses of intset.sml (from comp-lib.cm)
225 :     4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
226 :     equivalent constructs from smlnj-lib.cm (INtHashTable).
227 :     5. Point 4. also goes for those uses of intmap.* in MLRISC.
228 :     Duplicated intmap modules thrown out.
229 :     6. Hunted down all duplicated SCC code and replaced it with
230 :     equivalent stuff (GraphSCCFn from smlnj-lib.cm).
231 :     7. Rewrote Feedback module.
232 :     8. Moved sortedlist.sml into viscomp-lib.cm. Eventually it
233 :     should be thrown out and equivalent modules from smlnj-lib.cm
234 :     should be used (IntRedBlackSet, IntListSet, ...).
235 :    
236 :     Confirmed that compiler compiles to fixpoint.
237 :    
238 :     ----------------------------------------------------------------------
239 : leunga 731 Name: Allen Leung
240 :     Date: 2000/11/10 18:00:00
241 :     Tag: leunga-20001110-new-x86-fp
242 :    
243 :     A new x86 floating point code generator has been added.
244 :     By default this is turned off. To turn this on, do:
245 :    
246 :     CM.autoload "$smlnj/compiler.cm";
247 :     Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
248 :    
249 :     Changes:
250 :    
251 :     1. Changed FTAN to FPTAN so that the assembly output is correct.
252 :     2. Changed the extension callback for FTANGENT to generate:
253 :    
254 :     fptan
255 :     fstp %st(0)
256 :     instead of
257 :     fptan
258 :     fstpl ftempmem
259 :    
260 :     3. Numerous assembly fixes for x86.
261 :    
262 :     5. Cleaned up the machine code output module x86/x86MC.sml and added
263 :     support for a whole bunch of instructions and addressing modes:
264 :    
265 :     fadd/fsub/fsubr/fmul/fdiv/fdivr %st, %st(n)
266 :     faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp %st, %st(n)
267 :     fadd/fsub/fsubr/fmul/fdiv/fdivr %st(n), %st
268 :     fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
269 :     fxch %st(n)
270 :     fld %st(n)
271 :     fst %st(n)
272 :     fst mem
273 :     fstp %st(n)
274 :     fucom %st(n)
275 :     fucomp %st(n)
276 :    
277 :     All these are now generated when the fast fp mode is turned on.
278 :    
279 :     6. Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
280 :    
281 :     ----------------------------------------------------------------------
282 : blume 729 Name: Matthias Blume
283 :     Date: 2000/11/09 11:20:00 JST
284 :     Tag: blume-20001109-scc
285 :     Description:
286 :    
287 :     Eliminated some code duplication:
288 :    
289 :     1. Added "where" clause to GraphSCCFn in SML/NJ Library.
290 :     (Otherwise the functor is useless.)
291 :     2. Used GraphSCCFn where SCCUtilFun was used previously.
292 :     3. Got rid of SCCUtilFun (in comp-lib.cm).
293 :    
294 :     ----------------------------------------------------------------------
295 : george 721 Name: Lal George
296 :     Date: 2000/11/06 09:02:21 EST 2000
297 :     Tag: Release_110_30
298 :     Description:
299 :    
300 :     - Version 110.30
301 :     ----------------------------------------------------------------------
302 : blume 715 Name: Matthias Blume
303 : blume 716 Date: 2000/11/04 14:45:00
304 :     Tag: blume-20001104-mlbuild
305 :     Description:
306 :    
307 :     - Made ml-build faster on startup.
308 :     - Documentation fixes.
309 :    
310 :     ----------------------------------------------------------------------
311 :     Name: Matthias Blume
312 : blume 715 Date: 2000/11/02 17:00:00 JST
313 :     Tag: blume-20001102-condcomp
314 :     Description:
315 :    
316 :     - Small tweaks to pickler -- new BOOTFILES!
317 :     - Version bumped to 110.29.2.
318 :     - Added conditional compilation facility to init.cmi (see comment there).
319 :     ----------------------------------------------------------------------
320 : leunga 713 Name: Allen Leung
321 :     Date: 2000/10/23 19:31:00
322 :     Tag: leunga-20001023-demo-ra
323 :    
324 :     1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
325 :     2. Test programs for the graph library updated
326 :     3. Some new MLRISC demo programs added
327 :    
328 :     ----------------------------------------------------------------------
329 : blume 710 Name: Matthias Blume
330 : blume 711 Date: 2000/08/31 22:15:00 JST
331 :     Tag: blume-20001017-errmsg
332 :     Description:
333 :    
334 :     More error message grief: Where there used to be no messages, there
335 :     now were some that had bogus error regions. Fixed.
336 :    
337 :     ----------------------------------------------------------------------
338 :     Name: Matthias Blume
339 : blume 710 Date: 2000/08/31 17:30:00 JST
340 :     Tag: blume-20001017-v110p29p1
341 :     Description:
342 :    
343 :     I made a version 110.29.1 with new bootfiles.
344 :    
345 :     Changes: Modified pickler/unpickler for faster and leaner unpickling.
346 :     CM documentation changes and a small bugfix in CM's error reporting.
347 :    
348 :     ----------------------------------------------------------------------
349 : george 705 Name: Lal George
350 :     Date: 2000/09/27 14:42:35 EDT
351 :     Tag: george-20000927-nodestatus
352 :     Description:
353 :    
354 :     Changed the type of the nodestatus, so that:
355 :    
356 :     SPILLED(~1) is now SPILLED
357 :     SPILLED(m) where m>=0 is now MEMREG(m)
358 :     SPILLED(s) where s<~1 is now SPILL_LOC(~s)
359 :    
360 :     ----------------------------------------------------------------------
361 : blume 697 Name: Matthias Blume
362 : blume 703 Date: 2000/09/07 14:45:00 JST
363 :     Tag: blume-20000907-cmerrmsg
364 :     Description:
365 :    
366 :     Small tweak to CM to avoid getting ML syntax error messages twice.
367 :    
368 :     ----------------------------------------------------------------------
369 :     Name: Matthias Blume
370 : blume 701 Date: 2000/08/31 18:00:00 JST
371 :     Tag: blume-20000831-cvsbootfiles
372 :     Description:
373 :    
374 :     New URL for boot files (because the 110.29 files on the BL server do
375 :     now work correctly with my updated install scripts for yacc and lex).
376 :    
377 :     ----------------------------------------------------------------------
378 :     Name: Matthias Blume
379 : blume 697 Date: 2000/08/08 12:33:00 JST
380 :     Tag: blume-20000808-manual
381 :     Description:
382 :    
383 :     Tiny update to CM manual.
384 :    
385 :     ----------------------------------------------------------------------
386 : leunga 695 Name: Allen Leung
387 :     Date: 2000/08/7 19:31:00
388 :     Tag: leunga-20000807-a-whole-bunch-of-stuff
389 :    
390 :     Moby, C--, SSA, x86, machine descriptions etc. Should only affect C--
391 :     and Mobdy.
392 :    
393 :     1. x86
394 :    
395 :     a. Fixes to peephole module by John and Dan.
396 :     b. Assembly fix to SETcc by Allen.
397 :     c. Fix to c-call by John.
398 :     d. Fix to spilling by John. (This one deals with the missing FSTPT case)
399 :     e. Instruction selection optimization to SETcc as suggested by John.
400 :    
401 :     For example,
402 :    
403 :     MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
404 :    
405 :     should generate:
406 :    
407 :     MOVL a, x
408 :     SUBL b, x
409 :     SHRL 31, x
410 :    
411 :     2. IR stuff
412 :    
413 :     A bunch of new DJ-graph related algorithms added. These
414 :     speed up SSA construction.
415 :    
416 :     3. SSA + Scheduling
417 :    
418 :     Added code for SSA and scheduling to the repository
419 :    
420 :     ----------------------------------------------------------------------
421 : george 694 Name: Lal George
422 :     Date: 2000/07/27 11:53:14 EDT
423 :    
424 :     Tag: lal-20000727-linux-ppc
425 :     Description:
426 :    
427 :     Made changes to support Linux PPC.
428 :     p.s. I have confirmation that the 110.29 boot files work fine.
429 :    
430 :     ----------------------------------------------------------------------
431 : blume 684 Name: Matthias Blume
432 : blume 692 Date: 2000/07/27 17:40:00 JST
433 :     Tag: blume-20000727-scripts
434 :     Description:
435 :    
436 :     !!!! WARNING !!!!
437 :     You must recompile the runtime system!
438 :     !!!! WARNING !!!!
439 :    
440 :     This is basically another round of script-enhancements:
441 :    
442 :     1. sml, ml-build, and ml-makedepend accept options -D and -U to define
443 :     and undefine CM preprocessor symbols.
444 :    
445 :     2. ml-build avoids generating a new heap image if it finds that the
446 :     existing one is still ok. (The condition is that no ML file had to
447 :     be recompiled and all ML files are found to be older that the heap
448 :     file.)
449 :    
450 :     To make this work smoothly, I also hacked the runtime system as
451 :     well as SMLofNJ.SysInfo to get access to the heap image suffix
452 :     (.sparc-solaris, ...) that is currently being used.
453 :    
454 :     Moreover, the signature of CM.mk_standalone has changed. See the
455 :     CM manual.
456 :    
457 :     3. ml-makedepend accepts additional options -n, -a, and -o. (See the
458 :     CM manual for details.)
459 :    
460 :     4. More CM manual updates:
461 :     - all of the above has been documented.
462 :     - there is now a section describing the (CM-related) command line
463 :     arguments that are accepted by the "sml" command
464 :    
465 :     ----------------------------------------------------------------------
466 :     Name: Matthias Blume
467 : blume 691 Date: 2000/07/25 16:20:00 JST
468 :     Tag: blume-20000725-makedepend
469 :     Description:
470 :    
471 :     Added a script called ml-makedepend. This can be used in makefiles
472 :     for Unix' make in a way very similar to the "makedepend" command for
473 :     C.
474 :    
475 :     The script internally uses function CM.sources.
476 :    
477 :     Synopsis:
478 :    
479 :     ml-makedepend [-f makefile] cmfile targetname
480 :    
481 :     The default for the makefile is "makefile" (or "Makefile" should
482 :     "makefile" not exist).
483 :    
484 :     ml-makedepend adds a cmfile/targetname-specific section to this
485 :     makefile (after removing the previous version of this section). The
486 :     section contains a single dependency specification with targetname on
487 :     the LHS (targetname is an arbitrary name), and a list of files derived
488 :     from the cmfile on the RHS. Some of the files on the RHS are
489 :     ARCH/OPSYS-specific. Therefore, ml-makedepend inserts references to
490 :     "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
491 :     path names. The makefile writer is responsible for making sure that
492 :     these variables have correct at the time "make" is invoked.
493 :    
494 :     ----------------------------------------------------------------------
495 :     Name: Matthias Blume
496 : blume 690 Date: 2000/07/22 23:30:00 JST
497 :     Tag: blume-20000722-urlupdate
498 :     Description:
499 :    
500 :     Changed BOOT and config/srcarchiveurl to point to BL server:
501 :    
502 :     ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
503 :    
504 :     ----------------------------------------------------------------------
505 :     Name: Matthias Blume
506 : blume 686 Date: 2000/07/18 18:00:00 JST
507 :     Tag: blume-20000718-Version_110_29
508 :     Description:
509 :    
510 :     1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
511 :    
512 :     2. Updated config/version to 110.29
513 :    
514 :     3. Updated config/srcarchiveurl
515 :    
516 :     3. New boot files!
517 :     ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
518 :    
519 :     ----------------------------------------------------------------------
520 :     Name: Matthias Blume
521 : blume 684 Date: 2000/07/11 13:58:00 JST
522 :     Tag: blume-20000711-doctypo
523 :     Description:
524 :    
525 :     Fixed a few typos in CM manual.
526 :    
527 :     ----------------------------------------------------------------------
528 : leunga 683 Name: Allen Leung
529 :     Date: 2000/06/15 00:38:00
530 :     Tag: leunga-20000704-sparc-x86
531 :    
532 :     1. x86 peephole improvement sp += k; sp -= k => nop [from John]
533 :     2. fix to x86 RET bug [found by Dan Grossman]
534 :     3. sparc assembly bug fix for ticc instructions [found by Fermin]
535 :    
536 :     Affects c-- and moby only
537 :    
538 :     ----------------------------------------------------------------------
539 : blume 680 Name: Matthias Blume
540 : blume 682 Date: 2000/07/04 15:26:00
541 :     Tag: blume-20000704-trigger
542 :     Description:
543 :    
544 :     1. Improvements to CM manual.
545 :     2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
546 :     of getting a back-trace. The function, when called, raises an
547 :     internal exception which explicitly carries the full back-trace history,
548 :     so it is unaffected by any intervening handle-raise pairs ("trivial"
549 :     or not). The interactive loop will print that history once it arrives
550 :     at top level.
551 :     Short of having all exceptions implicitly carry the full history, the
552 :     recommended way of using this facility is:
553 :     - compile your program with instrumentation "on"
554 :     - run it, when it raises an exception, look at the history
555 :     - if the history is "cut off" because of some handler, go and modify
556 :     your program so that it explicitly calls BTrace.trigger
557 :     - recompile (still instrumented), and rerun; look at the full history
558 :    
559 :     ----------------------------------------------------------------------
560 :     Name: Matthias Blume
561 :     Date: 2000/07/03 15:36:00 JST
562 : blume 680 Tag: blume-20000702-manual
563 :     Description:
564 :    
565 :     Small corrections and updates to CM manual.
566 :    
567 :     ----------------------------------------------------------------------
568 : blume 682 Name: Matthias Blume
569 : blume 679 Date: 2000/06/29 16:04:00 JST
570 :     Tag: blume-20000629-yacctool
571 :     Description:
572 :    
573 :     Changes:
574 :    
575 :     1. Class "mlyacc" now takes separate arguments to pass options to
576 :     generated .sml- and .sig-files independently.
577 :     2. Corresponding CM manual updates.
578 :     3. BTrace module now also reports call sites. (However, for loop clusters
579 :     it only shows from where the cluster was entered.) There are associated
580 :     modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
581 :    
582 :     ----------------------------------------------------------------------
583 : blume 675 Name: Matthias Blume
584 : blume 678 Date: 2000/06/27 16:51:00 JST
585 :     Tag: blume-20000627-noweb
586 :     Description:
587 :    
588 :     Changes:
589 :    
590 :     1. Implemented "subdir" and "witness" options for noweb tool.
591 :     This caused some slight internal changes in CM's tool implementation.
592 :     2. Fixed bug in "tool plugin" mechanism. This is essentially cleaning
593 :     some remaining issues from earlier path anchor changes.
594 :     3. Updated CM manual accordingly.
595 :    
596 :     4. Changed implementation of back-tracing so that I now consider it
597 :     ready for prime-time.
598 :    
599 :     In particular, you don't have to explicitly trigger the back-trace
600 :     anymore. Instead, if you are running BTrace-instrumented code and
601 :     there is an uncaught exception (regardless of whether or not it was
602 :     raised in instrumented code), the top-level evalloop will print
603 :     the back-trace.
604 :    
605 :     Features:
606 :    
607 :     - Instrumented and uninstrumented code work together seemlessly.
608 :     (Of course, uninstrumented code is never mentioned in actual
609 :     back-traces.)
610 :    
611 :     - Asymptotic time- and space-complexity of instrumented code is
612 :     equal to that of uninstrumented code. (This means that
613 :     tail-recursion is preserved by the instrumentation phase.)
614 :    
615 :     - Modules whose code has been instrumented in different sessions
616 :     work together without problem.
617 :    
618 :     - There is no penalty whatsoever on uninstrumented code.
619 :    
620 :     - There is no penalty on "raise" expressions, even in
621 :     instrumented code.
622 :    
623 :     A potential bug (or perhaps it is a feature, too):
624 :    
625 :     A back-trace reaches no further than the outermost instrumented
626 :     non-trivial "raise". Here, a "trivial" raise is one that is the
627 :     sole RHS of a "handle" rule. Thus, back-traces reach trough
628 :    
629 :     <exp> handle e => raise e
630 :    
631 :     and even
632 :    
633 :     <exp> handle Foo => raise Bar
634 :    
635 :     and, of course, through
636 :    
637 :     <exp> handle Foo => ...
638 :    
639 :     if the exception was not Foo.
640 :    
641 :     Back-traces always reach right through any un-instrumented code
642 :     including any of its "handle" expressions, trivial or not.
643 :    
644 :     To try this out, do the following:
645 :    
646 :     - Erase all existing binfiles for your program.
647 :     (You may keep binfiles for those modules where you think you
648 :     definitely don't need back-tracing.)
649 :     - Turn on back-trace instrumentation:
650 :     SMLofNJ.Internals.BTrace.mode (SOME true);
651 :     - Recompile your program. (I.e., run "CM.make" or "use".)
652 :     - You may now turn instrumentation off again (if you want):
653 :     SMLofNJ.Internals.BTrace.mode (SOME false);
654 :     - Run your program as usual. If it raises an exception that
655 :     reaches the interactive toplevel, then a back-trace will
656 :     automatically be printed. After that, the toplevel loop
657 :     will print the exception history as usual.
658 :    
659 :     ----------------------------------------------------------------------
660 :     Name: Matthias Blume
661 : blume 677 Date: 2000/06/26 09:56:46 JST
662 :     Tag: blume-20000626-setup
663 :     Description:
664 :    
665 :     CM: - setup-parameter to "sml" added; this can be used to run arbitrary
666 :     ML code before and after compiling a file (e.g., to set compiler
667 :     flags)
668 :    
669 :     Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
670 :     - associated changes to btrace.sml (BTrace instrumentation pass)
671 :     - cleaner implementation of btimp.sml (BTrace tracing and report
672 :     module)
673 :    
674 :     CM manual: * new path encoding documented
675 :     * description of setup-parameter to "sml" added
676 :    
677 :     The biggest user-visible change to back-tracing is that it is no
678 :     longer necessary to compile all traced modules within the same
679 :     session. (This was a real limitation.)
680 :    
681 :     ----------------------------------------------------------------------
682 :     Name: Matthias Blume
683 : blume 676 Date: 2000/06/24 12:40:00 JST
684 :     Tag: blume-20000624-startup
685 :     Description:
686 :    
687 :     Fixes startup slowdown problem. (I was calling SrcPath.sync a _tad_
688 :     bit too often -- to put it mildly. :)
689 :    
690 :     ----------------------------------------------------------------------
691 :     Name: Matthias Blume
692 : blume 675 Date: 2000/06/23 18:20:00 JST
693 :     Tag: blume-20000623-btrace
694 :     Description:
695 :    
696 :     This updates adds a backtrace facility to aid programmers in debugging
697 :     their programs. This involves the following changes:
698 :    
699 :     1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
700 :     keeping track of the current call stack. When programs are compiled
701 :     in a special mode, the compiler will insert calls to these hooks
702 :     into the user program.
703 :     "Hook" means that it is possible for different implementations of
704 :     back-tracing to register themselves (at different times).
705 :    
706 :     2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
707 :     as an Absyn.dec->Absyn.dec rewrite. Normally this phase is turned off.
708 :     It can be turned on using this call:
709 :     SMLofNJ.Internals.BTrace.mode (SOME true);
710 :     Turning it off again:
711 :     SMLofNJ.Internals.BTrace.mode (SOME false);
712 :     Querying the current status:
713 :     SMLofNJ.Internals.BTrace.mode NONE;
714 :     Annotated programs are about twice as big as normal ones, and they
715 :     run a factor of 2 to 4 slower with a dummy back-trace plugin (one
716 :     where all hooks do nothing). The slowdown with a plugin that is
717 :     actually useful (such as the one supplied by default) is even greater,
718 :     but in the case of the default plugin it is still only an constant
719 :     factor (amortized).
720 :    
721 :     3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
722 :     with a sub-structure BTrace for controlling back-tracing. In particular,
723 :     the above-mentioned function "mode" controls whether the annotation
724 :     phase is invoked by the compiler. Another important function is
725 :     "trigger": when called it aborts the current execution and causes
726 :     the top-level loop to print a full back-trace.
727 :    
728 :     4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
729 :     for back-tracing. It keeps track of the dynamic call stack and in
730 :     addition to that it keeps a partial history at each "level" of that
731 :     stack. For example, if a tail-calls b, b tail-calls c, and c tail-calls
732 :     d and b (at separate times, dynamically), then the report will show:
733 :    
734 :     GOTO d
735 :     /c
736 :     GOTO \b
737 :     CALL a
738 :    
739 :     This shows that there was an initial non-tail call of a, then a
740 :     tail-call to b or c, looping behavior in a cluster of functions that
741 :     consist of b and c, and then a goto from that cluster (i.e., either from
742 :     b or from c) to d.
743 :    
744 :     Note that (depending on the user program) the amount of information
745 :     that the back-trace module has to keep track of at each level is bounded
746 :     by a constant. Thus, the whole implementation has the same asymptotical
747 :     complexity as the original program (both in space and in time).
748 :    
749 :     5. compiler/TopLevel/interact/evalloop.sml has been modified to
750 :     handle the special exception SMLofNJ.Internals.BTrace.BTrace
751 :     which is raised by the "trigger" function mentioned above.
752 :    
753 :     Notes on usage:
754 :    
755 :     - Annotated code works well together with unannotated code:
756 :     Unannotated calls simply do not show up at all in the backtrace.
757 :    
758 :     - It is not a good idea to let modules that were annotated during
759 :     different sessions run at the same time. This is because the compiler
760 :     chooses small integers to identify individual functions, and there
761 :     will be clashes if different modules were compiled in separate sessions.
762 :     (Nothing will crash, and you will even be told about the clashes, but
763 :     back-trace information will in general not be useful.)
764 :    
765 :     - Back-tracing can be confused by callcc and capture.
766 :    
767 :     - The only way of getting a back-trace right now is to explicitly
768 :     invoke the "trigger" function from your user program. Eventually, we
769 :     should make every exception carry back-trace information (if
770 :     available). But since this creates more overhead at "raise"-time
771 :     (similar to the current exnHistory overhead), I have not yet
772 :     implemented this. (The implementation will be rather easy.) With
773 :     exceptions carrying back-trace information, this facility will be even
774 :     more useful because users don't need to modify their programs...
775 :    
776 :     - While it is possible to compile the compiler with back-trace
777 :     annotations turned on (I did it to get some confidence in
778 :     correctness), you must make absolutely sure that core.sml and
779 :     btimp.sml are compiled WITHOUT annotation! (core.sml cannot actually
780 :     be compiled with annotation because there is no core access yet, but
781 :     if you compile btimp.sml with annotation, then the system will go into
782 :     an infinite recursion and crash.)
783 :     Since CM currently does not know about BTrace, the only way to turn
784 :     annotations on and off for different modules of the compiler is to
785 :     interrupt CMB.make, change the settings, and re-invoke it. Of course,
786 :     this is awkward and clumsy.
787 :    
788 :     Sample sessions:
789 :    
790 :     Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
791 :     - SMLofNJ.Internals.BTrace.mode (SOME true);
792 :     [autoloading]
793 :     [autoloading done]
794 :     val it = false : bool
795 :     - structure X = struct
796 :     - fun main n = let
797 :     - fun a (x, 0) = d x
798 :     - | a (x, n) = b (x, n - 1)
799 :     - and b (x, n) = c (x, n)
800 :     - and c (x, n) = a (x, n)
801 :     - and d x = e (x, 3)
802 :     - and e (x, 0) = f x
803 :     - | e (x, n) = e (x, n - 1)
804 :     - and f 0 = SMLofNJ.Internals.BTrace.trigger ()
805 :     - | f n = n * g (n - 1)
806 :     - and g n = a (n, 3)
807 :     - in
808 :     - f n
809 :     - end
810 :     - end;
811 :     structure X : sig val main : int -> int end
812 :     - X.main 3;
813 :     *** BACK-TRACE ***
814 :     GOTO stdIn:4.2-13.20: X.main[2].f
815 :     GOTO-( stdIn:4.2-13.20: X.main[2].e
816 :     GOTO stdIn:4.2-13.20: X.main[2].d
817 :     / stdIn:4.2-13.20: X.main[2].a
818 :     | stdIn:4.2-13.20: X.main[2].b
819 :     GOTO-\ stdIn:4.2-13.20: X.main[2].c
820 :     CALL stdIn:4.2-13.20: X.main[2].g
821 :     GOTO stdIn:4.2-13.20: X.main[2].f
822 :     GOTO-( stdIn:4.2-13.20: X.main[2].e
823 :     GOTO stdIn:4.2-13.20: X.main[2].d
824 :     / stdIn:4.2-13.20: X.main[2].a
825 :     | stdIn:4.2-13.20: X.main[2].b
826 :     GOTO-\ stdIn:4.2-13.20: X.main[2].c
827 :     CALL stdIn:4.2-13.20: X.main[2].g
828 :     GOTO stdIn:4.2-13.20: X.main[2].f
829 :     GOTO-( stdIn:4.2-13.20: X.main[2].e
830 :     GOTO stdIn:4.2-13.20: X.main[2].d
831 :     / stdIn:4.2-13.20: X.main[2].a
832 :     | stdIn:4.2-13.20: X.main[2].b
833 :     GOTO-\ stdIn:4.2-13.20: X.main[2].c
834 :     CALL stdIn:4.2-13.20: X.main[2].g
835 :     GOTO stdIn:4.2-13.20: X.main[2].f
836 :     CALL stdIn:2.15-17.4: X.main[2]
837 :     -
838 :    
839 :     (Note that because of a FLINt bug the above code currently does not
840 :     compile without BTrace turned on.)
841 :    
842 :     Here is another example, using my modified Tiger compiler:
843 :    
844 :     Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
845 :     - SMLofNJ.Internals.BTrace.mode (SOME true);
846 :     [autoloading]
847 :     [autoloading done]
848 :     val it = false : bool
849 :     - CM.make "sources.cm";
850 :     [autoloading]
851 :     ...
852 :     [autoloading done]
853 :     [scanning sources.cm]
854 :     [parsing (sources.cm):parse.sml]
855 :     [creating directory CM/SKEL ...]
856 :     [parsing (sources.cm):tiger.lex.sml]
857 :     ...
858 :     [wrote CM/sparc-unix/semant.sml]
859 :     [compiling (sources.cm):main.sml]
860 :     [wrote CM/sparc-unix/main.sml]
861 :     [New bindings added.]
862 :     val it = true : bool
863 :     - Main.compile ("../testcases/merge.tig", "foo.out");
864 :     *** BACK-TRACE ***
865 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
866 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
867 :     CALL lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
868 :     GOTO lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
869 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
870 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
871 :     CALL lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
872 :     / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
873 :     CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
874 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
875 :     CALL lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
876 :     CALL main.sml:1.18-118.4: Main.compile[2]
877 :     -
878 :    
879 :     ----------------------------------------------------------------------
880 : blume 673 Name: Matthias Blumen
881 :     Date: 2000/06/21 18:00:00 JST
882 :     Tag: blume-20000621-manual
883 :     Description:
884 :    
885 :     CM manual update: Path environments documented.
886 :    
887 :     ----------------------------------------------------------------------
888 : blume 666 Name: Matthias Blume
889 : blume 672 Date: 2000/06/19 13:40:00
890 :     Tag: blume-20000619-manual
891 :     Description:
892 :    
893 :     CM manual and system/README update. This only covers the fact that
894 :     there are no more implicit anchors. (Path environments and the "bind"
895 :     option to "cm" have yet to be documented.)
896 :    
897 :     ----------------------------------------------------------------------
898 :     Name: Matthias Blume
899 : blume 671 Date: 2000/06/19 11:05:00 JST
900 :     Tag: blume-20000619-chdir-bugfix
901 :     Description:
902 :    
903 :     Fixed a bug in new SrcPath module that sometimes led to a bad chDir call.
904 :    
905 :     ----------------------------------------------------------------------
906 :     Name: Matthias Blume
907 : blume 670 Date: 2000/06/18 22:00:10 JST
908 :     Tag: blume-20000618-implicit-anchors-really-gone
909 :     Description:
910 :    
911 :     I updates the previous HISTORY entry where I forgot to mention that
912 :     implicit anchors are no longer with us.
913 :    
914 :     The current update also gets rid of the (now useless) controller
915 :     CM.Control.implicit_anchors.
916 :    
917 :     ----------------------------------------------------------------------
918 :     Name: Matthias Blume
919 : blume 666 Date: 2000/06/16 17:30:00 JST
920 :     Tag: blume-20000616-anchorenv
921 :     Description:
922 :    
923 :     This patch implements the long anticipated (just kidding :) "anchor
924 :     environment" mechanism. In the course of doing this, I also
925 :     re-implemented CM's internal "SrcPath" module from scratch. The new
926 :     one should be more robust in certain boundary cases. In any case, it
927 :     is a lot cleaner than its predecessor (IMHO).
928 :    
929 :     This time, although there is yet another boot file format change, I
930 :     kept the unpickler backward-compatible. As a result, no new bootfiles
931 :     are necessary and bootstrapping is straightforward. (You cannot read
932 :     new bootfiles into an old system, but the other way around is no
933 :     problem.)
934 :    
935 :     Visible changes:
936 :    
937 : blume 670 ** 0. Implicit path anchors (without the leading $-symbol) are no
938 :     longer recognized at all. This means that such path names are not
939 :     illegal either. For example, the name basis.cm simply refers to a
940 :     local file called "basis.cm" (i.e, the name is an ordinary path
941 :     relative to .cm-files directory). Or, to put it differently, only
942 :     names that start with $ are anchored paths.
943 : blume 666
944 : blume 670 ** 1. The $<singlearc> abbreviation for $/<singlearc> has finally
945 :     vanished.
946 :    
947 :     John (Reppy) had critizised this as soon as I originally proposed and
948 : blume 666 implemented it, but at that time I did not really deeply believe
949 :     him. :) Now I came full-circle because I need the $<singlearc> syntax
950 :     in another place where it cannot be seen as an abbreviation for
951 :     $/<singlearc>. To avoid the confusion, $<singlearc> now means what it
952 :     seems to mean (i.e., it "expands" into the corresponding anchor
953 :     value).
954 :    
955 :     However, when paths are used as members in CM description files, it
956 :     continues to be true that there must be at least another arc after the
957 :     anchor. This is now enforced separately during semantic analysis
958 : blume 670 (i.e., from a lexical/syntactical point of view, the notation is ok.)
959 : blume 666
960 :     ** 2. The "cm" class now accepts an option "bind". The option's value
961 :     is a sub-option list of precisely two items -- one labeled "anchor"
962 :     and the other one labeled "value". As you might expect, "anchor" is
963 :     used to specify an anchor name to be bound, and "value" specifies what
964 :     the anchor is being bound to.
965 :    
966 :     The value must be a directory name and can be given in either standard
967 :     syntax (including the possibility that it is itself an anchored path)
968 :     or native syntax.
969 :    
970 :     Examples:
971 :    
972 :     foo.cm (bind:(anchor:bar value:$mystuff/bar))
973 :     lib.cm (bind:(anchor:a value:"H:\\x\\y\\z")) (* only works under windows *)
974 :    
975 :     and so on.
976 :    
977 :     The meaning of this is that the .cm-file will be processed with an
978 :     augmented anchor environment where the given anchor(s) is/are bound to
979 :     the given values(s).
980 :    
981 :     The rationale for having this feature is this: Suppose you are trying
982 :     to use two different (already stable) libraries a.cm and b.cm (that
983 :     you perhaps didn't write yourself). Further, suppose each of these
984 :     two libraries internally uses its own auxiliary library $aux/lib.cm.
985 :     Normally you would now have a problem because the anchor "lib" can not
986 :     be bound to more than one value globally. Therefore, the project that
987 :     uses both a.cm and b.cm must locally redirect the anchor to some other
988 :     place:
989 :    
990 :     a.cm (bind:(anchor:lib value:/usr/lib/smlnj/a-stuff))
991 :     b.cm (bind:(anchor:lib value:/usr/lib/smlnj/b-stuff))
992 :    
993 :     This hard-wires $lib/aux.cm to /usr/lib/smlnj/a-stuff/aux.cm or
994 :     /usr/lib/smlnj/b-stuff/aux.cm, respectively.
995 :    
996 :     Hard-wiring path names is a bit inflexible (and CM will verbosely warn
997 :     you when you do so at the time of CM.stabilize). Therefore, you can
998 :     also use an anchored path as the value:
999 :    
1000 :     a.cm (bind:(anchor:lib value:$a-lib))
1001 :     b.cm (bind:(anchor:lib value:$b-lib))
1002 :    
1003 :     Now you can globally configure (using the usual CM.Anchor.anchor or
1004 :     pathconfig machinery) bindings for "a-lib" and "b-lib". Since "lib"
1005 :     itself is always locally bound, setting it globally is no longer
1006 :     meaningful or necessary (but it does not hurt either). In fact, "lib"
1007 :     can still be used as a global anchor for separate purposes. As a
1008 :     matter of fact, one can locally define "lib" in terms of a global
1009 :     "lib":
1010 :    
1011 :     a.cm (bind:(anchor:lib value:$lib/a))
1012 :     b.cm (bind:(anchor:lib value:$lib/b))
1013 :    
1014 :     ** 3: The encoding of path names has changed. This affects the way
1015 :     path names are shown in CM's progress report and also the internal
1016 :     protocol encoding used for parallel make.
1017 :    
1018 :     The encoding now uses one or more ':'-separated segments. Each
1019 :     segments corresponds to a file that has been specified relative to the
1020 :     file given by its preceding segment. The first segment is either
1021 :     relative to the CWD, absolute, or anchored. Each segment itself is
1022 :     basically a Unix pathname; all segments but the first are relative.
1023 :    
1024 :     Example:
1025 :    
1026 :     $foo/bar/baz.cm:a/b/c.sml
1027 :    
1028 :     This path denotes the file bar/a/b/c.sml relative to the directory
1029 :     denoted by anchor "foo". Notice that the encoding also includes
1030 :     baz.cm which is the .cm-file that listed a/b/c.sml. As usual, such
1031 :     paths are resolved relative to the .cm-files directory, so baz.cm must
1032 :     be ignored to get the "real" pathname.
1033 :    
1034 :     To make this fact more obvious, CM puts the names of such "virtual
1035 :     arcs" into parentheses when they appear in progress reports. (No
1036 :     parentheses will appear in the internal protocol encoding.) Thus,
1037 :     what you really see is:
1038 :    
1039 :     $foo/bar/(baz.cm):a/b/c.sml
1040 :    
1041 :     I find this notation to be much more informative than before.
1042 :    
1043 :     Another new feature of the encoding is that special characters
1044 :     including parentheses, colons, (back)slashes, and white space are
1045 :     written as \ddd (where ddd is the decimal encoding of the character).
1046 :    
1047 : blume 670 *** The CM manual still needs to be updated.
1048 :    
1049 : blume 666 ----------------------------------------------------------------------
1050 : leunga 660 Name: Allen Leung
1051 :     Date: 2000/06/15 00:38:00
1052 :     Tag: leunga-20000615-x86-peephole
1053 :    
1054 :     x86 Peephole fix by Fermin. Affects c-- and moby only.
1055 :    
1056 :     ----------------------------------------------------------------------
1057 : blume 658 Name: Matthias Blume
1058 :     Date: 2000/06/12 11:40:00
1059 :     Tag: blume-20000612-parmakefix
1060 :     Description:
1061 :    
1062 :     More cleanup after changing the file naming scheme: This time I
1063 :     repaired the parallel make mechanism for CMB.make which I broke earlier.
1064 :    
1065 :     ----------------------------------------------------------------------
1066 : leunga 657 Name: Allen Leung
1067 :     Date: 2000/06/09 01:25:00
1068 :     Tag: leunga-20000609-various
1069 :    
1070 :     None of these things should affect normal SML/NJ operations
1071 :    
1072 :     1. Peephole improvements provided by Fermin (c--)
1073 :     2. New annotation DEFUSE for adding extra dependence (moby)
1074 :     3. New X86 LOCK instructions (moby)
1075 :     4. New machine description language for reservation tables (scheduling)
1076 :     5. Fixes to various optimization/analysis modules (branch chaining, dominator
1077 :     trees etc.)
1078 :     6. I've changed the CM files so that they can work with versions
1079 :     110.0.6, 110.25 and 110.28
1080 :    
1081 :     ----------------------------------------------------------------------
1082 : blume 652 Name: Matthias Blume
1083 : blume 656 Date: 2000/06/09 12:40:00
1084 :     Tag: blume-20000609-log
1085 :     Description:
1086 :    
1087 :     - Removed all(?) remaining RCS Log entries from sources.
1088 :    
1089 :     - Fixed bug in ml-yacc and ml-lex sources (use explicit anchors for
1090 :     anchored paths).
1091 :    
1092 :     ----------------------------------------------------------------------
1093 :     Name: Matthias Blume
1094 : blume 653 Date: 2000/06/07 17:00:00 JST
1095 :     Tag: blume-20000607-no-implicit-anchors
1096 :     Description:
1097 :    
1098 :     1. This update changes the default setting for
1099 :     CM.Control.implicit_anchors from true to false. This means that
1100 :     implicit anchors are no longer permitted by default. I also tried to
1101 :     make sure that nothing else still relies on implicit anchors.
1102 :     (This is the next step on the schedule towards a CM that does not even
1103 :     have the notion of implicit anchors anymore.)
1104 :    
1105 :     2. More CM manual updates.
1106 :    
1107 :     3. I managed to track down and fix the pickling bug I mentioned last
1108 :     time. Because of the previously existing workaround, this entails no
1109 :     immediate practical changes.
1110 :    
1111 :     ----------------------------------------------------------------------
1112 :     Name: Matthias Blume
1113 : blume 652 Date: 2000/06/06 11:15:00 JST
1114 :     Tag: blume-20000606-lazierpickle
1115 :     Description:
1116 :    
1117 :     !!!! NEW BOOT FILES !!!!
1118 :    
1119 :     * The main purpose of this update is to make library pickles lazier in
1120 :     order to reduce the initial space penalty for autoloading a library.
1121 :     As a result, it is now possible to have $smlnj/compiler.cm
1122 :     pre-registered. This should take care of the many complaints or
1123 :     inquiries about missing structure Compiler. This required changes to
1124 :     CM's internal data structures and small tweaks to some algorithms.
1125 :    
1126 :     As a neat additional effect, it is no longer necessary (for the sake
1127 :     of lean heap image files) to distinguish between a "minimal" CM and a
1128 :     "full" CM. Now, there is only one CM (i.e., the "full" version:
1129 :     $smlnj/cm.cm aka $smlnj/cm/full.cm), and it is always available at the
1130 :     interactive top level. ($smlnj/cm/minimal.cm is gone.)
1131 :    
1132 :     To make the life of compiler-hackers easier, "makeml" now also
1133 :     pre-registers $smlnj/cmb.cm (aka $smlnj/cmb/current.cm). In other
1134 :     words, after you bootstrap a new sml for the first time, you will not
1135 :     have to autoload $smlnj/cmb.cm again afterwards. (The first time
1136 :     around you will still have to do it, though.)
1137 :    
1138 :     * A second change consists of major updates to the CM manual. There
1139 :     are now several appendices with summary information and also a full
1140 :     specification of the CM description file syntax.
1141 :    
1142 :     * In directory src/system I added the script "allcross". This script
1143 :     invokes sml and cross-compiles the compiler for all supported
1144 :     architectures. (Useful when providing a new set of boot files.)
1145 :    
1146 :     * There seems to be a latent bug in my "lazy pickles" mechanism. I
1147 :     added a small tweak to pickle-util.sml to work around this problem,
1148 :     but it is not a proper fix yet. I will investigate further. (The
1149 :     effect of the bug was an inflation of library pickle size.)
1150 :    
1151 :     * Version number increased to 110.28.1 (to avoid compatibility problems).
1152 :    
1153 :     ----------------------------------------------------------------------
1154 : leunga 646 Name: Allen Leung
1155 : leunga 648 Date: 2000/05/25 17:28 EDT
1156 :     Tag: leunga-20000525-ra
1157 :     Description:
1158 :    
1159 :     Fixed a bug in freezing phase of the register allocator.
1160 :    
1161 :     ----------------------------------------------------------------------
1162 :     Name: Allen Leung
1163 : leunga 647 Date: 2000/05/15 22:53 EDT
1164 : leunga 646 Tag: leunga-20000515-alpha-x86-ra
1165 :     Description:
1166 :    
1167 :     1. Alpha
1168 :    
1169 :     Slight cleanup. Removed the instruction SGNXL
1170 :    
1171 :     2. X86
1172 :    
1173 :     Added the following instructions to the instruction set:
1174 :    
1175 :     ROLx, RORx,
1176 :     BTx, BTSx, BTLx, BTRx,
1177 :     XCHGx, and variants with the LOCK prefix
1178 :    
1179 :     3. Register Allocation
1180 :    
1181 :     The module ra-rewrite-with-renaming has been improved.
1182 :    
1183 : leunga 647 These have no effect on SML/NJ.
1184 :    
1185 : leunga 646 ----------------------------------------------------------------------
1186 : blume 642 Name: Matthias Blume
1187 : blume 645 Date: 2000/05/15 16:20:00 JST
1188 :     Tag: blume-20000515-lightrebuild
1189 :     Description:
1190 :    
1191 :     1. I added an alternative to "-rebuild" to "makeml". The difference is
1192 :     that prior to calling CMB.make' the CM-variable "LIGHT" will be
1193 :     defined. In effect, the command will not build any cross-compiler
1194 :     backends and therefore finish more quickly.
1195 :    
1196 :     The "fixpt" script also takes a "-light" switch to be able to use
1197 :     this new facility while compiling for a fixpoint.
1198 :    
1199 :     2. I replaced all mentions of anchored paths in group owner specifications
1200 :     with simple relative paths (usually starting with "..").
1201 :     The rationale is that a library's internal workings should not be
1202 :     compromised by the lack of some anchor. (An anchor is necessary
1203 :     for someone who wants to refer to the library by an anchored path,
1204 :     but it should not be necessary to build the same library in the first
1205 :     place.)
1206 :    
1207 :     3. I changed the way CM's tool mechanism determines the shell command
1208 :     string used for things like ml-yacc etc. so that it does not break
1209 :     when CM.Control.implicit_anchors is turned off.
1210 :    
1211 :     ----------------------------------------------------------------------
1212 :     Name: Matthias Blume
1213 : blume 644 Date: 2000/05/12 18:20:00 JST
1214 :     Tag: blume-20000512-ml-build
1215 :     Description:
1216 :    
1217 :     Fixed a bug in config/_ml-build that prevented ml-yacc and ml-lex from
1218 :     getting installed properly (by config/install.sh).
1219 :    
1220 :     ----------------------------------------------------------------------
1221 :     Name: Matthias Blume
1222 : blume 643 Date: 2000/05/12 17:30:00 JST
1223 :     Tag: blume-20000512-anchors
1224 :     Description:
1225 :    
1226 :     !!! NEW BOOT FILES !!!
1227 :    
1228 :     This change is in preparation of fading out support for "implicitly
1229 :     anchored path names". I went through all sources and used the
1230 :     explicit (and relatively new) $-notation. See system/README and the
1231 :     CM manual for more info on this.
1232 :    
1233 :     I also modified the anchoring scheme for some things such as "smlnj",
1234 :     "MLRISC", "cm", etc. to take advantage of the fact that explicit
1235 :     anchors are more expressive: anchor name and first arc do not have to
1236 :     coincide. This entails the following user-visible change:
1237 :    
1238 :     You have to write $smlnj/foo/bar instead of smlnj/foo/bar. In
1239 :     particular, when you fire up sml with a command-line argument, say,
1240 :     e.g.:
1241 :    
1242 :     sml '$smlnj/cmb.cm'
1243 :    
1244 :     At the ML toplevel prompt:
1245 :    
1246 :     CM.autoload "$smlnj/cmb.cm";
1247 :    
1248 :     There is also a new controller in CM.Control that can be used to turn
1249 :     off all remaining support for implicit anchors by saying:
1250 :    
1251 :     CM.autoload "$smlnj/
1252 :     #set CM.Control.implicit_anchors false;
1253 :    
1254 :     This causes CM to reject implicitly anchored paths. This is (for the
1255 :     time being) less permissive than the "final" version where there will
1256 :     be no more such implicit anchors and relative paths will be just that:
1257 :     relative.
1258 :    
1259 :     The next step (version after next version?) will be to make the
1260 :     default for CM.Control.implicit_anchors false. After the dust has
1261 :     settled, I can then produce the "final" version of this...
1262 :    
1263 :     Note: Since bootstrapping is a bit tricky, I provided new boot files.
1264 :    
1265 :     ----------------------------------------------------------------------
1266 :     Name: Matthias Blume
1267 : blume 642 Date: 2000/05/11 16:30:00 JST
1268 :     Tag: blume-20000511-sources
1269 :     Description:
1270 :    
1271 :     The main change is that I added function CM.sources as a generalized
1272 :     version of the earlier CM.makedepend. This entails the following
1273 :     additional changes:
1274 :    
1275 :     - CM.makedepend has been dropped.
1276 :    
1277 :     - CM manual has been updated.
1278 :    
1279 :     - TOOLS signature and API have been changed.
1280 :    
1281 :     ----------------------------------------------------------------------
1282 : leunga 640 Name: Allen Leung
1283 : leunga 641 Date: 2000/05/10 21:17 EDT
1284 :     Tag: leunga-20000510-moby-c--ssa
1285 :     Description:
1286 :    
1287 :     Various bug fixes and new features for C--, Moby and MLRISC optimizations.
1288 :     None of these affect SML/NJ.
1289 :    
1290 :     1. Register Allocation
1291 :    
1292 :     a. A new ra spilling module (ra/ra-spill-with-renaming) is implemented.
1293 :     This module tries to remove local (i.e. basic block level) redundancies
1294 :     during spilling.
1295 :    
1296 :     b. A new framework for performing region based register allocation.
1297 :     Not yet entirely functional.
1298 :    
1299 :     2. X86
1300 :    
1301 :     a. DefUse for POP was missing the stack pointer [found by Lal]
1302 :     b. Reload for CALL was incorrect in X86Spill [found by John]
1303 :     c. Various fixes in X86Spill so that it can be used correctly for
1304 :     the new spilling module.
1305 :    
1306 :     3. SSA/IR
1307 :    
1308 :     a. New module ir/dj-dataflow.sml implements elimination based
1309 :     data flow analysis.
1310 :    
1311 :     4. MLRiscGen
1312 :    
1313 :     a. Fix for gc type annotation
1314 :    
1315 :     5. MDGen
1316 :    
1317 :     Various fixes for machine description -> ml code translation. For ssa
1318 :     only.
1319 :    
1320 :     ----------------------------------------------------------------------
1321 :     Name: Allen Leung
1322 : leunga 640 Date: 2000/05/08 22:17 EDT
1323 :     Tag: leunga-20000508-labexp
1324 :     Description:
1325 :    
1326 :     Fermin has found a few assembly problems with constant expressions
1327 :     generated in LabelExp. Mostly, the problems involve extra parentheses,
1328 :     which choke on dumb assemblers. This is his fix.
1329 :    
1330 :     ----------------------------------------------------------------------
1331 : dbm 635 Name: Dave MacQueen
1332 :     Date: 2000/04/09 14:00 EDT
1333 :     Tag: dbm-20000502-Version_110_28
1334 :     Description:
1335 :    
1336 :     1. Updated src/compiler/TopLevel/main/version.sml to version 110.28
1337 :    
1338 :     2. Updated config/version to 110.28
1339 :    
1340 :     3. Updated config/srcarchiveurl
1341 :    
1342 :     3. New boot files!
1343 :     ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.28/
1344 :    
1345 :     ----------------------------------------------------------------------
1346 : blume 634 Name: Matthias Blume
1347 :     Date: 2000/05/01 19:05:00 JST
1348 :     Tag: blume-20000501-noweb
1349 :     Description:
1350 :    
1351 :     A new noweb tool has been added. The existing system is entirely
1352 :     unaffected by this, but some CM users have asked for renewed noweb
1353 :     support. Everything is documented in the CM manual.
1354 :    
1355 :     New (plugin) libraries:
1356 :    
1357 :     noweb-tool.cm
1358 :     nw-ext.cm
1359 :    
1360 :     ----------------------------------------------------------------------
1361 : dbm 633 Name: Dave MacQueen
1362 :     Date: 2000/04/30 12:40PM EDT
1363 :     Tag: dbm-20000430-bug_fixes
1364 :     Description:
1365 :    
1366 :     1. Fix for bug 1498
1367 :     smlnj/src/system/Basis/Implementation/Unsafe/object.sig
1368 :     smlnj/src/system/Basis/Implementation/Unsafe/object.sml
1369 :     added toRealArray function
1370 :     smlnj/src/compiler/MiscUtil/print/ppobj.sml
1371 :     added check for tag Obj.RealArray to array printing case in ppObj
1372 :    
1373 :     2. Fix for bug 1510
1374 :     smlnj/src/compiler/Semant/types/typesutil.sml
1375 :     fixed definition of dummyargs (used by equalTycon) so that
1376 :     dummy args are distinct types
1377 :    
1378 :     ----------------------------------------------------------------------
1379 : blume 629 Name: Matthias Blume
1380 : blume 632 Date: 2000/04/30 01:00:00 JST
1381 :     Tag: blume-20000430-versions
1382 :     Description:
1383 :    
1384 :     1. CM version numbering added. This is an implementation of Lal's
1385 :     proposal for adding version numbers and version checking to .cm
1386 :     files. Lal said that his proposal was just that -- a proposal.
1387 :     For the time being I went ahead and implemented it so that people
1388 :     can comment on it. Everything is completely backward-compatible
1389 :     (except for the stable library format, i.e., new bootfiles!).
1390 :    
1391 :     As usual, see the CM manual for details.
1392 :    
1393 :     2. An alternative syntax for anchored paths has been implemented.
1394 :     Dave has recently voiced the same concerns that I had when I did
1395 :     this, so there should be some support. My take is that eventually
1396 :     I will let support for the current syntax (where anchors are
1397 :     "implicit") fade out in favor of the new, explicit syntax.
1398 :     In order to be backward-compatible, both old and new syntax are
1399 :     currently supported.
1400 :    
1401 :     Again, see the CM manual for details.
1402 :    
1403 :     3. Parallel make is trying to be slightly smarter: When the master
1404 :     process finds a "bottleneck", i.e., when there is only one
1405 :     compilation unit that can be compiled and everybody else is
1406 :     waiting on it, then it will simply compile it directly instead
1407 :     of clumsily telling one of the slaves to do it.
1408 :    
1409 :     4. Support for "unsharing" added. This is necessary in order to be
1410 :     able to have two different versions of the same library running
1411 :     at the same time (e.g., for trying out a new MLRISC while still
1412 :     having the old MLRISC linked into the current compiler, etc.)
1413 :     See the CM manual.
1414 :    
1415 :     5. Simple "makedepend" functionality added for generating Makefile
1416 :     dependency information. (This is rather crude at the moment.
1417 :     Expect some changes here in the future.)
1418 :    
1419 :     6. ".fun" added as a recognized suffix for ML files. Also documented
1420 :     explicitly in the manual that the fallback behavior (unknown suffix
1421 :     -> ML file) is not an official feature!
1422 :    
1423 :     7. Small changes to the pickler for stable libraries.
1424 :    
1425 :     8. Several internal changes to CM (for cleanup/improvement).
1426 :    
1427 :    
1428 :     !!!! NEW BINFILES !!!!
1429 :    
1430 :     ----------------------------------------------------------------------
1431 :     Name: Matthias Blume
1432 : blume 631 Date: 2000/04/28 17:30:00 JST
1433 :     Tag: blume-20000428-pathconfig
1434 :     Description:
1435 :    
1436 :     1. I changed config/install.sh to remove duplicate entries from the
1437 :     lib/pathconfig file at the end. Moreover, the final version of
1438 :     lib/pathconfig is sorted alphabetically. The same (sorting) is done
1439 :     in src/system/installml.
1440 :    
1441 :     2. The config/install.sh script now consistently uses relative
1442 :     pathnames in lib/pathconfig whenever the anchor is in the lib
1443 :     directory. (So far this was true for the libraries that come
1444 :     pre-compiled and bundled as part of the bootfiles but not for
1445 :     libraries that are compiled by the script itself.)
1446 :    
1447 :     ----------------------------------------------------------------------
1448 :     Name: Matthias Blume
1449 : blume 629 Date: 2000/04/26 13:10:00 JST
1450 :     Tag: blume-20000426-fun_suffix
1451 :     Description:
1452 :    
1453 :     Added ".fun" as a recognized file name suffix (for ML code).
1454 :    
1455 :     ----------------------------------------------------------------------
1456 : leunga 628 Name: Allen Leung
1457 :     Date: 2000/04/25 17:00:00 EST
1458 :     Tag: leunga-20000425-alpha-ra
1459 :     Description:
1460 :    
1461 :     1. Alpha
1462 :    
1463 :     PSEUDOARITH was missing in AlphaRewrite. This causes an endless loop
1464 :     in C--.
1465 :    
1466 :     2. RA
1467 :    
1468 :     Added a flag "ra-dump-size" to print out the size of the flowgraph
1469 :     and the interference graph.
1470 :    
1471 :     ----------------------------------------------------------------------
1472 : dbm 627 Name: Dave MacQueen
1473 :     Date: 2000/04/25/
1474 :     Tag: dbm-20000425-mlyacc_doc_examples
1475 :     Description:
1476 :     Updated mlyacc.tex sections 5 and 7 for SML '97 and CM.
1477 :     Updated all three examples in src/ml-yacc/examples to run
1478 :     under 110.* using CM.make.
1479 :    
1480 :     ----------------------------------------------------------------------
1481 : leunga 624 Name: Allen Leung
1482 :     Date: 2000/04/20 23:04:00 EST
1483 :     Tag: leunga-20000420-ssa-c---stuff
1484 :     Description:
1485 :    
1486 :     This update synchronizes my repository with Yale's. Most of these
1487 :     changes, however, do not affect SML/NJ at all (the RA is an exception).
1488 :    
1489 :     1. Register Allocator
1490 :    
1491 :     a. An improvement in the interference graph construction:
1492 :     Given a copy
1493 :    
1494 :     s <- t
1495 :    
1496 : leunga 628 no interference edge between s and t is added for this definition of s.
1497 : leunga 624
1498 :     b. I've added two new spill heuristic modules that Fermin and I developed
1499 :     (in the new library RA.cm). These are unused in SML/NJ but maybe
1500 :     useful for others (Moby?)
1501 :    
1502 :     2. X86
1503 :    
1504 :     a. Various fixes in the backend provided by Fermin [C--] and Lal.
1505 :    
1506 :     3. Alpha
1507 :    
1508 :     a. Added the BSR instruction and code generation that goes with it [C--]
1509 :     b. Other fixes too numerous to recount provided by Fermin [C--]
1510 :    
1511 :     4. Regmaps
1512 :    
1513 :     a. The regmaps are not initialized with the identity physical bindings
1514 :     at creation time. This is unneeded.
1515 :    
1516 :     5. MLRISC Optimizations
1517 :    
1518 :     a. The DJ-Graph module can now compute the iterated dominance frontiers
1519 :     intersects with liveness incrementally in linear time! Woohoo!
1520 :     This is now used in my new SSA construction algorithm.
1521 :    
1522 :     b. THe branch reorganization module is now smarter about linear chains of
1523 :     basic blocks.
1524 :    
1525 :    
1526 :     ----------------------------------------------------------------------
1527 : blume 615 Name: Matthias Blume
1528 :     Date: 2000/04/12 13:52:00 JST
1529 :     Tag: blume_main_v110p27_1
1530 :     Description:
1531 :    
1532 :     Changed install.sh script to handle archive files without version number
1533 :     and to use "boot.<arch>-<os>" instead of "sml.boot.<arch>-<os>" for the
1534 :     name of the boot file archive.
1535 :    
1536 :     ----------------------------------------------------------------------
1537 : dbm 607 Name: Dave MacQueen
1538 :     Date: 2000/04/09 14:00 EDT
1539 :     Tag: dbm-20000410-Version_110_27
1540 :     Description:
1541 :    
1542 :     1. Updated src/compiler/TopLevel/main/version.sml to version 110.27
1543 :    
1544 :     2. Updated src/config/version to 110.27
1545 :    
1546 :     3. New boot files!
1547 :    
1548 :     ----------------------------------------------------------------------
1549 : leunga 606 Name: Allen Leung
1550 :     Date: 2000/04/09 19:09:00 EST
1551 :     Tag: leunga-20000409-misc
1552 :     Description:
1553 :    
1554 :     1. Yet another fix for x86 assembly for idivl, imull, mull and friends.
1555 :    
1556 :     2. Miscellaneous improvements to MLRISC (unused in sml/nj)
1557 :    
1558 :     ----------------------------------------------------------------------
1559 : monnier 605 Name: Stefan
1560 :     Date: 2000/04/07 10:00:00 EDT
1561 :     Tag: monnier-20000406-branch-handling
1562 :     Description:
1563 :    
1564 :     Improved handling of branches (mostly those generated from
1565 :     polymorphic equality), removed switchoff and changed the
1566 :     default optimization settings (more cpsopt and less flintopt).
1567 :    
1568 :     ----------------------------------------------------------------------
1569 : leunga 601 Name: Allen Leung
1570 : leunga 602 Date: 2000/04/06 01:30:00 EST
1571 :     Tag: leunga-20000406-peephole-x86-SSA-2
1572 :     Description:
1573 :    
1574 :     Forgot a few files.
1575 :    
1576 :     ----------------------------------------------------------------------
1577 :     Name: Allen Leung
1578 : leunga 601 Date: 2000/04/06 00:36:00 EST
1579 :     Tag: leunga-20000406-peephole-x86-SSA
1580 :     Description:
1581 :    
1582 :     1. New Peephole code
1583 :    
1584 :     2. Minor improvement to X86 instruction selection
1585 :    
1586 :     3. Various fixes to SSA and machine description -> code translator
1587 :    
1588 :     ----------------------------------------------------------------------
1589 : blume 595 Name: Matthias Blume
1590 :     Date: 2000/04/05 12:30:00 JST
1591 :     Tag: blume_main_v110p26p2_3
1592 :     Description:
1593 :    
1594 :     This update just merges three minor cosmetic updates to CM's sources
1595 :     to get ready for the 110.27 code freeze on Friday. No functionality
1596 :     has changed.
1597 :    
1598 :     ----------------------------------------------------------------------
1599 : leunga 593 Name: Allen Leung
1600 : leunga 594 Date: 2000/04/04 19:39:00 EST
1601 :     Tag: leunga-20000404-x86-asm
1602 :     Description:
1603 :    
1604 :     1. Fixed a problem in X86 assembly.
1605 :    
1606 :     Things like
1607 :    
1608 :     jmp %eax
1609 :     jmp (%eax)
1610 :    
1611 :     should be output as
1612 :    
1613 :     jmp *%eax
1614 :     jmp *(%eax)
1615 :    
1616 :     2. Assembly output
1617 :    
1618 :     Added a new flag
1619 :    
1620 :     "asm-indent-copies" (default to false)
1621 :    
1622 :     When this flag is on, parallel copies will be indented an extra level.
1623 :    
1624 :     ----------------------------------------------------------------------
1625 :     Name: Allen Leung
1626 : leunga 593 Date: 2000/04/04 03:18:00 EST
1627 :     Tag: leunga-20000404-C--Moby
1628 :     Description:
1629 :    
1630 :     All of these fixes are related to C--, Moby, and my own optimization
1631 :     stuff; so they shouldn't affect SML/NJ.
1632 :    
1633 :     1. X86
1634 :    
1635 :     Various fixes related floating point, and extensions.
1636 :    
1637 :     2. Alpha
1638 :    
1639 :     Some extra patterns related to loads with signed/zero extension
1640 :     provided by Fermin.
1641 :    
1642 :     3. Assembly
1643 :    
1644 : monnier 659 When generating assembly, resolve the value of client defined constants,
1645 : leunga 593 instead of generating symbolic values. This is controlled by the
1646 :     new flag "asm-resolve-constants", which is default to true.
1647 :    
1648 :     4. Machine Descriptions
1649 :    
1650 :     a. The precedence parser was slightly broken when parsing infixr symbols.
1651 :     b. The type generalizing code had the bound variables reversed, resulting
1652 :     in a problem during arity raising.
1653 :     c. Various fixes in machine descriptions.
1654 :    
1655 :     ----------------------------------------------------------------------
1656 : blume 592 Name: Matthias Blume
1657 :     Date: 2000/04/03 16:05:00 JST
1658 :     Tag: blume_main_v110p26p2_2
1659 :     Description:
1660 :    
1661 :     I eliminated coreEnv from compInfo. Access to the "Core" structure is
1662 :     now done via the ordinary static environment that is context to each
1663 :     compilation unit.
1664 :    
1665 :     To this end, I arranged that instead of "structure Core" as "structure
1666 :     _Core" is bound in the pervasive environment. Core access is done via
1667 : monnier 659 _Core (which can never be accidentally rebound because _Core is not a
1668 : blume 592 legal surface-syntax symbol).
1669 :    
1670 :     The current solution is much cleaner because the core environment is
1671 :     now simply part of the pervasive environment which is part of every
1672 :     compilation unit's context anyway. In particular, this eliminates all
1673 :     special-case handling that was necessary until now in order to deal
1674 :     with dynamic and symbolic parts of the core environment.
1675 :    
1676 :     Remaining hackery (to bind the "magic" symbol _Core) is localized in the
1677 : monnier 659 compilation manager's bootstrap compiler (actually: in the "init group"
1678 : blume 592 handling). See the comments in src/system/smlnj/init/init.cmi for
1679 :     more details.
1680 :    
1681 :     I also tried to track down all mentions of "Core" (as string argument
1682 :     to Symbol.strSymbol) in the compiler and replaced them with a
1683 :     reference to the new CoreSym.coreSym. Seems cleaner since the actual
1684 :     name appears in one place only.
1685 :    
1686 :     Binfile and bootfile format have not changed, but the switchover from
1687 :     the old "init.cmi" to the new one is a bit tricky, so I supplied new
1688 :     bootfiles anyway.
1689 :    
1690 :     ----------------------------------------------------------------------
1691 : leunga 591 Name: Allen Leung
1692 :     Date: 2000/04/02 21:17:00 EST
1693 :     Tag: leunga-20000402-mltree
1694 :     Description:
1695 : leunga 585
1696 : leunga 591 1. Renamed the constructor CALL in MLTREE by popular demand.
1697 :     2. Added a bunch of files from my repository. These are currently
1698 :     used by other non-SMLNJ backends.
1699 :    
1700 : leunga 576 ----------------------------------------------------------------------
1701 : leunga 590 Name: Allen Leung
1702 :     Date: 2000/03/31 21:15:00 EST
1703 :     Tag: leunga-20000331-aliasing
1704 :     Description:
1705 :    
1706 :     This update contains a rewritten (and hopefully more correct) module
1707 :     for extracting aliasing information from CPS.
1708 :    
1709 :     To turn on this feature:
1710 :    
1711 :     Compiler.Control.CG.memDisambiguate := true
1712 :    
1713 :     To pretty print the region information with assembly
1714 :    
1715 :     Compiler.Control.MLRISC.getFlag "asm-show-region" := true;
1716 :    
1717 :     To control how many levels of aliasing information are printed, use:
1718 :    
1719 :     Compiler.Control.MLRISC.getInt "points-to-show-level" := n
1720 :    
1721 :     The default of n is 3.
1722 :    
1723 :     ----------------------------------------------------------------------
1724 : dbm 589 Name: David MacQueen
1725 :     Date: 2000/03/31 11:15:00 EST
1726 :     Tag: dbm-20000331-runtime_fix
1727 :     Description:
1728 :    
1729 :     This update contains:
1730 :    
1731 :     1. runtime/c-lib/c-libraries.c
1732 :     includes added in revision 1.2 caused compilation errors on hppa-hpux
1733 :    
1734 :     2. fix for bug 1556
1735 :     system/Basis/Implementation/NJ/internal-signals.sml
1736 :    
1737 :     ----------------------------------------------------------------------
1738 : blume 587 Name: Matthias Blume
1739 : blume 588 Date: 2000/03/31 18:00:00 JST
1740 :     Tag: blume_main_v110p26p2_1
1741 :     Description:
1742 :    
1743 :     This update contains:
1744 :    
1745 :     1. A small change to CM's handling of stable libraries:
1746 :     CM now maintains one "global" modmap that is used for all stable
1747 :     libraries. The use of such a global modmap maximizes sharing and
1748 :     minimizes the need for re-traversing parts of environments during
1749 :     modmap construction. (However, this has minor impact since modmap
1750 :     construction seems to account for just one percent or less of total
1751 :     compile time.)
1752 :    
1753 :     2. I added a "genmap" phase to the statistics. This is where I got the
1754 :     "one percent" number (see above).
1755 :    
1756 :     3. CM's new tool parameter mechanism just became _even_ better. :)
1757 :     - The parser understands named parameters and recursive options.
1758 :     - The "make" and "shell" tools use these new features.
1759 :     (This makes it a lot easier to cascade these tools.)
1760 :     - There is a small syntax change: named parameters use a
1761 :    
1762 :     <name> : ( <option> ... ) or
1763 :     <name> : <string>
1764 :    
1765 :     syntax. Previously, named parameters were implemented in an
1766 :     ad-hoc fashion by each tool individually (by parsing strings)
1767 :     and had the form
1768 :    
1769 :     <name>=<string>
1770 :    
1771 :     See the CM manual for a full description of these issues.
1772 :    
1773 :     ----------------------------------------------------------------------
1774 :     Name: Matthias Blume
1775 : blume 587 Date: 2000/03/30 18:00:00 JST
1776 :     Tag: blume_main_v110p26p2_0
1777 :     Description:
1778 :    
1779 :     !!!!! WARNING !!!!!!
1780 :     !! New binfiles !!
1781 :     !!!!!!!!!!!!!!!!!!!!
1782 :    
1783 :     This update contains:
1784 :    
1785 :     1. Moderate changes to CM:
1786 :    
1787 :     - Changes to CM's tools mechanism. In particular, it is now possible
1788 :     to have tools that accept additional "command line" parameters
1789 :     (specified in the .cm file at each instance where the tool's class is
1790 :     used).
1791 :    
1792 : monnier 659 This was done to accommodate the new "make" and "shell" tools which
1793 :     facilitate fairly seamless hookup to portions of code managed using
1794 : blume 587 Makefiles or Shell scripts.
1795 :    
1796 :     There are no classes "shared" or "private" anymore. Instead, the
1797 :     sharing annotation is now a parameter to the "sml" class.
1798 :    
1799 :     There is a bit of generic machinery for implementing one's own
1800 :     tools that accept command-line parameters. However, I am not yet fully
1801 :     satisfied with that part, so expect changes here in the future.
1802 :    
1803 :     All existing tools are described in the CM manual.
1804 :    
1805 : monnier 659 - Slightly better error handling. (CM now suppresses many followup
1806 : blume 587 error messages that tended to be more annoying than helpful.)
1807 :    
1808 :     2. Major changes to the compiler's static environment data structures.
1809 :    
1810 :     - no CMStaticEnv anymore.
1811 :     - no CMEnv, no "BareEnvironment" (actually, _only_ BareEnvironment,
1812 :     but it is called Environment), no conversions between different
1813 :     kinds of static environments
1814 :    
1815 :     - There is still a notion of a "modmap", but such modmaps are generated
1816 :     on demand at the time when they are needed. This sounds slow, but I
1817 :     sped up the code that generates modmaps enough for this not to lead to
1818 :     a slowdown of the compiler (at least I didn't detect any).
1819 :    
1820 :     - To facilitate rapid modmap generation, static environments now
1821 :     contain an (optional) "modtree" structure. Modtree annotations are
1822 :     constructed by the unpickler during unpickling. (This means that
1823 :     the elaborator does not have to worry about modtrees at all.)
1824 :     Modtrees have the advantage that they are compositional in the same
1825 :     way as the environment data structure itself is compositional.
1826 :     As a result, modtrees never hang on to parts of an environment that
1827 :     has already been rendered "stale" by filtering or rebinding.
1828 :    
1829 :     - I went through many, many trials and errors before arriving at the
1830 :     current solution. (The initial idea of "linkpaths" did not work.)
1831 :     But the result of all this is that I have touched a lot of files that
1832 :     depend on the "modules" and "types" data structures (most of the
1833 :     elaborator). There were a lot of changes during my "linkpath" trials
1834 :     that could have been reverted to their original state but weren't.
1835 :     Please, don't be too harsh on me for messing with this code a bit more
1836 :     than what was strictly necessary... (I _did_ resist the tempation
1837 :     of doing any "global reformatting" to avoid an untimely death at
1838 :     Dave's hands. :)
1839 :    
1840 :     - One positive aspect of the previous point: At least I made sure that
1841 :     all files that I touched now compile without warnings (other than
1842 :     "polyEqual").
1843 :    
1844 :     - compiler now tends to run "leaner" (i.e., ties up less memory in
1845 :     redundant modmaps)
1846 :    
1847 :     ----------------------------------------------------------------------
1848 : leunga 580 Name: Allen Leung
1849 : leunga 585 Date: 2000/03/29 18:00:00
1850 :     Tag: leunga-20000327-mlriscGen_hppa_alpha_x86
1851 : leunga 586 Boot files (optional): ftp://react-ilp.cs.nyu.edu/leunga/110.26.1-sml.boot.x86-unix-20000330.tar.gz
1852 : leunga 585 Description:
1853 :    
1854 :     This update contains *MAJOR* changes to the way code is generated from CPS
1855 :     in the module mlriscGen, and in various backend modules.
1856 :    
1857 :     CHANGES
1858 :     =======
1859 :    
1860 :     1. MLRiscGen: forward propagation fix.
1861 :    
1862 :     There was a bug in forward propagation introduced at about the same time
1863 :     as the MLRISC x86 backend, which prohibits coalescing to be
1864 :     performed effectively in loops.
1865 :    
1866 :     Effect: speed up of loops in RISC architectures.
1867 :     By itself, this actually slowed down certain benchmarks on the x86.
1868 :    
1869 :     2. MLRiscGen: forward propagating addresses from consing.
1870 :    
1871 :     I've changed the way consing code is generated. Basically I separated
1872 :     out the initialization part:
1873 :    
1874 :     store tag, offset(allocptr)
1875 :     store elem1, offset+4(allocptr)
1876 :     store elem2, offset+8(allocptr)
1877 :     ...
1878 :     store elemn, offset+4n(allocptr)
1879 :    
1880 :     and the address computation part:
1881 :    
1882 :     celladdr <- offset+4+alloctpr
1883 :    
1884 :     and move the address computation part
1885 :    
1886 :     Effect: register pressure is generally lower as a result. This
1887 :     makes compilation of certain expressions much faster, such as
1888 :     long lists with non-trivial elements.
1889 :    
1890 :     [(0,0), (0,0), .... (0,0)]
1891 :    
1892 :     3. MLRiscGen: base pointer elimination.
1893 :    
1894 :     As part of the linkage mechanism, we generate the sequence:
1895 :    
1896 :     L: ... <- start of the code fragment
1897 :    
1898 :     L1:
1899 :     base pointer <- linkreg - L1 + L
1900 :    
1901 :     The base pointer was then used for computing relocatable addresses
1902 :     in the code fragment. Frequently (such as in lots of continuations)
1903 :     this is not needed. We now eliminate this sequence whenever possible.
1904 :    
1905 :     For compile time efficiency, I'm using a very stupid local heuristic.
1906 :     But in general, this should be done as a control flow analysis.
1907 :    
1908 :     Effect: Smaller code size. Speed up of most programs.
1909 :    
1910 :     4. Hppa back end
1911 :    
1912 :     Long jumps in span dependence resolution used to depend on the existence
1913 :     of the base pointer.
1914 :    
1915 :     A jump to a long label L was expanded into the following sequence:
1916 :    
1917 :     LDIL %hi(L-8192), %r29
1918 :     LDO %lo(L-8192)(%r29), %r29
1919 :     ADD %r29, baseptr, %r29
1920 :     BV,n %r0(%r29)
1921 :    
1922 :     In the presence of change (3) above, this will not work. I've changed
1923 :     it so that the following sequence of instructions are generated, which
1924 :     doesn't mention the base pointer at all:
1925 :    
1926 :     BL,n L', %r29 /* branch and link, L' + 4 -> %r29 */
1927 :     L': ADDIL L-(L'+4), %r29 /* Compute address of L */
1928 :     BV,n %r0(%r29) /* Jump */
1929 :    
1930 :     5. Alpha back end
1931 :    
1932 :     New alpha instructions LDB/LDW have been added, as per Fermin's
1933 :     suggestions. This is unrelated to all other changes.
1934 :    
1935 :     6. X86 back end
1936 :    
1937 :     I've changed andl to testl in the floating point test sequence
1938 :     whenever appropriate. The Intel optimization guide states that
1939 : monnier 659 testl is preferable to andl.
1940 : leunga 585
1941 :     7. RA (x86 only)
1942 :    
1943 :     I've improved the spill propagation algorithm, using an approximation
1944 :     of maximal weighted independent sets. This seems to be necessary to
1945 :     alleviate the negative effect in light of the slow down in (1).
1946 :    
1947 :     I'll write down the algorithm one of these days.
1948 :    
1949 :     8. MLRiscGen: frequencies
1950 :    
1951 :     I've added an annotation that states that all call gc blocks have zero
1952 :     execution frequencies. This improves register allocation on the x86.
1953 :    
1954 :     BENCHMARKS
1955 :     ==========
1956 :    
1957 :     I've only perform the comparison on 110.25.
1958 :    
1959 :     The platforms are:
1960 :    
1961 :     HPPA A four processor HP machine (E9000) with 5G of memory.
1962 :     X86 A 300Hhz Pentium II with 128M of memory, and
1963 :     SPARC An Ultra sparc 2 with 512M of memory.
1964 :    
1965 :     I used the following parameters for the SML benchmarks:
1966 :    
1967 :     @SMLalloc
1968 :     HPPA 256k
1969 :     SPARC 512k
1970 :     X86 256k
1971 :    
1972 :     COMPILATION TIME
1973 :     ----------------
1974 :     Here are the numbers comparing the compilation times of the compilers.
1975 :     I've only compared 110.25 compiling the new sources versus
1976 :     a fixpoint version of the new compiler compiling the same.
1977 :    
1978 :     110.25 New
1979 :     Total Time in RA Spill+Reload Total Time In RA Spill+Reload
1980 :     HPPA 627s 116s 2684+3584 599s 95s 1003+1879
1981 :     SPARC 892s 173s 2891+3870 708s 116s 1004+1880
1982 :     X86 999s 315s 94006+130691 987s 296s 108877+141957
1983 :    
1984 :     110.25 New
1985 :     Code Size Code Size
1986 :     HPPA 8596736 8561421
1987 :     SPARC 8974299 8785143
1988 :     X86 9029180 8716783
1989 :    
1990 :     So in summary, things are at least as good as before. Dramatic
1991 :     reduction in compilation is obtained on the Sparc; I can't explain it,
1992 :     but it is reproducible. Perhaps someone should try to reproduce this
1993 :     on their own machines.
1994 :    
1995 :     SML BENCHMARKS
1996 :     --------------
1997 :    
1998 :     On the average, all benchmarks perform at least as well as before.
1999 :    
2000 :     HPPA Compilation Time Spill+Reload Run Time
2001 :     110.25 New 110.25 New 110.25 New
2002 :    
2003 :     barnesHut 3.158 3.015 4.75% 1+1 0+0 2.980 2.922 2.00%
2004 :     boyer 6.152 5.708 7.77% 0+0 0+0 0.218 0.213 2.34%
2005 :     count-graphs 1.168 1.120 4.32% 0+0 0+0 22.705 23.073 -1.60%
2006 :     fft 0.877 0.792 10.74% 1+3 1+3 0.602 0.587 2.56%
2007 :     knuthBendix 3.180 2.857 11.32% 0+0 0+0 0.675 0.662 2.02%
2008 :     lexgen 6.190 5.290 17.01% 0+0 0+0 0.913 0.788 15.86%
2009 :     life 0.803 0.703 14.22% 25+25 0+0 0.153 0.140 9.52%
2010 :     logic 2.048 2.007 2.08% 6+6 1+1 4.133 4.008 3.12%
2011 :     mandelbrot 0.077 0.080 -4.17% 0+0 0+0 0.765 0.712 7.49%
2012 :     mlyacc 22.932 20.937 9.53% 154+181 32+57 0.468 0.430 8.91%
2013 :     nucleic 5.183 5.060 2.44% 2+2 0+0 0.125 0.120 4.17%
2014 :     ratio-regions 3.357 3.142 6.84% 0+0 0+0 116.225 113.173 2.70%
2015 :     ray 1.283 1.290 -0.52% 0+0 0+0 2.887 2.855 1.11%
2016 :     simple 6.307 6.032 4.56% 28+30 5+7 3.705 3.658 1.28%
2017 :     tsp 0.888 0.862 3.09% 0+0 0+0 7.040 6.893 2.13%
2018 :     vliw 24.378 23.455 3.94% 106+127 25+45 2.758 2.707 1.91%
2019 :     --------------------------------------------------------------------------
2020 :     Average 6.12% 4.09%
2021 :    
2022 :     SPARC Compilation Time Spill+Reload Run Time
2023 :     110.25 New 110.25 New 110.25 New
2024 :    
2025 :     barnesHut 3.778 3.592 5.20% 2+2 0+0 3.648 3.453 5.65%
2026 :     boyer 6.632 6.110 8.54% 0+0 0+0 0.258 0.242 6.90%
2027 :     count-graphs 1.435 1.325 8.30% 0+0 0+0 33.672 34.737 -3.07%
2028 :     fft 0.980 0.940 4.26% 3+9 2+6 0.838 0.827 1.41%
2029 :     knuthBendix 3.590 3.138 14.39% 0+0 0+0 0.962 0.967 -0.52%
2030 :     lexgen 6.593 6.072 8.59% 1+1 0+0 1.077 1.078 -0.15%
2031 :     life 0.972 0.868 11.90% 26+26 0+0 0.143 0.140 2.38%
2032 :     logic 2.525 2.387 5.80% 7+7 1+1 5.625 5.158 9.05%
2033 :     mandelbrot 0.090 0.093 -3.57% 0+0 0+0 0.855 0.728 17.39%
2034 :     mlyacc 26.732 23.827 12.19% 162+189 32+57 0.550 0.560 -1.79%
2035 :     nucleic 6.233 6.197 0.59% 3+3 0+0 0.163 0.173 -5.77%
2036 :     ratio-regions 3.780 3.507 7.79% 0+0 0+0 133.993 131.035 2.26%
2037 :     ray 1.595 1.550 2.90% 1+1 0+0 3.440 3.418 0.63%
2038 :     simple 6.972 6.487 7.48% 29+32 5+7 3.523 3.525 -0.05%
2039 :     tsp 1.115 1.063 4.86% 0+0 0+0 7.393 7.265 1.77%
2040 :     vliw 27.765 24.818 11.87% 110+135 25+45 2.265 2.135 6.09%
2041 :     ----------------------------------------------------------------------------
2042 :     Average 6.94% 2.64%
2043 :    
2044 :     X86 Compilation Time Spill+Reload Run Time
2045 :     110.25 New 110.25 New 110.25 New
2046 :    
2047 :     barnesHut 5.530 5.420 2.03% 593+893 597+915 3.532 3.440 2.66%
2048 :     boyer 8.768 7.747 13.19% 493+199 301+289 0.327 0.297 10.11%
2049 :     count-graphs 2.040 2.010 1.49% 298+394 315+457 26.578 28.660 -7.26%
2050 :     fft 1.327 1.302 1.92% 112+209 115+210 1.055 0.962 9.71%
2051 :     knuthBendix 5.218 5.475 -4.69% 451+598 510+650 0.928 0.932 -0.36%
2052 :     lexgen 9.970 9.623 3.60% 1014+841 1157+885 0.947 0.928 1.97%
2053 :     life 1.183 1.183 0.00% 162+182 145+148 0.127 0.103 22.58%
2054 :     logic 3.285 3.512 -6.45% 514+684 591+836 5.682 5.577 1.88%
2055 :     mandelbrot 0.147 0.143 2.33% 38+41 33+54 0.703 0.690 1.93%
2056 :     mlyacc 35.457 32.763 8.22% 3496+4564 3611+4860 0.552 0.550 0.30%
2057 :     nucleic 7.100 6.888 3.07% 239+168 201+158 0.175 0.173 0.96%
2058 :     ratio-regions 6.388 6.843 -6.65% 1182+257 981+300 120.142 120.345 -0.17%
2059 :     ray 2.332 2.338 -0.29% 346+398 402+494 3.593 3.540 1.51%
2060 :     simple 9.912 9.903 0.08% 1475+941 1579+1168 3.057 3.178 -3.83%
2061 :     tsp 1.623 1.532 5.98% 266+200 250+211 8.045 7.878 2.12%
2062 :     vliw 33.947 35.470 -4.29% 2629+2774 2877+3171 2.072 1.890 9.61%
2063 :     ----------------------------------------------------------------------------
2064 :     Average 1.22% 3.36%
2065 :    
2066 :     ----------------------------------------------------------------------
2067 :     Name: Allen Leung
2068 : leunga 583 Date: 2000/03/23 16:25:00
2069 :     Tag: leunga-20000323-fix_x86_alpha
2070 :     Description:
2071 :    
2072 :     1. X86 fixes/changes
2073 :    
2074 :     a. The old code generated for SETcc was completely wrong.
2075 :     The Intel optimization guide is VERY misleading.
2076 :    
2077 :     2. ALPHA fixes/changes
2078 :    
2079 :     a. Added the instructions LDBU, LDWU, STB, STW as per Fermin's suggestion.
2080 :     b. Added a new mode byteWordLoadStores to the functor parameter to Alpha()
2081 :     c. Added reassociation code for address computation.
2082 :    
2083 :     ----------------------------------------------------------------------
2084 :     Name: Allen Leung
2085 : leunga 580 Date: 2000/03/22 01:23:00
2086 :     Tag: leunga-20000322-fix_x86_hppa_ra
2087 :     Description:
2088 :    
2089 :     1. X86 fixes/changes
2090 :    
2091 :     a. x86Rewrite bug with MUL3 (found by Lal)
2092 :     b. Added the instructions FSTS, FSTL
2093 :    
2094 :     2. PA-RISC fixes/changes
2095 :    
2096 :     a. B label should not be a delay slot candidate! Why did this work?
2097 :     b. ADDT(32, REG(32, r), LI n) now generates one instruction instead of two,
2098 :     as it should be.
2099 :     c. The assembly syntax for fstds and fstdd was wrong.
2100 :     d. Added the composite instruction COMICLR/LDO, which is the immediate
2101 :     operand variant of COMCLR/LDO.
2102 :    
2103 :     3. Generic MLRISC
2104 :    
2105 :     a. shuffle.sml rewritten to be slightly more efficient
2106 :     b. DIV bug in mltree-simplify fixed (found by Fermin)
2107 :    
2108 :     4. Register Allocator
2109 :    
2110 :     a. I now release the interference graph earlier during spilling.
2111 :     May improve memory usage.
2112 :    
2113 :     ----------------------------------------------------------------------
2114 : blume 577 Name: Matthias Blume
2115 : blume 578 Date: 2000/03/14 14:15:32
2116 :     Tag: blume_main_v110p26p1_2
2117 :     Description:
2118 :    
2119 :     1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an
2120 :     additional argument called "template" which is an optional string that
2121 : monnier 659 specifies the layout of the tool command line. See the CM manual for
2122 : blume 578 explanation.
2123 :    
2124 : monnier 659 2. A special-purpose tool can be "registered" by simply dropping the
2125 : blume 578 corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same
2126 :     directory where the .cm file lives that uses this tool. (The
2127 :     behavior/misfeature until now was to look for the tool description
2128 :     files in the current working directory.) As before, tool description
2129 :     files could also be anchored -- in which case they can live anywhere
2130 :     they like. Following the recent e-mail discussion, this change should
2131 :     make it easier to have special-purpose tools that are shipped together
2132 :     with the sources of the program that uses them.
2133 :    
2134 :     ----------------------------------------------------------------------
2135 :     Name: Matthias Blume
2136 : blume 577 Date: 2000/03/10 07:48:34
2137 :     Tag: blume_main_v110p26p1_1
2138 :     Description:
2139 :    
2140 :     I added a re-written version of Dave's fixpt script to src/system.
2141 :     Changes relative to the original version:
2142 :     - sh-ified (not everybody has ksh)
2143 :     - automatically figures out which architecture it runs on
2144 :     - uses ./makeml a bit more cleverly
2145 :     - never invokes ./installml (and, thus, does not clobber your
2146 :     good and working installation of sml in case something goes wrong)
2147 :     - accepts max iteration count using option "-iter <n>"
2148 :     - accepts a "base" name using option "-base <base>"
2149 :    
2150 :     It does not build any extraneous heap images but directly rebuilds
2151 :     bin- and boot-hierarchies using makeml's "-rebuild" switch. Finally,
2152 :     it can incorporate existing bin- and boot- hierarchies. For example,
2153 :     suppose the base is set to "sml" (which is the default). Then it
2154 :     successively builds
2155 :    
2156 :     sml.bin.<arch>-unix and sml.boot.<arch>-unix
2157 :     then sml1.bin.<arch>-unix and sml1.boot.<arch>-unix
2158 :     then sml2.bin.<arch>-unix and sml2.boot.<arch>-unix
2159 :     ...
2160 :     then sml<n>.bin.<arch>-unix and sml<n>.boot.<arch>-unix
2161 :    
2162 :     and so on. If any of these already exist, it will just use what's
2163 :     there. In particular, many people will have the initial set of bin
2164 :     and boot files around, so this saves time for at least one full
2165 :     rebuild. Having sets of the form <base><k>.{bin,boot}.<arch>-unix for
2166 :     <k>=1,2,... is normally not a good idea when invoking fixpt. However,
2167 :     they might be the result of an earlier partial run of fixpt (which
2168 : monnier 659 perhaps got accidentally killed). In this case, fixpt will quickly
2169 : blume 577 move through what exists before continuing where it left off earlier,
2170 :     and, thus, saves a lot of time.
2171 :    
2172 :     ----------------------------------------------------------------------
2173 : leunga 576 Name: Allen Leung
2174 :     Date: 00/03/10 02:20:00
2175 :     Tag: leunga-20000310-fix_x86_asm_ra
2176 :     Description:
2177 : dbm 570
2178 : leunga 576 More assembly output problems involving the indexed addressing mode
2179 :     on the x86 have been found and corrected. Thanks to Fermin Reig for the
2180 :     fix.
2181 :    
2182 :     The interface and implementation of the register allocator have been changed
2183 :     slightly to accommodate the possibility to skip the register allocation
2184 :     phases completely and go directly to memory allocation. This is needed
2185 :     for C-- use.
2186 :    
2187 : dbm 570 ----------------------------------------------------------------------
2188 : blume 572 Name: Matthias Blume
2189 : blume 575 Date: 00/03/09 10:23:53
2190 :     Tag: blume_main_v110p26p1_0
2191 :     Description:
2192 :    
2193 :     * Complete re-organization of library names. Many libraries have been
2194 :     consolidated so that they share the same path anchor. For example,
2195 :     all MLRISC-related libraries are anchored at MLRISC, most libraries that
2196 :     are SML/NJ-specific are under "smlnj". Notice that names like
2197 :     host-cmb.cm or host-compiler.cm no longer exist. See system/README
2198 :     for a complete description of the new naming scheme. Quick reference:
2199 :    
2200 :     host-cmb.cm -> smlnj/cmb.cm
2201 :     host-compiler.cm -> smlnj/compiler.cm
2202 :     full-cm.cm -> smlnj/cm.cm
2203 :     <arch>-<os>.cm -> smlnj/cmb/<arch>-<os>.cm
2204 :     <arch>-compiler.cm -> smlnj/compiler/<arch>.cm
2205 :    
2206 :     * Bug fixes in CM.
2207 :     - exceptions in user code are being passed through (i.e., reach top level)
2208 :     - more bugs in paranoia mode fixed
2209 :     - bug related to checking group owners fixed
2210 :    
2211 :     * New install.sh script that automagically fetches archive files:
2212 :     The new file config/srcarchiveurl must contain the URL of the
2213 :     (remote) directory that contains bin files (or other source archives).
2214 :     If install.sh does not find the archive locally, it tries to get
2215 :     it from that remote directory.
2216 :     This should simplify installation further: For machines that have
2217 :     access to the internet, just fetch <version>-config.tgz, unpack it,
2218 : monnier 659 edit config/targets, and go (run config/install.sh). The script will
2219 : blume 575 fetch everything else that it might need all by itself.
2220 :    
2221 :     For CVS users, this mechanism is not relevant for source archives, but
2222 :     it is convenient for getting new sets of binfiles.
2223 :    
2224 :     Archives should be tar files compressed with either gzip, compress, or
2225 :     bzip2. The script recognizes .tgz, .tar, tar.gz, tz, .tar.Z, and .tar.bz2.
2226 :    
2227 :     ----------------------------------------------------------------------
2228 :     Name: Matthias Blume
2229 : blume 572 Date: 2000/03/07 04:01:04
2230 :     Tag: blume_main_v110_26_2
2231 : dbm 570 Description:
2232 : blume 572 - size info in BOOTLIST
2233 :     * no fixed upper limits for number of bootfiles or length of
2234 :     bootfile names in runtime
2235 :     * falling back to old behavior if no BOOTLIST size info found
2236 :     - allocation size heuristics in .run-sml
2237 :     * tries to read cache size from /proc/cpuinfo (this is important for
2238 :     small-cache Celeron systems!)
2239 :     - install.sh robustified
2240 :     - CM manual updates
2241 :     - paranoid mode
2242 :     * no more CMB.deliver() (i.e., all done by CMB.make())
2243 :     * can re-use existing sml.boot.* files
2244 :     * init.cmi now treated as library
2245 :     * library stamps for consistency checks
2246 :     - sml.boot.<arch>-<os>/PIDMAP file
2247 :     * This file is read by the CM startup code. This is used to minimize
2248 :     the amount of dynamic state that needs to be stowed away for the
2249 :     purpose of sharing between interactive system and user code.
2250 :     - CM.Anchor.anchor instead of CM.Anchor.{set,cancel}
2251 :     * Upon request by Elsa. Anchors now controlled by get-set-pair
2252 :     like most other CM state variables.
2253 :     - Compiler.CMSA eliminated
2254 :     * No longer supported by CM anyway.
2255 :     - fixed bugs in pickler that kept biting Stefan
2256 :     * past refs to past refs (was caused by the possibility that
2257 :     ad-hoc sharing is more discriminating than hash-cons sharing)
2258 :     * integer overflow on LargeInt.minInt
2259 :     - ml-{lex,yacc} build scripts now use new mechanism
2260 :     for building standalone programs
2261 :     - fixed several gcc -Wall warnings that were caused by missing header
2262 :     files, missing initializations, etc., in runtime (not all warnings
2263 :     eliminated, though)

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