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

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