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 773 - (view) (download)

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

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