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

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