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 920 - (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 824
15 : leunga 815 ----------------------------------------------------------------------
16 : blume 916 Name: Matthias Blume
17 : blume 920 Date: 2001/08/28 14:03:00 EDT
18 :     Tag: blume-20010828-ml-lex
19 :     Description:
20 :    
21 :     Fix for bug 1581, received from Neophytos Michael.
22 :    
23 :     ----------------------------------------------------------------------
24 :     Name: Matthias Blume
25 : blume 918 Date: 2001/08/27 11:20:00 EDT
26 :     Tag: blume-20010827-readme11035
27 :     Description:
28 :    
29 :     Fleshed out the README file for 110.35.
30 :    
31 :     ----------------------------------------------------------------------
32 :     Name: Matthias Blume
33 : blume 916 Date: 2001/08/24 17:10:00 EDT
34 :     Tag: Release_110_35
35 :     Description:
36 :    
37 :     New version number (110.35). New bootfiles.
38 :    
39 :     ----------------------------------------------------------------------
40 : george 915 Name: Lal George
41 : george 909 Date: 2001/08/24 13:47:18 EDT 2001
42 :     Tag: george-20010824-MLRISC-graphs
43 :     Description:
44 :    
45 :     removed clusters from MLRISC completely and replaced with graphs.
46 :    
47 :     ----------------------------------------------------------------------
48 :     Name: Matthias Blume
49 : blume 905 Date: 2001/08/23 17:50:00 EDT
50 :     Tag: blume-20010823-toplevel
51 :     Description:
52 :    
53 :     - some reorganization of the code that implements various kinds of
54 :     environments in the compiler (static, dynamic, symbolic, combined)
55 :     - re-implemented the EnvRef module so that evalStream works properly
56 :     (if the stream contains references to "use", "CM.make", etc.)
57 :     - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
58 :    
59 :     ----------------------------------------------------------------------
60 :     Name: Matthias Blume
61 : blume 904 Date: 2001/08/20 15:50 EDT
62 :     Tag: blume20010820-slipup
63 :     Description:
64 :    
65 :     I forgot to commit a few files. Here they are...
66 :    
67 :     ----------------------------------------------------------------------
68 :     Name: Matthias Blume
69 : blume 903 Date: 2001/08/20 15:35:00 EDT
70 :     Tag: blume-20010820-debugprof
71 :     Description:
72 :    
73 :     !!!! NEW BOOTFILES !!!!
74 :    
75 :     This is another round of reorganizing the compiler sources. This
76 :     time the main goal was to factor out all the "instrumentation"
77 :     passes (for profiling and backtracing) into their own library.
78 :     The difficulty was to do it in such a way that it does not depend
79 :     on elaborate.cm but only on elabdata.cm.
80 :    
81 :     Therefore there have been further changes to both elaborate.cm and
82 :     elabdata.cm -- more "generic" things have been moved from the former
83 :     to the latter. As a result, I was forced to split the assignment
84 :     of numbers indicating "primtyc"s into two portions: SML-generic and
85 :     SML/NJ-specific. Since it would have been awkward to maintain,
86 :     I bit the bullet and actually _changed_ the mapping between these
87 :     numbers and primtycs. The bottom line of this is that you need
88 :     a new set of bin- and bootfiles.
89 :    
90 :     I have built new bootfiles for all architectures, so doing a fresh
91 :     checkout and config/install.sh should be all you need.
92 :    
93 :     The newly created library's name is
94 :    
95 :     $smlnj/viscomp/debugprof.cm
96 :    
97 :     and its sources live under
98 :    
99 :     src/compiler/DebugProf
100 :    
101 :     ----------------------------------------------------------------------
102 :     Name: Matthias Blume
103 : blume 902 Date: 2001/08/15 17:15:00 EDT
104 :     Tag: blume-20010815-compreorg
105 :     Description:
106 :    
107 :     This is a first cut at reorganizing the CM libraries that make up the
108 :     core of the compiler. The idea is to separate out pieces that could
109 :     be used independently by tools, e.g., the parser, the typechecker, etc.
110 :    
111 :     The current status is a step in this direction, but it is not quite
112 :     satisfactory yet. Expect more changes in the future.
113 :    
114 :     Here is the current (new) organization...
115 :    
116 :     What used to be $smlnj/viscomp/core.cm is now divided into
117 :     six CM libraries:
118 :    
119 :     $smlnj/viscomp/basics.cm
120 :     /parser.cm
121 :     /elabdata.cm
122 :     /elaborate.cm
123 :     /execute.cm
124 :     /core.cm
125 :    
126 :     The CM files for these libraries live under src/system/smlnj/viscomp.
127 :     All these libraries are proxy libraries that contain precisely
128 :     one CM library component. Here are the locations of the components
129 :     (all within the src/compiler tree):
130 :    
131 :     Basics/basics.cm
132 :     Parse/parser.cm
133 :     ElabData/elabdata.cm
134 :     Elaborator/elaborate.cm
135 :     Execution/execute.cm
136 :     core.cm
137 :    
138 :     [This organization is the same that has been used already
139 :     for a while for the architecture-specific parts of the visible
140 :     compiler and for the old version of core.cm.]
141 :    
142 :     As you will notice, many source files have been moved from their
143 :     respective original locations to a new home in one of the above
144 :     subtrees.
145 :    
146 :     The division of labor between the new libraries is the following:
147 :    
148 :     basics.cm:
149 :     - Simple, basic definitions that pertain to many (or all) of
150 :     the other libraries.
151 :     parser.cm:
152 :     - The SML parser, producing output of type Ast.dec.
153 :     - The type family for Ast is also defined and exported here.
154 :     elabdata.cm:
155 :     - The datatypes that describe input and output of the elaborator.
156 :     This includes types, absyn, and static environments.
157 :     elaborator.cm:
158 :     - The SML/NJ type checker and elaborator.
159 :     This maps an Ast.dec (with a given static environment) to
160 :     an Absyn.dec (with a new static environment).
161 :     - This libraries implements certain modules that used to be
162 :     structures as functors (to remove dependencies on FLINT).
163 :     execute.cm:
164 :     - Everything having to do with executing binary code objects.
165 :     - Dynamic environments.
166 :     core.cm:
167 :     - SML/NJ-specific instantiations of the elaborator and MLRISC.
168 :     - Top-level modules.
169 :     - FLINT (this should eventually become its own library)
170 :    
171 :     Notes:
172 :    
173 :     I am not 100% happy with the way I separated the elaborator (and its
174 :     data structures) from FLINT. Two instances of the same problem:
175 :    
176 :     1. Data structures contain certain fields that carry FLINT-specific
177 :     information. I hacked around this using exn and the property list
178 :     module from smlnj-lib. But the fact that there are middle-end
179 :     specific fields around at all is a bit annoying.
180 :    
181 :     2. The elaborator calculates certain FLINT-related information. I tried
182 :     to make this as abstract as I could using functorization, but, again,
183 :     the fact that the elaborator has to perform calculations on behalf
184 :     of the middle-end at all is not nice.
185 :    
186 :     3. Having to used exn and property lists is unfortunate because it
187 :     weakens type checking. The other alternative (parameterizing
188 :     nearly *everything*) is not appealing, though.
189 :    
190 :     I removed the "rebinding =" warning hack because due to the new organization
191 :     it was awkward to maintain it. As a result, the compiler now issues some of
192 :     these warnings when compiling init.cmi during bootstrap compilation. On
193 :     the plus side, you also get a warning when you do, for example:
194 :     val op = = Int32.+
195 :     which was not the case up to now.
196 :    
197 :     I placed "assign" and "deref" into the _Core structure so that the
198 :     code that deals with the "lazy" keyword can find them there. This
199 :     removes the need for having access to the primitive environment
200 :     during elaboration.
201 :    
202 :     ----------------------------------------------------------------------
203 :     Name: Matthias Blume
204 : blume 898 Date: 2001/08/13
205 :     Tag: blume-20010813-closures
206 :     Description:
207 :    
208 :     This fix was sent to us by Zhong Shao. It is supposed to improve the
209 :     performance of certain loops by avoiding needless closure allocation.
210 :    
211 :     ----------------------------------------------------------------------
212 : george 890 Name: Lal George
213 : george 896 Date: 2001/07/31 10:03:23 EDT 2001
214 :     Tag: george-20010731-x86-fmalloc
215 :     Description: Fixed bug in x86 calls
216 :    
217 :     There was a bug where call instructions would mysteriously
218 :     vanish. The call instruction had to be one that returned
219 :     a floating point value.
220 :    
221 :     ----------------------------------------------------------------------
222 :     Name: Lal George
223 : george 890 Date: 2001/07/19 16:36:29 EDT 2001
224 :     Tag: george-20010719-simple-cells
225 :     Description:
226 :    
227 :     I have dramatically simplified the interface for CELLS in MLRISC.
228 :    
229 :     In summary, the cells interface is broken up into three parts:
230 :    
231 :     1. CellsBasis : CELLS_BASIS
232 :    
233 :     CellsBasis is a top level structure and common for all
234 :     architectures. it contains the definitions of basic datatypes
235 :     and utility functions over these types.
236 :    
237 :     2. functor Cells() : CELLS
238 :    
239 :     Cells generates an interface for CELLS that incorporates the
240 :     specific resources on the target architecture, such as the
241 :     presence of special register classes, their number and size,
242 :     and various useful substructures.
243 :    
244 :     3. <ARCH>CELLS
245 :    
246 :     e.g. SparcCells: SPARCCELLS
247 :    
248 :     <ARCH>CELLS usually contains additional bindings for special
249 :     registers on the architecture, such as:
250 :    
251 :     val r0 : cell (* register zero *)
252 :     val y : cell (* Y register *)
253 :     val psr : cell (* processor status register *)
254 :     ...
255 :    
256 :     The structure returned by applying the Cells functor is opened
257 :     in this interface.
258 :    
259 :     The main implication of all this is that the datatypes for cells is
260 :     split between CellsBasis and CELLS -- a fairly simple change for user
261 :     code.
262 :    
263 :     In the old scheme the CELLS interface had a definitional binding of
264 :     the form:
265 :    
266 :     signature CELLS = sig
267 :    
268 :     structure CellsBasis = CellsBasis
269 :    
270 :     ...
271 :    
272 :     end
273 :    
274 :     With all the sharing constraints that goes on in MLRISC, this old
275 :     design quickly leads to errors such as:
276 :    
277 :     "structure definition spec inside of sharing ... "
278 :    
279 :    
280 :     and appears to require an unacceptable amount of sharing and where
281 :     constraint hackery.
282 :    
283 :     I think this error message (the interaction of definitional specs and
284 :     sharing) requires more explanation on our web page.
285 :    
286 :     ----------------------------------------------------------------------
287 : blume 826 Name: Matthias Blume
288 : blume 879 Date: 2001/07/19 15:00:00 EDT
289 :     Tag: blume-20010719-libreorg
290 :     Description:
291 :    
292 :     This update puts together a fairly extensive but straightforward change
293 :     to the way the libraries that implement the interactive system are
294 :     organized:
295 :    
296 :     The biggest change is the elimination of structure Compiler. As a
297 :     replacement for this structure, there is now a CM library
298 :     (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
299 :     that exports all the substructures of the original structure Compiler
300 :     directly. So instead of saying Compiler.Foo.bar one now simply
301 :     says Foo.bar. (The CM libraries actually export a collection of
302 :     structures that is richer than the collection of substructures of
303 :     structure Compiler.)
304 :    
305 :     To make the transition smooth, there is a separate library called
306 :     $smlnj/compiler/compiler.cm which puts together and exports the
307 :     original structure Compiler (or at least something very close to it).
308 :    
309 :     There are five members of the original structure Compiler
310 :     that are not exported directly but which instead became members
311 :     of a new structure Backend (described by signature BACKEND). These are:
312 :     structure Profile (: PROFILE), structure Compile (: COMPILE), structure
313 :     Interact (: INTERACT), structure Machine (: MACHINE), and val
314 :     architecture (: string).
315 :    
316 :     Structure Compiler.Version has become structure CompilerVersion.
317 :    
318 :     Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
319 :     by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
320 :     or x86, respectively.
321 :     Each of these exports the same frontend structures that
322 :     $smlnj/compiler.cm exports. But they do not have a structure Backend
323 :     and instead export some structure <Arch>Backend where <Arch> is Alpha32,
324 :     Hppa, PPC, Sparc, or X86, respectively.
325 :    
326 :     Library $smlnj/compiler/all.cm exports the union of the exports of
327 :     $smlnj/compiler/<arch>.cm
328 :    
329 :     There are no structures <Arch>Compiler anymore, use
330 :     $smlnj/compiler/<arch>.cm instead.
331 :    
332 :     Library host-compiler-0.cm is gone. Instead, the internal library
333 :     that instantiates CM is now called cm0.cm. Selection of the host
334 :     compiler (backend) is no longer done here but. (Responsibility for it
335 :     now lies with $smlnj/compiler/current.cm. This seems to be more
336 :     logical.)
337 :    
338 :     Many individual files have been moved or renamed. Some files have
339 :     been split into multiple files, and some "dead" files have been deleted.
340 :    
341 :     Aside from these changes to library organization, there are also changes
342 :     to the way the code itself is organized:
343 :    
344 :     Structure Binfile has been re-implemented in such a way that it no
345 :     longer needs any knowledge of the compiler. It exclusively deals
346 :     with the details of binfile layout. It no longer invokes the
347 :     compiler (for the purpose of creating new prospective binfile
348 :     content), and it no longer has any knowledge of how to interpret
349 :     pickles.
350 :    
351 :     Structure Compile (: COMPILE) has been stripped down to the bare
352 :     essentials of compilation. It no longer deals with linking/execution.
353 :     The interface has been cleaned up considerably.
354 :    
355 :     Utility routines for dealing with linking and execution have been
356 :     moved into their own substructures.
357 :    
358 :     (The ultimate goal of these changes is to provide a light-weight
359 :     binfile loader/linker (at least for, e.g., stable libraries) that
360 :     does not require CM or the compiler to be present.)
361 :    
362 :     CM documentation has been updated to reflect the changes to library
363 :     organization.
364 :    
365 :     ----------------------------------------------------------------------
366 :     Name: Matthias Blume
367 : blume 875 Date: 2001/07/10 17:30:00 EDT
368 :     Tag: Release_110_34
369 :     Description:
370 :    
371 : blume 876 Minor tweak to 110.34 (re-tagged):
372 :    
373 :     - README.html file added to CVS repository
374 :     - runtime compiles properly under FreeBSD 3.X and 4.X
375 :    
376 :     ----------------------------------------------------------------------
377 :     Name: Matthias Blume
378 :     Date: 2001/07/10 17:30:00 EDT
379 :     Tag: Release_110_34
380 :     Description:
381 :    
382 : blume 875 New version number (110.34). New bootfiles.
383 :    
384 :     ----------------------------------------------------------------------
385 :     Name: Matthias Blume
386 : blume 874 Date: 2001/07/09 16:00:00 EDT
387 :     Tag: blume-20010709-more-varargs
388 :     Description:
389 :    
390 :     I changed the handling of varargs in ml-nlffigen again:
391 :     The ellipsis ... will now simply be ignored (with an accompanying warning).
392 :    
393 :     The immediate effect is that you can actually call a varargs function
394 :     from ML -- but you can't actually supply any arguments beyond the ones
395 :     specified explicitly. (For example, you can call printf with its format
396 :     string, but you cannot pass additional arguments.)
397 :    
398 :     This behavior is only marginally more useful than the one before, but
399 :     it has the advantage that a function or, more importantly, a function
400 :     type never gets dropped on the floor, thus avoiding follow-up problems with
401 :     other types that refer to the offending one.
402 :    
403 :     ----------------------------------------------------------------------
404 :     Name: Matthias Blume
405 : blume 873 Date: 2001/07/09 11:25:00 EDT
406 :     Tag: blume-20010709-varargs
407 :     Description:
408 :    
409 :     1. ckit-lib.cm now exports structure Error
410 :     2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
411 :     with a warning accompanied by a source location. Moreover, it
412 :     merely skips the offending function or type and proceeds with the
413 :     rest of its work.u As a result, one can safely feed C code containing
414 :     "..." to ml-nlffigen.
415 :     3. There are some internal improvements to CM, providing slightly
416 :     more general string substitutions in the tools subsystem.
417 :    
418 :     ----------------------------------------------------------------------
419 :     Name: Matthias Blume
420 : blume 854 Date: 2001/06/27 15:10:00 EDT
421 :     Tag: blume-20010627-concur
422 :     Description:
423 :    
424 :     Fixed a small bug in CM's handling of parallel compilation.
425 :     (You could observe the bug by Control-C-interrupting an ordinary
426 :     CMB.make or CM.stabilize and then attaching some compile servers.
427 :     The result was that all of a sudden the previously interrupted
428 :     compilation would continue on its own. This was because of
429 :     an over-optimization: CM did not bother to clean out certain queues
430 :     when no servers were attached "anyway", resulting in the contents
431 :     of these queues to grab control when new servers did get attached.)
432 :    
433 :     There is also another minor update to the CM manual.
434 :    
435 :     ----------------------------------------------------------------------
436 :     Name: Matthias Blume
437 : blume 853 Date: 2001/06/26 16:15:00 EDT
438 :     Tag: blume-20010626-cmdoc
439 :     Description:
440 :    
441 :     Minor typo fixed in CM manual (syntax diagram for libraries).
442 :    
443 :     ----------------------------------------------------------------------
444 :     Name: Matthias Blume
445 : blume 852 Date: 2001/06/25 22:55:00 EDT
446 :     Tag: blume-20010625-x86pc
447 :     Description:
448 :    
449 :     Fixed a nasty bug in the X86 assembly code that caused signal
450 :     handlers to fail (crash) randomly.
451 :    
452 :     ----------------------------------------------------------------------
453 :     Name: Matthias Blume
454 : blume 846 Date: 2001/06/25 12:05:00 EDT
455 :     Tag: blume-20010625-nlffigen
456 :     Description:
457 :    
458 :     This update fixes a number of minor bugs in ml-nlffigen as reported by
459 :     Nick Carter <nbc@andrew.cmu.edu>.
460 :    
461 :     1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
462 :     2. Default names for generated files are now derived from the name of
463 :     the C file *without its directory*. In particular, this causes generated
464 :     files to be placed locally even if the C file is in some system directory.
465 :     3. Default names for generated signatures and structures are also derived
466 :     from the C file name without its directory. This avoids silly things
467 :     like "structure GL/GL".
468 :     (Other silly names are still possible because ml-nlffigen does not do
469 : blume 847 a thorough check of whether generated names are legal ML identifiers.
470 :     When in doubt, use command line arguments to force particular names.)
471 : blume 846
472 :     ----------------------------------------------------------------------
473 :     Name: Matthias Blume
474 : blume 845 Date: 2001/06/21 12:25:00 EDT
475 :     Tag: blume-20010621-eXene
476 :     Description:
477 :    
478 :     eXene now compiles and (sort of) works again.
479 :    
480 :     The library name (for version > 110.33) is $/eXene.cm.
481 :    
482 :     I also added an new example in src/eXene/examples/nbody. See the
483 :     README file there for details.
484 :    
485 :     ----------------------------------------------------------------------
486 :     Name: Matthias Blume
487 : blume 844 Date: 2001/06/20 16:40:00 EDT
488 :     Tag: blume-20010620-cml
489 :     Description:
490 :    
491 :     CML now compiles and works again.
492 :    
493 :     Libraries (for version > 110.33):
494 :    
495 :     $cml/cml.cm Main CML library.
496 :     $cml/basis.cm CML's version of $/basis.cm.
497 :     $cml/cml-internal.cm Internal helper library.
498 :     $cml/core-cml.cm Internal helper library.
499 :     $cml-lib/trace-cml.cm Tracing facility.
500 :     $cml-lib/smlnj-lib.cm CML's version of $/smlnj-lib.cm
501 :    
502 :     The installer (config/install.sh) has been taught how to properly
503 :     install this stuff.
504 :    
505 :     ----------------------------------------------------------------------
506 :     Name: Matthias Blume
507 : blume 843 Date: 2001/06/19 17:55:00 EDT
508 :     Tag: blume-20010619-instantiate
509 :     Description:
510 :    
511 :     This un-breaks the fix for bug 1432.
512 :     (The bug was originally fixed in 110.9 but I broke it again some
513 :     time after that.)
514 :    
515 :     ----------------------------------------------------------------------
516 :     Name: Matthias Blume
517 : blume 842 Date: 2001/06/19 17:25:00 EDT
518 :     Tag: blume-20010619-signals
519 :     Description:
520 :    
521 :     This should (hopefully) fix the long-standing signal handling bug.
522 :     (The runtime system was constructing a continuation record with an
523 :     incorrect descriptor which would cause the GC to drop data on the floor...)
524 :    
525 :     ----------------------------------------------------------------------
526 :     Name: Matthias Blume
527 : blume 840 Date: 2001/06/15 15:05:00 EDT
528 : blume 841 Tag: blume-20010615-moresparc
529 :     Description:
530 :    
531 :     Here is a short late-hour update related to Sparc c-calls:
532 :    
533 :     -- made handling of double-word arguments a bit smarter
534 :    
535 :     -- instruction selection phase tries to collapse certain clumsily
536 :     constructed ML-Trees; typical example:
537 :    
538 :     ADD(ty,ADD(_,e,LI d1),LI d2) -> ADD(ty,e,LI(d1+d2))
539 :    
540 :     This currently has no further impact on SML/NJ since mlriscGen does
541 :     not seem to generate such patterns in the first place, and c-calls
542 :     (which did generate them in the beginning) has meanwhile been fixed
543 :     so as to avoid them as well.
544 :    
545 :     ----------------------------------------------------------------------
546 :     Name: Matthias Blume
547 :     Date: 2001/06/15 15:05:00 EDT
548 : blume 840 Tag: blume-20010615-sparc
549 :     Description:
550 :    
551 :     The purpose of this update is to provide an implementation of NLFFI
552 :     on Sparc machines.
553 :    
554 :     Here are the changes in detail:
555 :    
556 :     * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
557 :     the Sparc implementation of the c-calls API.
558 :     * The Sparc backend of SML/NJ has been modified to uniformely use %fp
559 :     for accessing the ML frame. Thus, we have a real frame pointer and
560 :     can freely modify %sp without need for an omit-frame-ptr phase.
561 :     The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
562 :     this case.
563 :     * ml-nlffigen has been taught to produce code for different architectures
564 :     and calling conventions.
565 :     * In a way similar to what was done in the x86 case, the Sparc
566 :     backend uses its own specific extension to mltree. (For example,
567 :     it needs to be able to generate UNIMP instructions which are part
568 :     of the calling convention.)
569 :     * ml-nlffi-lib was reorganized to make it more modular (in particular,
570 :     to make it easier to plug in new machine- and os-dependent parts).
571 :    
572 :     There are some other fairly unrelated bug fixes and cleanups as well:
573 :    
574 :     * I further hacked the .cm files for MLRISC tools (like MDLGen) so
575 :     that they properly share their libraries with existing SML/NJ libraries.
576 :     * I fixed a minor cosmetic bug in CM, supressing certain spurious
577 :     follow-up error messages.
578 :     * Updates to CM/CMB documentation.
579 :    
580 :     TODO items:
581 :    
582 :     * MLRISC should use a different register as its asmTemp on the Sparc.
583 :     (The current %o2 is a really bad choice because it is part of the
584 :     calling conventions, so things might interfere in unexpected ways.)
585 :    
586 :     ----------------------------------------------------------------------
587 :     Name: Matthias Blume
588 : blume 839 Date: 2001/06/07
589 :     Tag: blume-20010607-calls
590 :     Description:
591 :    
592 :     A number of internal changes related to C calls and calling conventions:
593 :    
594 :     1. ML-Tree CALL statements now carry a "pops" field. It indicates the
595 :     number of bytes popped implicitly (by the callee). In most cases
596 :     this field is 0 but on x86/win32 it is some non-zero value. This
597 :     is information provided for the benefit of the "omit-frameptr" pass.
598 :     2. The CALL instruction on the x86 carries a similar "pops" field.
599 :     The instruction selection phase copies its value from the ML-Tree
600 :     CALL statement.
601 :     3. On all other architectures, the instruction selection phase checks
602 :     whether "pops=0" and complains if not.
603 :     4. The c-calls implementation for x86 now accepts two calling conventions:
604 :     "ccall" and "stdcall". When "ccall" is selected, the caller cleans
605 :     up after the call and pops is set to 0. For "stdcall", the caller
606 :     does nothing, leaving the cleanup to the callee; pops is set to
607 :     the number of bytes that were pushed onto the stack.
608 :     5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
609 :     distinguish between "ccall" and "stdcall".
610 :     6. The UNIMP instruction has been added to the supported Sparc instruction
611 :     set. (This is needed for implementing the official C calling convention
612 :     on this architecture.)
613 :     7. I fixed some of the .cm files under src/MLRISC/Tools to make them
614 :     work with the latest CM.
615 :    
616 :     ----------------------------------------------------------------------
617 :     Name: Matthias Blume
618 : blume 838 Date: 2001/06/05 15:10:00 EDT
619 :     Tag: blume-20010605-cm-index
620 :     Description:
621 :    
622 :     0. The "lambdasplit" parameter for class "sml" in CM has been documented.
623 :    
624 :     1. CM can now generate "index files". These are human-readable files
625 :     that list on a per-.cm-file basis each toplevel symbol defined or
626 :     imported. The location of the index file for
627 :     <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
628 :     To enable index-file generation, set CM.Control.generate_index to true
629 :     or export an environment-symbol: export CM_GENERATE_INDEX=true.
630 :    
631 :     The CM manual has been updated accordingly.
632 :    
633 :     2. I made some slight modifications to the c-calls API in MLRISC.
634 :    
635 :     a) There is now a callback to support saving/restoring of
636 :     dedicated but caller-save registers around the actual call
637 :     instruction.
638 :     b) One can optionally specify a comment-annotation for the
639 :     call instruction.
640 :    
641 :     3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
642 :     (For example, the comment annotation shows the C prototype of
643 :     the function being called.)
644 :    
645 :     ----------------------------------------------------------------------
646 :     Name: Matthias Blume
647 : blume 837 Date: 2001/06/01 13:30:00 EDT
648 :     Tag: blume-20010601-nlffi-cleanup
649 :     Description:
650 :    
651 :     This is mostly a cleanup of MLFFI stuff:
652 :    
653 :     - some signature files have been put into a more exposed place
654 :     - the ugly 'f type parameter is gone (simplifies types tremendously!)
655 :     - ml-nlffigen changed accordingly
656 :     - tutorial updated
657 :    
658 :     Other changes:
659 :    
660 :     - author's affiliation in CM manual(s) updated
661 :     - some more recognized keywords added to Allen's sml.sty
662 :    
663 :     ----------------------------------------------------------------------
664 :     Name: Matthias Blume
665 : blume 836 Date: 2001/05/25 15:30:00 EDT
666 :     Tag: blume-20010525-iptr
667 :     Description:
668 :    
669 :     - put the official 110.33-README (as it appears on the ftp server) under
670 :     CVS
671 :     - fixed a small bug related to incomplete pointer types in
672 :     ml-nlffigen
673 :     - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
674 :     (it does not need the 'f type parameter)
675 :    
676 :     ----------------------------------------------------------------------
677 :     Name: Matthias Blume
678 : blume 834 Date: 2001/05/23 14:30:00 EDT
679 :     Tag: Release_110_33
680 :     Description:
681 :    
682 :     New version number (110.33). New bootfiles.
683 :    
684 :     ----------------------------------------------------------------------
685 :     Name: Matthias Blume
686 : blume 833 Date: 2001/05/22 18:06:00 EDT
687 :     Tag: blume-20010522-targets
688 :     Description:
689 :    
690 :     Made install.sh use file config/targets.customized if it exists, falling
691 :     back to config/targets if it doesn't. This way one can have a customized
692 :     version of the targets file without touching the "real thing", thus
693 :     eliminating the constant fear of accidentally checking something bogus
694 :     back into the CVS repository... (File config/targets.customized must
695 :     not be added to the repository!)
696 :    
697 :     ----------------------------------------------------------------------
698 :     Name: Matthias Blume
699 : blume 832 Date: 2001/05/22 16:30:00 EDT
700 :     Tag: blume-20010522-minitut
701 :     Description:
702 :    
703 :     1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
704 :     struct returns.
705 :     2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt. This is some very
706 :     incomplete, preliminary documentation for NLFFI.
707 :    
708 :     ----------------------------------------------------------------------
709 :     Name: Matthias Blume
710 : blume 829 Date: 2001/05/14 11:30:00 EDT
711 :     Tag: blume-20010514-script
712 :     Description:
713 :    
714 :     Some bugs in install script fixed.
715 :    
716 :     In addition to that I also made a slight change to the NLFFI API:
717 :     Functors generated by ml-nlffigen now take the dynamic library as a
718 :     straight functor argument, not as a suspended one. (The original
719 :     functor code used to force the suspension right away anyway, so there
720 :     was nothing gained by this complication of the interface.)
721 :    
722 :     ----------------------------------------------------------------------
723 :     Name: Matthias Blume
724 : blume 828 Date: 2001/05/11 14:35:00 EDT
725 :     Tag: blume-20010511-ml-nlffi
726 :     Description:
727 :    
728 :     I finally took the plunge and added my new FFI code to the main
729 :     repository. For x86-linux it is now ready for prime-time.
730 :    
731 :     There are two new subdirectories of "src":
732 :    
733 :     - ml-nlffi-lib:
734 :     The utility library for programs using the FFI interface.
735 :     Here is the implementation of $/c.cm and its associated low-level
736 :     partners $/c-int.cm and $/memory.cm.
737 :     - ml-nlffigen:
738 :     A stand-alone program for generating ML glue code from C source
739 :     code.
740 :    
741 :     Building ml-nlffigen requires $/ckit-lib.cm.
742 :    
743 :     The config/install.sh script has been updates to do the Right Thing
744 :     (hopefully).
745 :    
746 :     Notice that the source tree for the C-Kit will not be put under "src"
747 :     but directly under the installation root directory. (This is the
748 :     structure that currently exists on the CVS server when you check out
749 :     module "sml".) Fortunately, config/install.sh knows about this oddity.
750 :    
751 :     Bugs: No documentation yet.
752 :    
753 :     ----------------------------------------------------------------------
754 :     Name: Matthias Blume
755 : blume 826 Date: 2001/05/09 16:35:00 EDT
756 :     Tag: blume-20010509-cpscontract
757 :     Description:
758 :    
759 :     Fixed a bug in the accounting code in cpsopt/contract.sml. (The
760 :     wrapper/unwrapper elimination did not decrement usage counts and some
761 :     dead variables got overlooked by the dead-up logic.)
762 :    
763 :     ----------------------------------------------------------------------
764 : george 824 Name: Lal George
765 :     Date: 2001/05/08 17:26:09 EDT
766 :     Tag: george-20010508-omit-frameptr
767 :     Description:
768 :    
769 :     Changes to implement the omit-frame-pointer optimization to support
770 :     raw C calls. For now, there is only support on the Intel x86, but
771 :     other architectures will follow as more experience is gained with this.
772 :    
773 :    
774 :     ----------------------------------------------------------------------
775 : blume 818 Name: Matthias Blume
776 : blume 819 Date: 2001/05/07 14:40:00 EDT
777 :     Tag: blume-20010507-proxies
778 :     Description:
779 :    
780 :     I made into "proxy libraries" all libraries that qualify for such a
781 :     change. (A qualifying library is a library that has another library or
782 :     groups as its sole member and repeats that member's export list
783 :     verbatim. A proxy library avoids this repetition by omitting its export
784 :     list, effectively inheriting the list that its (only) member exports.
785 :     See the CM manual for more explanation.)
786 :     The main effect is that explicit export lists for these libraries
787 :     do not have to be kepts in sync, making maintenance a bit easier.
788 :    
789 :     I also added copyright notices to many .cm-files.
790 :    
791 :     Last but not least, I made a new set of bootfiles.
792 :    
793 :     ----------------------------------------------------------------------
794 :     Name: Matthias Blume
795 : blume 818 Date: 2001/05/04 17:00:00 EDT
796 :     Tag: blume-20010504-cm-lsplit
797 :     Description:
798 :    
799 :     0. John merged pending changes to $/smlnj-lib.cm
800 :    
801 :     1. Allen's previous change accidentally backed out of one of Lal's
802 :     earlier changes. I undid this mistake (re-introducing Lal's change).
803 :    
804 :     2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
805 :     within the compiler where applicable. There is some code simplification
806 :     because of that.
807 :    
808 :     3. The "split" phase (in FLINT) is now part of the default list of phases.
809 :     Compiler.Control.LambdaSplitting.* can be used to globally control the
810 :     lambda-splitting (cross-module-inlining) engine. In addition to that,
811 :     it can now also be controlled on a per-source basis: CM has been taught
812 :     a new tool parameter applicable to ML source files.
813 :    
814 :     - To turn lambda-splitting off completely:
815 :     local open Compiler.Control.LambdaSplitting in
816 :     val _ = set Off
817 :     end
818 :     - To make "no lambda-splitting" the global default (but allow per-source
819 :     overriding); this is the initial setting:
820 :     local open Compiler.Control.LambdaSplitting in
821 :     val _ = set (Default NONE)
822 :     end
823 :     - To make "lambda-splitting with aggressiveness a" the global default
824 :     (and allow per-source overriding):
825 :     local open Compiler.Control.LambdaSplitting in
826 :     val _ = set (Default (SOME a))
827 :     end
828 :    
829 :     - To turn lambda-splitting off for a given ML souce file (say: a.sml)
830 :     write (in the respective .cm-file):
831 :     a.sml (lambdasplitting:off)
832 :     - To turn lambda-splitting for a.sml on with minimal aggressiveness:
833 :     a.sml (lambdasplitting:on)
834 :     - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
835 :     <a> is a decimal non-negative integer):
836 :     a.sml (lambdasplitting:<a>)
837 :     - To turn lambda-splitting for a.sml on with maximal aggressiveness:
838 :     a.sml (lambdasplitting:infinity)
839 :     - To use the global default for a.sml:
840 :     a.sml (lambdasplitting:default)
841 :     or simply
842 :     a.sml
843 :    
844 :     ----------------------------------------------------------------------
845 : leunga 815 Name: Allen Leung
846 :     Date: 2001/05/04 01:57:00 EDT
847 :     Tag: leunga-20010504-sync
848 :     Description:
849 : leunga 788
850 : leunga 815 MLRISC features.
851 :    
852 :     1. Fix to CMPXCHG instructions.
853 :     2. Changed RA interface to allow annotations in callbacks.
854 :     3. Added a new method to the stream interface to allow annotations updates.
855 :    
856 : george 749 ----------------------------------------------------------------------
857 : blume 812 Name: Matthias Blume
858 : blume 814 Date: 2001/05/01 11:45:00 EDT
859 :     Tag: blume-20010501-pcedittmp
860 :     Description:
861 :    
862 :     Changed install.sh to use the current working directory instead of
863 :     /usr/tmp for a temporary file (pcedittmp). The previous choice
864 :     of /usr/tmp caused trouble with MacOS X because of file premission
865 :     problems.
866 :    
867 :     ----------------------------------------------------------------------
868 :     Name: Matthias Blume
869 : blume 812 Date: 2001/04/20 11:10:00 EDT
870 :     Tag: blume-20010420-inMLflag
871 :     Description:
872 :    
873 :     - added vp_limitPtrMask to vproc-state.h
874 :     (for use by the raw-C-calls mechanism to implement proper interrupt
875 :     handling)
876 :     - made the ML compiler aware of various data-structure offsets so it
877 :     can generate code for accessing the vp_inML flag and vp_limitPtrMask
878 :     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
879 :     raw C-calls
880 :    
881 :     ----------------------------------------------------------------------
882 : george 810 Name: Lal George
883 :     Date: 2001/04/20 09:15:28 EDT
884 :     Tag: george-20010420-macosX
885 :     Description:
886 :    
887 :     - Changes to port to Mac OS X; Darwin.
888 :    
889 :     - In the process I found that sqrt was broken on the PPC, because the
890 :     fsqrt instruction is not implemented.
891 :    
892 :     ----------------------------------------------------------------------
893 : blume 799 Name: Matthias Blume
894 : blume 808 Date: 2001/04/18 12:45:00 EDT
895 :     Tag: blume-20010418-ccalls
896 :     Description:
897 :    
898 :     - fixed two off-by-4 errors in the x86-specific c-calls implementation
899 :     (this bug prevented structure arguments containing pointers from being
900 :     passed correctly)
901 :     - changed the raw-C-call code in mlriscGen.sml in such a way that
902 :     structure arguments are represented as a pointer to the beginning
903 :     of the structure (instead of having a series of synthesized arguments,
904 :     one for each structure member)
905 :    
906 :     - made makeml script's verbosity level configurable via environment
907 :     variable (MAKEML_VERBOSITY)
908 :    
909 : blume 813 - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
910 : blume 808 in rawmem-x86.sml; we are now using the real thing
911 :    
912 :     ----------------------------------------------------------------------
913 :     Name: Matthias Blume
914 : blume 806 Date: 2001/03/22 16:25:00 EST
915 :     Tag: blume-20010322-bootfiles
916 :     Description:
917 :    
918 :     Created a new set of bootfiles (for your automatic installation convenience).
919 :    
920 :     ----------------------------------------------------------------------
921 :     Name: Matthias Blume
922 : blume 805 Date: 2001/03/22 15:10:00 EST
923 :     Tag: blume-20010322-rawmem-parcm
924 :     Description:
925 :    
926 :     1. All "raw memory access" primitives for the new FFI are implemented now
927 :     (at least on the x86).
928 :     2. Some further cleanup of CM's parallel make mechanism.
929 :    
930 :     ----------------------------------------------------------------------
931 :     Name: Matthias Blume
932 : blume 801 Date: 2001/03/19 17:53:00 EST
933 :     Tag: blume-20010319-parallel
934 :     Description:
935 :    
936 :     Parallel make (using compile servers) now works again.
937 :    
938 :     To this end, CM.stabilize and CMB.make have been modified to work in
939 :     two passes when compile servers are attached:
940 :     1. Compile everything, do not perform stabilization; this pass
941 :     uses compile servers
942 :     2. Stabilize everything; this pass does not use compile servers
943 :     If there are no compile servers, the two passes are combined into one
944 :     (as before). Splitting the passes increases the inherent parallelism
945 :     in the dependency graph because the entire graph including all
946 :     libraries is available at the same time. This, in turn, improves
947 :     server utilization. The downside is that the master process will
948 :     have to do some extra work after compilation is done (because for
949 :     technical reasons it must re-read all the binfiles during stabilization).
950 :    
951 :     ----------------------------------------------------------------------
952 :     Name: Matthias Blume
953 : blume 800 Date: 2001/03/16 12:22:00 EST
954 :     Tag: blume-20010316-bootfiles
955 :     Description:
956 :    
957 :     Created a new set of bootfiles (for your automatic installation convenience).
958 :    
959 :     ----------------------------------------------------------------------
960 :     Name: Matthias Blume
961 : blume 799 Date: 2001/03/16 11:00:00 EST
962 :     Tag: blume-20010316-MLTREE-fixup
963 :     Description:
964 :    
965 :     This is a minor fixup for an (untagged) earlier commit by Allen.
966 :     (A file was missing).
967 :    
968 :     ----------------------------------------------------------------------
969 : leunga 788 Name: Allen Leung
970 : leunga 796 Date: Mon Mar 5 18:54:57 EST 2001
971 :     Tag: leunga-20010305-cut-support
972 :    
973 :     1. New support for alternative control-flow in MLTREE.
974 :     Currently we support
975 :    
976 :     FLOW_TO(CALL ...., [k1,...,kn])
977 :    
978 :     This is needed for 'cuts to' in C-- and try/handle-like constructs
979 :     in Moby
980 :    
981 :     New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
982 :    
983 :     2. Register Allocator
984 :    
985 :     Changes in interface [from Fermin, John]
986 :    
987 :     3. Alpha 8-bit SLL support [Fermin]
988 :    
989 :     4. All architectures
990 :    
991 :     A new module (ClusterExpandCopies) for expanding parallel copies.
992 :    
993 :     ----------------------------------------------------------------------
994 :     Name: Allen Leung
995 : leunga 788 Date: 2001/02/27 23:07:00 EST
996 :     Tag: leunga-20010227-minor-stuff
997 :    
998 :     1. Alpha bug fix for CMOVNE
999 :     2. Handle mltree COND(..,FCMP ...,...)
1000 :     3. Bug fix in simplifier
1001 :    
1002 :     ----------------------------------------------------------------------
1003 : blume 777 Name: Matthias Blume
1004 : blume 781 Date: 2001/01/30 17:50:00 EST
1005 :     Tag: blume-20010130-sync
1006 :     Description:
1007 :    
1008 :     This is just a minor update to sync my devel branch with the main brach.
1009 :     The only visible change is the addition of some README files.
1010 :    
1011 :     ----------------------------------------------------------------------
1012 :     Name: Matthias Blume
1013 : blume 778 Date: 2001/01/12 23:30:00 JST
1014 :     Tag: blume-20010112-bootfiles
1015 :     Description:
1016 :    
1017 :     Made a new set of bootfiles that goes with the current state of the
1018 :     repository.
1019 :    
1020 :     ----------------------------------------------------------------------
1021 :     Name: Matthias Blume
1022 : blume 777 Date: 2001/01/12 21:20:00 JST
1023 :     Tag: blume-20010112-sync
1024 :     Description:
1025 :    
1026 :     I am just flushing out some minor changes that had accumulated in
1027 :     my private branch in order to sync with the main tree. (This is
1028 :     mainly because I had CVS trouble when trying to merge _into_ my
1029 :     private branch.)
1030 :    
1031 :     Most people should be completely unaffected by this.
1032 :    
1033 :     ----------------------------------------------------------------------
1034 : leunga 775 Name: Allen Leung
1035 :     Date: Thu Jan 11 21:03:00 EST 2001
1036 :     Tag: leunga-20010111-labexp=mltree
1037 :     Description:
1038 :    
1039 :     1. Removed the type LabelExp and replace it by MLTree.
1040 :     2. Rewritten mltree-simplify with the pattern matcher tool.
1041 :     3. There were some bugs in alpha code generator which would break
1042 :     64-bit code generation.
1043 :     4. Redo the tools to generate code with the
1044 :     5. The CM files in MLRISC (and in src/system/smlnj/MLRISC)
1045 :     are now generated by perl scripts.
1046 :    
1047 :     ----------------------------------------------------------------------
1048 : blume 771 Name: Matthias Blume
1049 : blume 774 Date: 2001/01/10 21:55:00 JST
1050 :     Tag: blume-20010110-rcc
1051 :     Description:
1052 :    
1053 :     The RCC stuff now seems to work (but only on the x86).
1054 :     This required hacking of the c-calls interface (and -implementation) in
1055 :     MLRISC.
1056 :    
1057 :     Normal compiler users should be unaffected.
1058 :    
1059 :     ----------------------------------------------------------------------
1060 :     Name: Matthias Blume
1061 : blume 773 Date: 2001/01/09 01:20:00 JST
1062 :     Tag: blume-20010109-rcc
1063 :     Description:
1064 :    
1065 :     This is a fairly big patch, flushing out a large number of pending
1066 :     changes that I made to my development copy over the last couple of days.
1067 :    
1068 :     Of practical relevance at this moment is a workaround for a pickling
1069 :     bug that Allen ran into the other day. The cause of the bug itself is
1070 :     still unknown and it might be hard to fix it properly, but the
1071 :     workaround has some merits of its own (namely somewhat reducing pickling
1072 :     overhead for certain libraries). Therefore, I think this solution should
1073 :     be satisfactory at this time.
1074 :    
1075 :     The rest of the changes (i.e., the vast majority) has to do with my
1076 :     ongoing efforts of providing direct support for C function calls from
1077 :     ML. At the moment there is a new primop "RAW_CCALL", typing magic
1078 :     in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
1079 :     case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
1080 :     translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
1081 :     handle RCC.
1082 :    
1083 :     The last part (the changes to mlriscGen.sml) are still known to be
1084 :     wrong on the x86 and not implemented on all other architectures. But
1085 :     the infrastructure is in place. I had to change a few functor
1086 :     signatures in the backend to be able to route the CCalls interface
1087 :     from MLRISC there, and I had to specialize the mltree type (on the
1088 :     x86) to include the necessary extensions. (The extensions themselves
1089 :     were already there and redy to go in MLRISC/x86).
1090 :    
1091 :     Everything should be very happy as soon as someone helps me with
1092 :     mlriscGen.sml...
1093 :    
1094 :     In any case, nothing of this should matter to anyone as long as the
1095 :     new primop is not being used (which is going to be the case unless you
1096 :     find it where I hid it :). The rest of the compiler is completely
1097 :     unaffected.
1098 :    
1099 :     ----------------------------------------------------------------------
1100 :     Name: Matthias Blume
1101 : blume 772 Date: 2001/01/05 00:30:00 JST
1102 :     Tag: blume-20010105-primops
1103 :     Description:
1104 :    
1105 :     Added some experimental support for work that I am doing right now.
1106 :     These changes mostly concern added primops, but there is also a new
1107 :     experimental C library in the runtime system (but currently not enabled
1108 :     anywhere except on Linux/X86).
1109 :    
1110 :     In the course of adding primops (and playing with them), I discovered that
1111 :     Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
1112 :     broken. (Zhong was very right he labeled this stuff as "major gross hack".)
1113 :     To recover, I made type information in INL_PRIM mandatory and changed
1114 :     prim.sml as well as built-in.sml accordingly. The InLine structure now
1115 :     has complete, correct type information (i.e., no bottom types).
1116 :    
1117 :     Since all these changes mean that we need new binfiles, I also bumped the
1118 :     version number to 110.32.1.
1119 :    
1120 :     ----------------------------------------------------------------------
1121 :     Name: Matthias Blume
1122 : blume 771 Date: 2000/12/30 22:10:00 JST
1123 :     Tag: blume-20001230-various
1124 :     Description:
1125 :    
1126 :     Added proxy libraries for MLRISC and let MLRISC libraries refer
1127 :     to each other using path anchors. (See CM manual for explanation.)
1128 :    
1129 :     Updated CM documentation.
1130 :    
1131 :     Fixed some bugs in CM.
1132 :    
1133 :     Implemented "proxy" libraries (= syntactic sugar for CM).
1134 :    
1135 :     Added "-quiet" option to makeml and changed runtime system accordingly.
1136 :    
1137 :     Added cleanup handler for exportML to reset timers and compiler stats.
1138 :    
1139 :     ----------------------------------------------------------------------
1140 : george 761 Name: Lal George
1141 :     Date: 2000/12/22 22:22:58 EST 2000
1142 :     Tag: Release_110_32
1143 :     Description:
1144 :    
1145 :     Infinite precision used throughout MLRISC.
1146 :     see MLRISC/mltree/machine-int.sig
1147 :    
1148 :     ----------------------------------------------------------------------
1149 : blume 756 Name: Matthias Blume
1150 : blume 760 Date: 2000/12/22 23:16:00 JST
1151 :     Tag: blume-20001222-warn
1152 :     Description:
1153 : blume 759
1154 : blume 760 Corrected wording and formatting of some CM warning message which I
1155 :     broke in my previous patch.
1156 : blume 759
1157 :     ----------------------------------------------------------------------
1158 :     Name: Matthias Blume
1159 : blume 763 Date: 2000/12/22 21:20:00 JST
1160 :     Tag: blume-20001222-anchorenv
1161 :     Description:
1162 :    
1163 :     Fixed CM's handling of anchor environments in connection with CMB.make.
1164 :    
1165 :     ----------------------------------------------------------------------
1166 :     Name: Matthias Blume
1167 : blume 758 Date: 2000/12/22 13:15:00 JST
1168 :     Tag: blume-20001222-cleanup
1169 :     Description:
1170 :    
1171 :     Removed src/cm/ffi which does not (and did not) belong here.
1172 :    
1173 :     ----------------------------------------------------------------------
1174 :     Name: Matthias Blume
1175 : blume 757 Date: 2000/12/21 23:55:00 JST
1176 :     Tag: blume-20001221-exn
1177 :     Description:
1178 :    
1179 :     Probably most important: CM no longer silently swallows all exceptions
1180 :     in the compiler.
1181 :     Plus: some other minor CM changes. For example, CM now reports some
1182 :     sizes for generated binfiles (code, data, envpickle, lambdapickle).
1183 :    
1184 :     ----------------------------------------------------------------------
1185 :     Name: Matthias Blume
1186 : blume 756 Date: 2000/12/15 00:01:05 JST
1187 :     Tag: blume-20001215-dirtool
1188 :     Description:
1189 :    
1190 :     - "dir" tool added.
1191 :     - improvements and cleanup to Tools structure
1192 :     - documentation updates
1193 :    
1194 :     ----------------------------------------------------------------------
1195 : leunga 752 Name: Allen Leung
1196 : leunga 755 Date: Thu Dec 14 03:45:24 EST 2000
1197 :     Description:
1198 :     Tag: leunga-20001214-int-inf
1199 :     Description:
1200 :    
1201 :     In IntInf, added these standard functions, which are missing from our
1202 :     implementation:
1203 :    
1204 :     andb : int * int -> int
1205 :     xorb : int * int -> int
1206 :     orb : int * int -> int
1207 :     notb : int -> int
1208 :     << : int * word -> int
1209 :     ~>> : int * word -> int
1210 :    
1211 :     Not tested, I hope they are correct.
1212 :    
1213 :     ----------------------------------------------------------------------
1214 :     Name: Allen Leung
1215 : leunga 752 Date: Fri Dec 8 19:23:26 EST 2000
1216 :     Description:
1217 :     Tag: leunga-20001208-nowhere
1218 :     Description:
1219 :    
1220 :     Slight improvements to the 'nowhere' tool to handle OR-patterns,
1221 :     to generate better error messages etc. Plus a brief manual.
1222 :    
1223 :     ----------------------------------------------------------------------
1224 : george 749 Name: Lal George
1225 :     Date: 2000/12/08 09:54:02 EST 2000
1226 :     Tag: Release_110_31
1227 :     Description:
1228 : george 705
1229 : george 749 - Version 110.31
1230 : leunga 591 ----------------------------------------------------------------------
1231 : leunga 744 Name: Allen Leung
1232 :     Date: Thu Dec 7 22:01:04 EST 2000
1233 :     Tag: leunga-20001207-cell-monster-hack
1234 :     Description:
1235 :    
1236 :     Major MLRISC internal changes. Affect all clients.
1237 :     Summary:
1238 :    
1239 :     1. Type CELLS.cell = int is now replaced by a datatype.
1240 :     As a result, the old regmap is now gone. Almost all interfaces
1241 :     in MLRISC change as a consequence.
1242 :    
1243 :     2. A new brand version of machine description tool (v3.0) that generates
1244 :     modules expecting the new interface. The old version is removed.
1245 :    
1246 :     3. The RA interface has been further abstracted into two new functors.
1247 :     RISC_RA and X86RA. These functors have much simpler interfaces.
1248 :     [See also directory MLRISC/demo.]
1249 :    
1250 :     4. Some other new source->source code generation tools are available:
1251 :    
1252 :     a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
1253 :     b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
1254 :     I use this tool to generate the peephole optimizers---with the new
1255 :     cell type changes, peephole rules are becoming difficult to write
1256 :     without conditional pattern matching.
1257 :    
1258 :     5. More Intmap -> IntHashTable change. Previous changes by Matthias didn't
1259 :     cover the entire MLRISC source tree so many things broke.
1260 :    
1261 :     6. CM files have been moved to the subdirectory MLRISC/cm.
1262 :     They are moved because there are a lot of them and they clutter up the
1263 :     root dir.
1264 :    
1265 :     7. More detailed documentation to come...
1266 :    
1267 :     NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
1268 :     a makeml -rebuild first. This is because of other other
1269 :     changes that Matthias has made (see below).
1270 :    
1271 :    
1272 :     ----------------------------------------------------------------------
1273 : blume 733 Name: Matthias Blume
1274 : blume 742 Date: 2000/11/30 23:12:00 JST
1275 :     Tag: blume-20001130-filereorg
1276 :     Description:
1277 :    
1278 :     Some manual updates and some file reorganizations in CM.
1279 :    
1280 :     ----------------------------------------------------------------------
1281 :     Name: Matthias Blume
1282 : blume 737 Date: 2000/11/24 17:45:00 JST
1283 :     Tag: blume-20001124-link
1284 :     Description:
1285 :    
1286 :     Drastically improved link traversal code for the case that the dynamic
1287 :     value was already loaded at bootstrap time. As a result, CM and CMB
1288 :     now both load blazingly fast -- even on a very slow machine. Also,
1289 :     memory consumption has been further reduced by this.
1290 :    
1291 :     Warning: The format of the PIDMAP file has changed. THerefore, to
1292 :     bootstrap you have to do this:
1293 :    
1294 :     1. Run CMB.make
1295 :     2. Make a symbolic link for the boot directory:
1296 :     ln -s sml.boot.ARCH-OS xxx
1297 :     3. "Rebuild" the boot directory:
1298 :     ./makeml -boot xxx -rebuild sml ; rm xxx
1299 :     4. Boot normally:
1300 :     ./makeml
1301 :    
1302 :     ----------------------------------------------------------------------
1303 :     Name: Matthias Blume
1304 : blume 735 Date: 2000/11/21 21:20:00 JST
1305 :     Tag: blume-20001121-tools
1306 :     Description:
1307 :    
1308 :     Continued hacking on autoloading problem -- with success this time.
1309 :     Also changed tool-plugin mechanism. See new CM manual.
1310 :    
1311 :     ----------------------------------------------------------------------
1312 :     Name: Matthias Blume
1313 : blume 734 Date: 2000/11/19 14:30:00 JST
1314 :     Tag: blume-20001119-autoload
1315 :     Description:
1316 :    
1317 :     Some hacking to make autoloading faster. Success for CMB, no success
1318 :     so far for CM. There is a reduced structure CM' that autoloads faster.
1319 :     (This is a temporary, non-documented hack to be eliminated again when
1320 :     the general problem is solved.)
1321 :    
1322 :     ----------------------------------------------------------------------
1323 :     Name: Matthias Blume
1324 : blume 733 Date: 2000/11/17 14:10:00 JST
1325 :     Tag: blume-20001117-pickle-lib
1326 :     Description:
1327 :    
1328 :     1. Eliminated comp-lib.cm
1329 :     2. Made pickle-lib.cm
1330 :     3. Eliminated all uses of intset.sml (from comp-lib.cm)
1331 :     4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
1332 :     equivalent constructs from smlnj-lib.cm (INtHashTable).
1333 :     5. Point 4. also goes for those uses of intmap.* in MLRISC.
1334 :     Duplicated intmap modules thrown out.
1335 :     6. Hunted down all duplicated SCC code and replaced it with
1336 :     equivalent stuff (GraphSCCFn from smlnj-lib.cm).
1337 :     7. Rewrote Feedback module.
1338 :     8. Moved sortedlist.sml into viscomp-lib.cm. Eventually it
1339 :     should be thrown out and equivalent modules from smlnj-lib.cm
1340 :     should be used (IntRedBlackSet, IntListSet, ...).
1341 :    
1342 :     Confirmed that compiler compiles to fixpoint.
1343 :    
1344 :     ----------------------------------------------------------------------
1345 : leunga 731 Name: Allen Leung
1346 :     Date: 2000/11/10 18:00:00
1347 :     Tag: leunga-20001110-new-x86-fp
1348 :    
1349 :     A new x86 floating point code generator has been added.
1350 :     By default this is turned off. To turn this on, do:
1351 :    
1352 :     CM.autoload "$smlnj/compiler.cm";
1353 :     Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
1354 :    
1355 :     Changes:
1356 :    
1357 :     1. Changed FTAN to FPTAN so that the assembly output is correct.
1358 :     2. Changed the extension callback for FTANGENT to generate:
1359 :    
1360 :     fptan
1361 :     fstp %st(0)
1362 :     instead of
1363 :     fptan
1364 :     fstpl ftempmem
1365 :    
1366 :     3. Numerous assembly fixes for x86.
1367 :    
1368 :     5. Cleaned up the machine code output module x86/x86MC.sml and added
1369 :     support for a whole bunch of instructions and addressing modes:
1370 :    
1371 :     fadd/fsub/fsubr/fmul/fdiv/fdivr %st, %st(n)
1372 :     faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp %st, %st(n)
1373 :     fadd/fsub/fsubr/fmul/fdiv/fdivr %st(n), %st
1374 :     fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
1375 :     fxch %st(n)
1376 :     fld %st(n)
1377 :     fst %st(n)
1378 :     fst mem
1379 :     fstp %st(n)
1380 :     fucom %st(n)
1381 :     fucomp %st(n)
1382 :    
1383 :     All these are now generated when the fast fp mode is turned on.
1384 :    
1385 :     6. Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
1386 :    
1387 :     ----------------------------------------------------------------------
1388 : blume 729 Name: Matthias Blume
1389 :     Date: 2000/11/09 11:20:00 JST
1390 :     Tag: blume-20001109-scc
1391 :     Description:
1392 :    
1393 :     Eliminated some code duplication:
1394 :    
1395 :     1. Added "where" clause to GraphSCCFn in SML/NJ Library.
1396 :     (Otherwise the functor is useless.)
1397 :     2. Used GraphSCCFn where SCCUtilFun was used previously.
1398 :     3. Got rid of SCCUtilFun (in comp-lib.cm).
1399 :    
1400 :     ----------------------------------------------------------------------
1401 : george 721 Name: Lal George
1402 :     Date: 2000/11/06 09:02:21 EST 2000
1403 :     Tag: Release_110_30
1404 :     Description:
1405 :    
1406 :     - Version 110.30
1407 :     ----------------------------------------------------------------------
1408 : blume 715 Name: Matthias Blume
1409 : blume 716 Date: 2000/11/04 14:45:00
1410 :     Tag: blume-20001104-mlbuild
1411 :     Description:
1412 :    
1413 :     - Made ml-build faster on startup.
1414 :     - Documentation fixes.
1415 :    
1416 :     ----------------------------------------------------------------------
1417 :     Name: Matthias Blume
1418 : blume 715 Date: 2000/11/02 17:00:00 JST
1419 :     Tag: blume-20001102-condcomp
1420 :     Description:
1421 :    
1422 :     - Small tweaks to pickler -- new BOOTFILES!
1423 :     - Version bumped to 110.29.2.
1424 :     - Added conditional compilation facility to init.cmi (see comment there).
1425 :     ----------------------------------------------------------------------
1426 : leunga 713 Name: Allen Leung
1427 :     Date: 2000/10/23 19:31:00
1428 :     Tag: leunga-20001023-demo-ra
1429 :    
1430 :     1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
1431 :     2. Test programs for the graph library updated
1432 :     3. Some new MLRISC demo programs added
1433 :    
1434 :     ----------------------------------------------------------------------
1435 : blume 710 Name: Matthias Blume
1436 : blume 711 Date: 2000/08/31 22:15:00 JST
1437 :     Tag: blume-20001017-errmsg
1438 :     Description:
1439 :    
1440 :     More error message grief: Where there used to be no messages, there
1441 :     now were some that had bogus error regions. Fixed.
1442 :    
1443 :     ----------------------------------------------------------------------
1444 :     Name: Matthias Blume
1445 : blume 710 Date: 2000/08/31 17:30:00 JST
1446 :     Tag: blume-20001017-v110p29p1
1447 :     Description:
1448 :    
1449 :     I made a version 110.29.1 with new bootfiles.
1450 :    
1451 :     Changes: Modified pickler/unpickler for faster and leaner unpickling.
1452 :     CM documentation changes and a small bugfix in CM's error reporting.
1453 :    
1454 :     ----------------------------------------------------------------------
1455 : george 705 Name: Lal George
1456 :     Date: 2000/09/27 14:42:35 EDT
1457 :     Tag: george-20000927-nodestatus
1458 :     Description:
1459 :    
1460 :     Changed the type of the nodestatus, so that:
1461 :    
1462 :     SPILLED(~1) is now SPILLED
1463 :     SPILLED(m) where m>=0 is now MEMREG(m)
1464 :     SPILLED(s) where s<~1 is now SPILL_LOC(~s)
1465 :    
1466 :     ----------------------------------------------------------------------
1467 : blume 697 Name: Matthias Blume
1468 : blume 703 Date: 2000/09/07 14:45:00 JST
1469 :     Tag: blume-20000907-cmerrmsg
1470 :     Description:
1471 :    
1472 :     Small tweak to CM to avoid getting ML syntax error messages twice.
1473 :    
1474 :     ----------------------------------------------------------------------
1475 :     Name: Matthias Blume
1476 : blume 701 Date: 2000/08/31 18:00:00 JST
1477 :     Tag: blume-20000831-cvsbootfiles
1478 :     Description:
1479 :    
1480 :     New URL for boot files (because the 110.29 files on the BL server do
1481 :     now work correctly with my updated install scripts for yacc and lex).
1482 :    
1483 :     ----------------------------------------------------------------------
1484 :     Name: Matthias Blume
1485 : blume 697 Date: 2000/08/08 12:33:00 JST
1486 :     Tag: blume-20000808-manual
1487 :     Description:
1488 :    
1489 :     Tiny update to CM manual.
1490 :    
1491 :     ----------------------------------------------------------------------
1492 : leunga 695 Name: Allen Leung
1493 :     Date: 2000/08/7 19:31:00
1494 :     Tag: leunga-20000807-a-whole-bunch-of-stuff
1495 :    
1496 :     Moby, C--, SSA, x86, machine descriptions etc. Should only affect C--
1497 :     and Mobdy.
1498 :    
1499 :     1. x86
1500 :    
1501 :     a. Fixes to peephole module by John and Dan.
1502 :     b. Assembly fix to SETcc by Allen.
1503 :     c. Fix to c-call by John.
1504 :     d. Fix to spilling by John. (This one deals with the missing FSTPT case)
1505 :     e. Instruction selection optimization to SETcc as suggested by John.
1506 :    
1507 :     For example,
1508 :    
1509 :     MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
1510 :    
1511 :     should generate:
1512 :    
1513 :     MOVL a, x
1514 :     SUBL b, x
1515 :     SHRL 31, x
1516 :    
1517 :     2. IR stuff
1518 :    
1519 :     A bunch of new DJ-graph related algorithms added. These
1520 :     speed up SSA construction.
1521 :    
1522 :     3. SSA + Scheduling
1523 :    
1524 :     Added code for SSA and scheduling to the repository
1525 :    
1526 :     ----------------------------------------------------------------------
1527 : george 694 Name: Lal George
1528 :     Date: 2000/07/27 11:53:14 EDT
1529 :    
1530 :     Tag: lal-20000727-linux-ppc
1531 :     Description:
1532 :    
1533 :     Made changes to support Linux PPC.
1534 :     p.s. I have confirmation that the 110.29 boot files work fine.
1535 :    
1536 :     ----------------------------------------------------------------------
1537 : blume 684 Name: Matthias Blume
1538 : blume 692 Date: 2000/07/27 17:40:00 JST
1539 :     Tag: blume-20000727-scripts
1540 :     Description:
1541 :    
1542 :     !!!! WARNING !!!!
1543 :     You must recompile the runtime system!
1544 :     !!!! WARNING !!!!
1545 :    
1546 :     This is basically another round of script-enhancements:
1547 :    
1548 :     1. sml, ml-build, and ml-makedepend accept options -D and -U to define
1549 :     and undefine CM preprocessor symbols.
1550 :    
1551 :     2. ml-build avoids generating a new heap image if it finds that the
1552 :     existing one is still ok. (The condition is that no ML file had to
1553 :     be recompiled and all ML files are found to be older that the heap
1554 :     file.)
1555 :    
1556 :     To make this work smoothly, I also hacked the runtime system as
1557 :     well as SMLofNJ.SysInfo to get access to the heap image suffix
1558 :     (.sparc-solaris, ...) that is currently being used.
1559 :    
1560 :     Moreover, the signature of CM.mk_standalone has changed. See the
1561 :     CM manual.
1562 :    
1563 :     3. ml-makedepend accepts additional options -n, -a, and -o. (See the
1564 :     CM manual for details.)
1565 :    
1566 :     4. More CM manual updates:
1567 :     - all of the above has been documented.
1568 :     - there is now a section describing the (CM-related) command line
1569 :     arguments that are accepted by the "sml" command
1570 :    
1571 :     ----------------------------------------------------------------------
1572 :     Name: Matthias Blume
1573 : blume 691 Date: 2000/07/25 16:20:00 JST
1574 :     Tag: blume-20000725-makedepend
1575 :     Description:
1576 :    
1577 :     Added a script called ml-makedepend. This can be used in makefiles
1578 :     for Unix' make in a way very similar to the "makedepend" command for
1579 :     C.
1580 :    
1581 :     The script internally uses function CM.sources.
1582 :    
1583 :     Synopsis:
1584 :    
1585 :     ml-makedepend [-f makefile] cmfile targetname
1586 :    
1587 :     The default for the makefile is "makefile" (or "Makefile" should
1588 :     "makefile" not exist).
1589 :    
1590 :     ml-makedepend adds a cmfile/targetname-specific section to this
1591 :     makefile (after removing the previous version of this section). The
1592 :     section contains a single dependency specification with targetname on
1593 :     the LHS (targetname is an arbitrary name), and a list of files derived
1594 :     from the cmfile on the RHS. Some of the files on the RHS are
1595 :     ARCH/OPSYS-specific. Therefore, ml-makedepend inserts references to
1596 :     "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
1597 :     path names. The makefile writer is responsible for making sure that
1598 :     these variables have correct at the time "make" is invoked.
1599 :    
1600 :     ----------------------------------------------------------------------
1601 :     Name: Matthias Blume
1602 : blume 690 Date: 2000/07/22 23:30:00 JST
1603 :     Tag: blume-20000722-urlupdate
1604 :     Description:
1605 :    
1606 :     Changed BOOT and config/srcarchiveurl to point to BL server:
1607 :    
1608 :     ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
1609 :    
1610 :     ----------------------------------------------------------------------
1611 :     Name: Matthias Blume
1612 : blume 686 Date: 2000/07/18 18:00:00 JST
1613 :     Tag: blume-20000718-Version_110_29
1614 :     Description:
1615 :    
1616 :     1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
1617 :    
1618 :     2. Updated config/version to 110.29
1619 :    
1620 :     3. Updated config/srcarchiveurl
1621 :    
1622 :     3. New boot files!
1623 :     ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
1624 :    
1625 :     ----------------------------------------------------------------------
1626 :     Name: Matthias Blume
1627 : blume 684 Date: 2000/07/11 13:58:00 JST
1628 :     Tag: blume-20000711-doctypo
1629 :     Description:
1630 :    
1631 :     Fixed a few typos in CM manual.
1632 :    
1633 :     ----------------------------------------------------------------------
1634 : leunga 683 Name: Allen Leung
1635 :     Date: 2000/06/15 00:38:00
1636 :     Tag: leunga-20000704-sparc-x86
1637 :    
1638 :     1. x86 peephole improvement sp += k; sp -= k => nop [from John]
1639 :     2. fix to x86 RET bug [found by Dan Grossman]
1640 :     3. sparc assembly bug fix for ticc instructions [found by Fermin]
1641 :    
1642 :     Affects c-- and moby only
1643 :    
1644 :     ----------------------------------------------------------------------
1645 : blume 680 Name: Matthias Blume
1646 : blume 682 Date: 2000/07/04 15:26:00
1647 :     Tag: blume-20000704-trigger
1648 :     Description:
1649 :    
1650 :     1. Improvements to CM manual.
1651 :     2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
1652 :     of getting a back-trace. The function, when called, raises an
1653 :     internal exception which explicitly carries the full back-trace history,
1654 :     so it is unaffected by any intervening handle-raise pairs ("trivial"
1655 :     or not). The interactive loop will print that history once it arrives
1656 :     at top level.
1657 :     Short of having all exceptions implicitly carry the full history, the
1658 :     recommended way of using this facility is:
1659 :     - compile your program with instrumentation "on"
1660 :     - run it, when it raises an exception, look at the history
1661 :     - if the history is "cut off" because of some handler, go and modify
1662 :     your program so that it explicitly calls BTrace.trigger
1663 :     - recompile (still instrumented), and rerun; look at the full history
1664 :    
1665 :     ----------------------------------------------------------------------
1666 :     Name: Matthias Blume
1667 :     Date: 2000/07/03 15:36:00 JST
1668 : blume 680 Tag: blume-20000702-manual
1669 :     Description:
1670 :    
1671 :     Small corrections and updates to CM manual.
1672 :    
1673 :     ----------------------------------------------------------------------
1674 : blume 682 Name: Matthias Blume
1675 : blume 679 Date: 2000/06/29 16:04:00 JST
1676 :     Tag: blume-20000629-yacctool
1677 :     Description:
1678 :    
1679 :     Changes:
1680 :    
1681 :     1. Class "mlyacc" now takes separate arguments to pass options to
1682 :     generated .sml- and .sig-files independently.
1683 :     2. Corresponding CM manual updates.
1684 :     3. BTrace module now also reports call sites. (However, for loop clusters
1685 :     it only shows from where the cluster was entered.) There are associated
1686 :     modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
1687 :    
1688 :     ----------------------------------------------------------------------
1689 : blume 675 Name: Matthias Blume
1690 : blume 678 Date: 2000/06/27 16:51:00 JST
1691 :     Tag: blume-20000627-noweb
1692 :     Description:
1693 :    
1694 :     Changes:
1695 :    
1696 :     1. Implemented "subdir" and "witness" options for noweb tool.
1697 :     This caused some slight internal changes in CM's tool implementation.
1698 :     2. Fixed bug in "tool plugin" mechanism. This is essentially cleaning
1699 :     some remaining issues from earlier path anchor changes.
1700 :     3. Updated CM manual accordingly.
1701 :    
1702 :     4. Changed implementation of back-tracing so that I now consider it
1703 :     ready for prime-time.
1704 :    
1705 :     In particular, you don't have to explicitly trigger the back-trace
1706 :     anymore. Instead, if you are running BTrace-instrumented code and
1707 :     there is an uncaught exception (regardless of whether or not it was
1708 :     raised in instrumented code), the top-level evalloop will print
1709 :     the back-trace.
1710 :    
1711 :     Features:
1712 :    
1713 :     - Instrumented and uninstrumented code work together seemlessly.
1714 :     (Of course, uninstrumented code is never mentioned in actual
1715 :     back-traces.)
1716 :    
1717 :     - Asymptotic time- and space-complexity of instrumented code is
1718 :     equal to that of uninstrumented code. (This means that
1719 :     tail-recursion is preserved by the instrumentation phase.)
1720 :    
1721 :     - Modules whose code has been instrumented in different sessions
1722 :     work together without problem.
1723 :    
1724 :     - There is no penalty whatsoever on uninstrumented code.
1725 :    
1726 :     - There is no penalty on "raise" expressions, even in
1727 :     instrumented code.
1728 :    
1729 :     A potential bug (or perhaps it is a feature, too):
1730 :    
1731 :     A back-trace reaches no further than the outermost instrumented
1732 :     non-trivial "raise". Here, a "trivial" raise is one that is the
1733 :     sole RHS of a "handle" rule. Thus, back-traces reach trough
1734 :    
1735 :     <exp> handle e => raise e
1736 :    
1737 :     and even
1738 :    
1739 :     <exp> handle Foo => raise Bar
1740 :    
1741 :     and, of course, through
1742 :    
1743 :     <exp> handle Foo => ...
1744 :    
1745 :     if the exception was not Foo.
1746 :    
1747 :     Back-traces always reach right through any un-instrumented code
1748 :     including any of its "handle" expressions, trivial or not.
1749 :    
1750 :     To try this out, do the following:
1751 :    
1752 :     - Erase all existing binfiles for your program.
1753 :     (You may keep binfiles for those modules where you think you
1754 :     definitely don't need back-tracing.)
1755 :     - Turn on back-trace instrumentation:
1756 :     SMLofNJ.Internals.BTrace.mode (SOME true);
1757 :     - Recompile your program. (I.e., run "CM.make" or "use".)
1758 :     - You may now turn instrumentation off again (if you want):
1759 :     SMLofNJ.Internals.BTrace.mode (SOME false);
1760 :     - Run your program as usual. If it raises an exception that
1761 :     reaches the interactive toplevel, then a back-trace will
1762 :     automatically be printed. After that, the toplevel loop
1763 :     will print the exception history as usual.
1764 :    
1765 :     ----------------------------------------------------------------------
1766 :     Name: Matthias Blume
1767 : blume 677 Date: 2000/06/26 09:56:46 JST
1768 :     Tag: blume-20000626-setup
1769 :     Description:
1770 :    
1771 :     CM: - setup-parameter to "sml" added; this can be used to run arbitrary
1772 :     ML code before and after compiling a file (e.g., to set compiler
1773 :     flags)
1774 :    
1775 :     Compiler: - improved btrace API (in core.sml, internals.{sig,sml})
1776 :     - associated changes to btrace.sml (BTrace instrumentation pass)
1777 :     - cleaner implementation of btimp.sml (BTrace tracing and report
1778 :     module)
1779 :    
1780 :     CM manual: * new path encoding documented
1781 :     * description of setup-parameter to "sml" added
1782 :    
1783 :     The biggest user-visible change to back-tracing is that it is no
1784 :     longer necessary to compile all traced modules within the same
1785 :     session. (This was a real limitation.)
1786 :    
1787 :     ----------------------------------------------------------------------
1788 :     Name: Matthias Blume
1789 : blume 676 Date: 2000/06/24 12:40:00 JST
1790 :     Tag: blume-20000624-startup
1791 :     Description:
1792 :    
1793 :     Fixes startup slowdown problem. (I was calling SrcPath.sync a _tad_
1794 :     bit too often -- to put it mildly. :)
1795 :    
1796 :     ----------------------------------------------------------------------
1797 :     Name: Matthias Blume
1798 : blume 675 Date: 2000/06/23 18:20:00 JST
1799 :     Tag: blume-20000623-btrace
1800 :     Description:
1801 :    
1802 :     This updates adds a backtrace facility to aid programmers in debugging
1803 :     their programs. This involves the following changes:
1804 :    
1805 :     1. Module system/smlnj/init/core.sml (structure _Core) now has hooks for
1806 :     keeping track of the current call stack. When programs are compiled
1807 :     in a special mode, the compiler will insert calls to these hooks
1808 :     into the user program.
1809 :     "Hook" means that it is possible for different implementations of
1810 :     back-tracing to register themselves (at different times).
1811 :    
1812 :     2. compiler/MiscUtil/profile/btrace.sml implements the annotation phase
1813 :     as an Absyn.dec->Absyn.dec rewrite. Normally this phase is turned off.
1814 :     It can be turned on using this call:
1815 :     SMLofNJ.Internals.BTrace.mode (SOME true);
1816 :     Turning it off again:
1817 :     SMLofNJ.Internals.BTrace.mode (SOME false);
1818 :     Querying the current status:
1819 :     SMLofNJ.Internals.BTrace.mode NONE;
1820 :     Annotated programs are about twice as big as normal ones, and they
1821 :     run a factor of 2 to 4 slower with a dummy back-trace plugin (one
1822 :     where all hooks do nothing). The slowdown with a plugin that is
1823 :     actually useful (such as the one supplied by default) is even greater,
1824 :     but in the case of the default plugin it is still only an constant
1825 :     factor (amortized).
1826 :    
1827 :     3. system/Basis/Implementation/NJ/internals.{sig,sml} have been augmented
1828 :     with a sub-structure BTrace for controlling back-tracing. In particular,
1829 :     the above-mentioned function "mode" controls whether the annotation
1830 :     phase is invoked by the compiler. Another important function is
1831 :     "trigger": when called it aborts the current execution and causes
1832 :     the top-level loop to print a full back-trace.
1833 :    
1834 :     4. compiler/MiscUtil/profile/btimp.sml is the current default plugin
1835 :     for back-tracing. It keeps track of the dynamic call stack and in
1836 :     addition to that it keeps a partial history at each "level" of that
1837 :     stack. For example, if a tail-calls b, b tail-calls c, and c tail-calls
1838 :     d and b (at separate times, dynamically), then the report will show:
1839 :    
1840 :     GOTO d
1841 :     /c
1842 :     GOTO \b
1843 :     CALL a
1844 :    
1845 :     This shows that there was an initial non-tail call of a, then a
1846 :     tail-call to b or c, looping behavior in a cluster of functions that
1847 :     consist of b and c, and then a goto from that cluster (i.e., either from
1848 :     b or from c) to d.
1849 :    
1850 :     Note that (depending on the user program) the amount of information
1851 :     that the back-trace module has to keep track of at each level is bounded
1852 :     by a constant. Thus, the whole implementation has the same asymptotical
1853 :     complexity as the original program (both in space and in time).
1854 :    
1855 :     5. compiler/TopLevel/interact/evalloop.sml has been modified to
1856 :     handle the special exception SMLofNJ.Internals.BTrace.BTrace
1857 :     which is raised by the "trigger" function mentioned above.
1858 :    
1859 :     Notes on usage:
1860 :    
1861 :     - Annotated code works well together with unannotated code:
1862 :     Unannotated calls simply do not show up at all in the backtrace.
1863 :    
1864 :     - It is not a good idea to let modules that were annotated during
1865 :     different sessions run at the same time. This is because the compiler
1866 :     chooses small integers to identify individual functions, and there
1867 :     will be clashes if different modules were compiled in separate sessions.
1868 :     (Nothing will crash, and you will even be told about the clashes, but
1869 :     back-trace information will in general not be useful.)
1870 :    
1871 :     - Back-tracing can be confused by callcc and capture.
1872 :    
1873 :     - The only way of getting a back-trace right now is to explicitly
1874 :     invoke the "trigger" function from your user program. Eventually, we
1875 :     should make every exception carry back-trace information (if
1876 :     available). But since this creates more overhead at "raise"-time
1877 :     (similar to the current exnHistory overhead), I have not yet
1878 :     implemented this. (The implementation will be rather easy.) With
1879 :     exceptions carrying back-trace information, this facility will be even
1880 :     more useful because users don't need to modify their programs...
1881 :    
1882 :     - While it is possible to compile the compiler with back-trace
1883 :     annotations turned on (I did it to get some confidence in
1884 :     correctness), you must make absolutely sure that core.sml and
1885 :     btimp.sml are compiled WITHOUT annotation! (core.sml cannot actually
1886 :     be compiled with annotation because there is no core access yet, but
1887 :     if you compile btimp.sml with annotation, then the system will go into
1888 :     an infinite recursion and crash.)
1889 :     Since CM currently does not know about BTrace, the only way to turn
1890 :     annotations on and off for different modules of the compiler is to
1891 :     interrupt CMB.make, change the settings, and re-invoke it. Of course,
1892 :     this is awkward and clumsy.
1893 :    
1894 :     Sample sessions:
1895 :    
1896 :     Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
1897 :     - SMLofNJ.Internals.BTrace.mode (SOME true);
1898 :     [autoloading]
1899 :     [autoloading done]
1900 :     val it = false : bool
1901 :     - structure X = struct
1902 :     - fun main n = let
1903 :     - fun a (x, 0) = d x
1904 :     - | a (x, n) = b (x, n - 1)
1905 :     - and b (x, n) = c (x, n)
1906 :     - and c (x, n) = a (x, n)
1907 :     - and d x = e (x, 3)
1908 :     - and e (x, 0) = f x
1909 :     - | e (x, n) = e (x, n - 1)
1910 :     - and f 0 = SMLofNJ.Internals.BTrace.trigger ()
1911 :     - | f n = n * g (n - 1)
1912 :     - and g n = a (n, 3)
1913 :     - in
1914 :     - f n
1915 :     - end
1916 :     - end;
1917 :     structure X : sig val main : int -> int end
1918 :     - X.main 3;
1919 :     *** BACK-TRACE ***
1920 :     GOTO stdIn:4.2-13.20: X.main[2].f
1921 :     GOTO-( stdIn:4.2-13.20: X.main[2].e
1922 :     GOTO stdIn:4.2-13.20: X.main[2].d
1923 :     / stdIn:4.2-13.20: X.main[2].a
1924 :     | stdIn:4.2-13.20: X.main[2].b
1925 :     GOTO-\ stdIn:4.2-13.20: X.main[2].c
1926 :     CALL stdIn:4.2-13.20: X.main[2].g
1927 :     GOTO stdIn:4.2-13.20: X.main[2].f
1928 :     GOTO-( stdIn:4.2-13.20: X.main[2].e
1929 :     GOTO stdIn:4.2-13.20: X.main[2].d
1930 :     / stdIn:4.2-13.20: X.main[2].a
1931 :     | stdIn:4.2-13.20: X.main[2].b
1932 :     GOTO-\ stdIn:4.2-13.20: X.main[2].c
1933 :     CALL stdIn:4.2-13.20: X.main[2].g
1934 :     GOTO stdIn:4.2-13.20: X.main[2].f
1935 :     GOTO-( stdIn:4.2-13.20: X.main[2].e
1936 :     GOTO stdIn:4.2-13.20: X.main[2].d
1937 :     / stdIn:4.2-13.20: X.main[2].a
1938 :     | stdIn:4.2-13.20: X.main[2].b
1939 :     GOTO-\ stdIn:4.2-13.20: X.main[2].c
1940 :     CALL stdIn:4.2-13.20: X.main[2].g
1941 :     GOTO stdIn:4.2-13.20: X.main[2].f
1942 :     CALL stdIn:2.15-17.4: X.main[2]
1943 :     -
1944 :    
1945 :     (Note that because of a FLINt bug the above code currently does not
1946 :     compile without BTrace turned on.)
1947 :    
1948 :     Here is another example, using my modified Tiger compiler:
1949 :    
1950 :     Standard ML of New Jersey v110.28.1 [FLINT v1.5], June 5, 2000
1951 :     - SMLofNJ.Internals.BTrace.mode (SOME true);
1952 :     [autoloading]
1953 :     [autoloading done]
1954 :     val it = false : bool
1955 :     - CM.make "sources.cm";
1956 :     [autoloading]
1957 :     ...
1958 :     [autoloading done]
1959 :     [scanning sources.cm]
1960 :     [parsing (sources.cm):parse.sml]
1961 :     [creating directory CM/SKEL ...]
1962 :     [parsing (sources.cm):tiger.lex.sml]
1963 :     ...
1964 :     [wrote CM/sparc-unix/semant.sml]
1965 :     [compiling (sources.cm):main.sml]
1966 :     [wrote CM/sparc-unix/main.sml]
1967 :     [New bindings added.]
1968 :     val it = true : bool
1969 :     - Main.compile ("../testcases/merge.tig", "foo.out");
1970 :     *** BACK-TRACE ***
1971 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trvar
1972 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1973 :     CALL lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
1974 :     GOTO lib/semant.sml:289.3-295.22: SemantFun[2].transExp.trexp.check[2]
1975 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1976 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1977 :     CALL lib/semant.sml:488.3-505.6: SemantFun[2].transDec.trdec[2].transBody[2]
1978 :     / lib/semant.sml:411.65-543.8: SemantFun[2].transDec
1979 :     CALL-\ lib/semant.sml:413.2-540.9: SemantFun[2].transDec.trdec[2]
1980 :     CALL lib/semant.sml:99.2-396.21: SemantFun[2].transExp.trexp
1981 :     CALL lib/semant.sml:8.52-558.4: SemantFun[2].transProg[2]
1982 :     CALL main.sml:1.18-118.4: Main.compile[2]
1983 :     -
1984 :    
1985 :     ----------------------------------------------------------------------
1986 : blume 673 Name: Matthias Blumen
1987 :     Date: 2000/06/21 18:00:00 JST
1988 :     Tag: blume-20000621-manual
1989 :     Description:
1990 :    
1991 :     CM manual update: Path environments documented.
1992 :    
1993 :     ----------------------------------------------------------------------
1994 : blume 666 Name: Matthias Blume
1995 : blume 672 Date: 2000/06/19 13:40:00
1996 :     Tag: blume-20000619-manual
1997 :     Description:
1998 :    
1999 :     CM manual and system/README update. This only covers the fact that
2000 :     there are no more implicit anchors. (Path environments and the "bind"
2001 :     option to "cm" have yet to be documented.)
2002 :    
2003 :     ----------------------------------------------------------------------
2004 :     Name: Matthias Blume
2005 : blume 671 Date: 2000/06/19 11:05:00 JST
2006 :     Tag: blume-20000619-chdir-bugfix
2007 :     Description:
2008 :    
2009 :     Fixed a bug in new SrcPath module that sometimes led to a bad chDir call.
2010 :    
2011 :     ----------------------------------------------------------------------
2012 :     Name: Matthias Blume
2013 : blume 670 Date: 2000/06/18 22:00:10 JST
2014 :     Tag: blume-20000618-implicit-anchors-really-gone
2015 :     Description:
2016 :    
2017 :     I updates the previous HISTORY entry where I forgot to mention that
2018 :     implicit anchors are no longer with us.
2019 :    
2020 :     The current update also gets rid of the (now useless) controller
2021 :     CM.Control.implicit_anchors.
2022 :    
2023 :     ----------------------------------------------------------------------
2024 :     Name: Matthias Blume
2025 : blume 666 Date: 2000/06/16 17:30:00 JST
2026 :     Tag: blume-20000616-anchorenv
2027 :     Description:
2028 :    
2029 :     This patch implements the long anticipated (just kidding :) "anchor
2030 :     environment" mechanism. In the course of doing this, I also
2031 :     re-implemented CM's internal "SrcPath" module from scratch. The new
2032 :     one should be more robust in certain boundary cases. In any case, it
2033 :     is a lot cleaner than its predecessor (IMHO).
2034 :    
2035 :     This time, although there is yet another boot file format change, I
2036 :     kept the unpickler backward-compatible. As a result, no new bootfiles
2037 :     are necessary and bootstrapping is straightforward. (You cannot read
2038 :     new bootfiles into an old system, but the other way around is no
2039 :     problem.)
2040 :    
2041 :     Visible changes:
2042 :    
2043 : blume 670 ** 0. Implicit path anchors (without the leading $-symbol) are no
2044 :     longer recognized at all. This means that such path names are not
2045 :     illegal either. For example, the name basis.cm simply refers to a
2046 :     local file called "basis.cm" (i.e, the name is an ordinary path
2047 :     relative to .cm-files directory). Or, to put it differently, only
2048 :     names that start with $ are anchored paths.
2049 : blume 666
2050 : blume 670 ** 1. The $<singlearc> abbreviation for $/<singlearc> has finally
2051 :     vanished.
2052 :    
2053 :     John (Reppy) had critizised this as soon as I originally proposed and
2054 : blume 666 implemented it, but at that time I did not really deeply believe
2055 :     him. :) Now I came full-circle because I need the $<singlearc> syntax
2056 :     in another place where it cannot be seen as an abbreviation for
2057 :     $/<singlearc>. To avoid the confusion, $<singlearc> now means what it
2058 :     seems to mean (i.e., it "expands" into the corresponding anchor
2059 :     value).
2060 :    
2061 :     However, when paths are used as members in CM description files, it
2062 :     continues to be true that there must be at least another arc after the
2063 :     anchor. This is now enforced separately during semantic analysis
2064 : blume 670 (i.e., from a lexical/syntactical point of view, the notation is ok.)
2065 : blume 666
2066 :     ** 2. The "cm" class now accepts an option "bind". The option's value
2067 :     is a sub-option list of precisely two items -- one labeled "anchor"
2068 :     and the other one labeled "value". As you might expect, "anchor" is
2069 :     used to specify an anchor name to be bound, and "value" specifies what
2070 :     the anchor is being bound to.
2071 :    
2072 :     The value must be a directory name and can be given in either standard
2073 :     syntax (including the possibility that it is itself an anchored path)
2074 :     or native syntax.
2075 :    
2076 :     Examples:
2077 :    
2078 :     foo.cm (bind:(anchor:bar value:$mystuff/bar))
2079 :     lib.cm (bind:(anchor:a value:"H:\\x\\y\\z")) (* only works under windows *)
2080 :    
2081 :     and so on.
2082 :    
2083 :     The meaning of this is that the .cm-file will be processed with an
2084 :     augmented anchor environment where the given anchor(s) is/are bound to
2085 :     the given values(s).
2086 :    
2087 :     The rationale for having this feature is this: Suppose you are trying
2088 :     to use two different (already stable) libraries a.cm and b.cm (that
2089 :     you perhaps didn't write yourself). Further, suppose each of these
2090 :     two libraries internally uses its own auxiliary library $aux/lib.cm.
2091 :     Normally you would now have a problem because the anchor "lib" can not
2092 :     be bound to more than one value globally. Therefore, the project that
2093 :     uses both a.cm and b.cm must locally redirect the anchor to some other
2094 :     place:
2095 :    
2096 :     a.cm (bind:(anchor:lib value:/usr/lib/smlnj/a-stuff))
2097 :     b.cm (bind:(anchor:lib value:/usr/lib/smlnj/b-stuff))
2098 :    
2099 :     This hard-wires $lib/aux.cm to /usr/lib/smlnj/a-stuff/aux.cm or
2100 :     /usr/lib/smlnj/b-stuff/aux.cm, respectively.
2101 :    
2102 :     Hard-wiring path names is a bit inflexible (and CM will verbosely warn
2103 :     you when you do so at the time of CM.stabilize). Therefore, you can
2104 :     also use an anchored path as the value:
2105 :    
2106 :     a.cm (bind:(anchor:lib value:$a-lib))
2107 :     b.cm (bind:(anchor:lib value:$b-lib))
2108 :    
2109 :     Now you can globally configure (using the usual CM.Anchor.anchor or
2110 :     pathconfig machinery) bindings for "a-lib" and "b-lib". Since "lib"
2111 :     itself is always locally bound, setting it globally is no longer
2112 :     meaningful or necessary (but it does not hurt either). In fact, "lib"
2113 :     can still be used as a global anchor for separate purposes. As a
2114 :     matter of fact, one can locally define "lib" in terms of a global
2115 :     "lib":
2116 :    
2117 :     a.cm (bind:(anchor:lib value:$lib/a))
2118 :     b.cm (bind:(anchor:lib value:$lib/b))
2119 :    
2120 :     ** 3: The encoding of path names has changed. This affects the way
2121 :     path names are shown in CM's progress report and also the internal
2122 :     protocol encoding used for parallel make.
2123 :    
2124 :     The encoding now uses one or more ':'-separated segments. Each
2125 :     segments corresponds to a file that has been specified relative to the
2126 :     file given by its preceding segment. The first segment is either
2127 :     relative to the CWD, absolute, or anchored. Each segment itself is
2128 :     basically a Unix pathname; all segments but the first are relative.
2129 :    
2130 :     Example:
2131 :    
2132 :     $foo/bar/baz.cm:a/b/c.sml
2133 :    
2134 :     This path denotes the file bar/a/b/c.sml relative to the directory
2135 :     denoted by anchor "foo". Notice that the encoding also includes
2136 :     baz.cm which is the .cm-file that listed a/b/c.sml. As usual, such
2137 :     paths are resolved relative to the .cm-files directory, so baz.cm must
2138 :     be ignored to get the "real" pathname.
2139 :    
2140 :     To make this fact more obvious, CM puts the names of such "virtual
2141 :     arcs" into parentheses when they appear in progress reports. (No
2142 :     parentheses will appear in the internal protocol encoding.) Thus,
2143 :     what you really see is:
2144 :    
2145 :     $foo/bar/(baz.cm):a/b/c.sml
2146 :    
2147 :     I find this notation to be much more informative than before.
2148 :    
2149 :     Another new feature of the encoding is that special characters
2150 :     including parentheses, colons, (back)slashes, and white space are
2151 :     written as \ddd (where ddd is the decimal encoding of the character).
2152 :    
2153 : blume 670 *** The CM manual still needs to be updated.
2154 :    
2155 : blume 666 ----------------------------------------------------------------------
2156 : leunga 660 Name: Allen Leung
2157 :     Date: 2000/06/15 00:38:00
2158 :     Tag: leunga-20000615-x86-peephole
2159 :    
2160 :     x86 Peephole fix by Fermin. Affects c-- and moby only.
2161 :    
2162 :     ----------------------------------------------------------------------
2163 : blume 658 Name: Matthias Blume
2164 :     Date: 2000/06/12 11:40:00
2165 :     Tag: blume-20000612-parmakefix
2166 :     Description:
2167 :    
2168 :     More cleanup after changing the file naming scheme: This time I
2169 :     repaired the parallel make mechanism for CMB.make which I broke earlier.
2170 :    
2171 :     ----------------------------------------------------------------------
2172 : leunga 657 Name: Allen Leung
2173 :     Date: 2000/06/09 01:25:00
2174 :     Tag: leunga-20000609-various
2175 :    
2176 :     None of these things should affect normal SML/NJ operations
2177 :    
2178 :     1. Peephole improvements provided by Fermin (c--)
2179 :     2. New annotation DEFUSE for adding extra dependence (moby)
2180 :     3. New X86 LOCK instructions (moby)
2181 :     4. New machine description language for reservation tables (scheduling)
2182 :     5. Fixes to various optimization/analysis modules (branch chaining, dominator
2183 :     trees etc.)
2184 :     6. I've changed the CM files so that they can work with versions
2185 :     110.0.6, 110.25 and 110.28
2186 :    
2187 :     ----------------------------------------------------------------------
2188 : blume 652 Name: Matthias Blume
2189 : blume 656 Date: 2000/06/09 12:40:00
2190 :     Tag: blume-20000609-log
2191 :     Description:
2192 :    
2193 :     - Removed all(?) remaining RCS Log entries from sources.
2194 :    
2195 :     - Fixed bug in ml-yacc and ml-lex sources (use explicit anchors for
2196 :     anchored paths).
2197 :    
2198 :     ----------------------------------------------------------------------
2199 :     Name: Matthias Blume
2200 : blume 653 Date: 2000/06/07 17:00:00 JST
2201 :     Tag: blume-20000607-no-implicit-anchors
2202 :     Description:
2203 :    
2204 :     1. This update changes the default setting for
2205 :     CM.Control.implicit_anchors from true to false. This means that
2206 :     implicit anchors are no longer permitted by default. I also tried to
2207 :     make sure that nothing else still relies on implicit anchors.
2208 :     (This is the next step on the schedule towards a CM that does not even
2209 :     have the notion of implicit anchors anymore.)
2210 :    
2211 :     2. More CM manual updates.
2212 :    
2213 :     3. I managed to track down and fix the pickling bug I mentioned last
2214 :     time. Because of the previously existing workaround, this entails no
2215 :     immediate practical changes.
2216 :    
2217 :     ----------------------------------------------------------------------
2218 :     Name: Matthias Blume
2219 : blume 652 Date: 2000/06/06 11:15:00 JST
2220 :     Tag: blume-20000606-lazierpickle
2221 :     Description:
2222 :    
2223 :     !!!! NEW BOOT FILES !!!!
2224 :    
2225 :     * The main purpose of this update is to make library pickles lazier in
2226 :     order to reduce the initial space penalty for autoloading a library.
2227 :     As a result, it is now possible to have $smlnj/compiler.cm
2228 :     pre-registered. This should take care of the many complaints or
2229 :     inquiries about missing structure Compiler. This required changes to
2230 :     CM's internal data structures and small tweaks to some algorithms.
2231 :    
2232 :     As a neat additional effect, it is no longer necessary (for the sake
2233 :     of lean heap image files) to distinguish between a "minimal" CM and a
2234 :     "full" CM. Now, there is only one CM (i.e., the "full" version:
2235 :     $smlnj/cm.cm aka $smlnj/cm/full.cm), and it is always available at the
2236 :     interactive top level. ($smlnj/cm/minimal.cm is gone.)
2237 :    
2238 :     To make the life of compiler-hackers easier, "makeml" now also
2239 :     pre-registers $smlnj/cmb.cm (aka $smlnj/cmb/current.cm). In other
2240 :     words, after you bootstrap a new sml for the first time, you will not
2241 :     have to autoload $smlnj/cmb.cm again afterwards. (The first time
2242 :     around you will still have to do it, though.)
2243 :    
2244 :     * A second change consists of major updates to the CM manual. There
2245 :     are now several appendices with summary information and also a full
2246 :     specification of the CM description file syntax.
2247 :    
2248 :     * In directory src/system I added the script "allcross". This script
2249 :     invokes sml and cross-compiles the compiler for all supported
2250 :     architectures. (Useful when providing a new set of boot files.)
2251 :    
2252 :     * There seems to be a latent bug in my "lazy pickles" mechanism. I
2253 :     added a small tweak to pickle-util.sml to work around this problem,
2254 :     but it is not a proper fix yet. I will investigate further. (The
2255 :     effect of the bug was an inflation of library pickle size.)
2256 :    
2257 :     * Version number increased to 110.28.1 (to avoid compatibility problems).
2258 :    
2259 :     ----------------------------------------------------------------------
2260 : leunga 646 Name: Allen Leung
2261 : leunga 648 Date: 2000/05/25 17:28 EDT
2262 :     Tag: leunga-20000525-ra
2263 :     Description:
2264 :    
2265 :     Fixed a bug in freezing phase of the register allocator.
2266 :    
2267 :     ----------------------------------------------------------------------
2268 :     Name: Allen Leung
2269 : leunga 647 Date: 2000/05/15 22:53 EDT
2270 : leunga 646 Tag: leunga-20000515-alpha-x86-ra
2271 :     Description:
2272 :    
2273 :     1. Alpha
2274 :    
2275 :     Slight cleanup. Removed the instruction SGNXL
2276 :    
2277 :     2. X86
2278 :    
2279 :     Added the following instructions to the instruction set:
2280 :    
2281 :     ROLx, RORx,
2282 :     BTx, BTSx, BTLx, BTRx,
2283 :     XCHGx, and variants with the LOCK prefix
2284 :    
2285 :     3. Register Allocation
2286 :    
2287 :     The module ra-rewrite-with-renaming has been improved.
2288 :    
2289 : leunga 647 These have no effect on SML/NJ.
2290 :    
2291 : leunga 646 ----------------------------------------------------------------------
2292 : blume 642 Name: Matthias Blume
2293 : blume 645 Date: 2000/05/15 16:20:00 JST
2294 :     Tag: blume-20000515-lightrebuild
2295 :     Description:
2296 :    
2297 :     1. I added an alternative to "-rebuild" to "makeml". The difference is
2298 :     that prior to calling CMB.make' the CM-variable "LIGHT" will be
2299 :     defined. In effect, the command will not build any cross-compiler
2300 :     backends and therefore finish more quickly.
2301 :    
2302 :     The "fixpt" script also takes a "-light" switch to be able to use
2303 :     this new facility while compiling for a fixpoint.
2304 :    
2305 :     2. I replaced all mentions of anchored paths in group owner specifications
2306 :     with simple relative paths (usually starting with "..").
2307 :     The rationale is that a library's internal workings should not be
2308 :     compromised by the lack of some anchor. (An anchor is necessary
2309 :     for someone who wants to refer to the library by an anchored path,
2310 :     but it should not be necessary to build the same library in the first
2311 :     place.)
2312 :    
2313 :     3. I changed the way CM's tool mechanism determines the shell command
2314 :     string used for things like ml-yacc etc. so that it does not break
2315 :     when CM.Control.implicit_anchors is turned off.
2316 :    
2317 :     ----------------------------------------------------------------------
2318 :     Name: Matthias Blume
2319 : blume 644 Date: 2000/05/12 18:20:00 JST
2320 :     Tag: blume-20000512-ml-build
2321 :     Description:
2322 :    
2323 :     Fixed a bug in config/_ml-build that prevented ml-yacc and ml-lex from
2324 :     getting installed properly (by config/install.sh).
2325 :    
2326 :     ----------------------------------------------------------------------
2327 :     Name: Matthias Blume
2328 : blume 643 Date: 2000/05/12 17:30:00 JST
2329 :     Tag: blume-20000512-anchors
2330 :     Description:
2331 :    
2332 :     !!! NEW BOOT FILES !!!
2333 :    
2334 :     This change is in preparation of fading out support for "implicitly
2335 :     anchored path names". I went through all sources and used the
2336 :     explicit (and relatively new) $-notation. See system/README and the
2337 :     CM manual for more info on this.
2338 :    
2339 :     I also modified the anchoring scheme for some things such as "smlnj",
2340 :     "MLRISC", "cm", etc. to take advantage of the fact that explicit
2341 :     anchors are more expressive: anchor name and first arc do not have to
2342 :     coincide. This entails the following user-visible change:
2343 :    
2344 :     You have to write $smlnj/foo/bar instead of smlnj/foo/bar. In
2345 :     particular, when you fire up sml with a command-line argument, say,
2346 :     e.g.:
2347 :    
2348 :     sml '$smlnj/cmb.cm'
2349 :    
2350 :     At the ML toplevel prompt:
2351 :    
2352 :     CM.autoload "$smlnj/cmb.cm";
2353 :    
2354 :     There is also a new controller in CM.Control that can be used to turn
2355 :     off all remaining support for implicit anchors by saying:
2356 :    
2357 :     CM.autoload "$smlnj/
2358 :     #set CM.Control.implicit_anchors false;
2359 :    
2360 :     This causes CM to reject implicitly anchored paths. This is (for the
2361 :     time being) less permissive than the "final" version where there will
2362 :     be no more such implicit anchors and relative paths will be just that:
2363 :     relative.
2364 :    
2365 :     The next step (version after next version?) will be to make the
2366 :     default for CM.Control.implicit_anchors false. After the dust has
2367 :     settled, I can then produce the "final" version of this...
2368 :    
2369 :     Note: Since bootstrapping is a bit tricky, I provided new boot files.
2370 :    
2371 :     ----------------------------------------------------------------------
2372 :     Name: Matthias Blume
2373 : blume 642 Date: 2000/05/11 16:30:00 JST
2374 :     Tag: blume-20000511-sources
2375 :     Description:
2376 :    
2377 :     The main change is that I added function CM.sources as a generalized
2378 :     version of the earlier CM.makedepend. This entails the following
2379 :     additional changes:
2380 :    
2381 :     - CM.makedepend has been dropped.
2382 :    
2383 :     - CM manual has been updated.
2384 :    
2385 :     - TOOLS signature and API have been changed.
2386 :    
2387 :     ----------------------------------------------------------------------
2388 : leunga 640 Name: Allen Leung
2389 : leunga 641 Date: 2000/05/10 21:17 EDT
2390 :     Tag: leunga-20000510-moby-c--ssa
2391 :     Description:
2392 :    
2393 :     Various bug fixes and new features for C--, Moby and MLRISC optimizations.
2394 :     None of these affect SML/NJ.
2395 :    
2396 :     1. Register Allocation
2397 :    
2398 :     a. A new ra spilling module (ra/ra-spill-with-renaming) is implemented.
2399 :     This module tries to remove local (i.e. basic block level) redundancies
2400 :     during spilling.
2401 :    
2402 :     b. A new framework for performing region based register allocation.
2403 :     Not yet entirely functional.
2404 :    
2405 :     2. X86
2406 :    
2407 :     a. DefUse for POP was missing the stack pointer [found by Lal]
2408 :     b. Reload for CALL was incorrect in X86Spill [found by John]
2409 :     c. Various fixes in X86Spill so that it can be used correctly for
2410 :     the new spilling module.
2411 :    
2412 :     3. SSA/IR
2413 :    
2414 :     a. New module ir/dj-dataflow.sml implements elimination based
2415 :     data flow analysis.
2416 :    
2417 :     4. MLRiscGen
2418 :    
2419 :     a. Fix for gc type annotation
2420 :    
2421 :     5. MDGen
2422 :    
2423 :     Various fixes for machine description -> ml code translation. For ssa
2424 :     only.
2425 :    
2426 :     ----------------------------------------------------------------------
2427 :     Name: Allen Leung
2428 : leunga 640 Date: 2000/05/08 22:17 EDT
2429 :     Tag: leunga-20000508-labexp
2430 :     Description:
2431 :    
2432 :     Fermin has found a few assembly problems with constant expressions
2433 :     generated in LabelExp. Mostly, the problems involve extra parentheses,
2434 :     which choke on dumb assemblers. This is his fix.
2435 :    
2436 :     ----------------------------------------------------------------------
2437 : dbm 635 Name: Dave MacQueen
2438 :     Date: 2000/04/09 14:00 EDT
2439 :     Tag: dbm-20000502-Version_110_28
2440 :     Description:
2441 :    
2442 :     1. Updated src/compiler/TopLevel/main/version.sml to version 110.28
2443 :    
2444 :     2. Updated config/version to 110.28
2445 :    
2446 :     3. Updated config/srcarchiveurl
2447 :    
2448 :     3. New boot files!
2449 :     ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.28/
2450 :    
2451 :     ----------------------------------------------------------------------
2452 : blume 634 Name: Matthias Blume
2453 :     Date: 2000/05/01 19:05:00 JST
2454 :     Tag: blume-20000501-noweb
2455 :     Description:
2456 :    
2457 :     A new noweb tool has been added. The existing system is entirely
2458 :     unaffected by this, but some CM users have asked for renewed noweb
2459 :     support. Everything is documented in the CM manual.
2460 :    
2461 :     New (plugin) libraries:
2462 :    
2463 :     noweb-tool.cm
2464 :     nw-ext.cm
2465 :    
2466 :     ----------------------------------------------------------------------
2467 : dbm 633 Name: Dave MacQueen
2468 :     Date: 2000/04/30 12:40PM EDT
2469 :     Tag: dbm-20000430-bug_fixes
2470 :     Description:
2471 :    
2472 :     1. Fix for bug 1498
2473 :     smlnj/src/system/Basis/Implementation/Unsafe/object.sig
2474 :     smlnj/src/system/Basis/Implementation/Unsafe/object.sml
2475 :     added toRealArray function
2476 :     smlnj/src/compiler/MiscUtil/print/ppobj.sml
2477 :     added check for tag Obj.RealArray to array printing case in ppObj
2478 :    
2479 :     2. Fix for bug 1510
2480 :     smlnj/src/compiler/Semant/types/typesutil.sml
2481 :     fixed definition of dummyargs (used by equalTycon) so that
2482 :     dummy args are distinct types
2483 :    
2484 :     ----------------------------------------------------------------------
2485 : blume 629 Name: Matthias Blume
2486 : blume 632 Date: 2000/04/30 01:00:00 JST
2487 :     Tag: blume-20000430-versions
2488 :     Description:
2489 :    
2490 :     1. CM version numbering added. This is an implementation of Lal's
2491 :     proposal for adding version numbers and version checking to .cm
2492 :     files. Lal said that his proposal was just that -- a proposal.
2493 :     For the time being I went ahead and implemented it so that people
2494 :     can comment on it. Everything is completely backward-compatible
2495 :     (except for the stable library format, i.e., new bootfiles!).
2496 :    
2497 :     As usual, see the CM manual for details.
2498 :    
2499 :     2. An alternative syntax for anchored paths has been implemented.
2500 :     Dave has recently voiced the same concerns that I had when I did
2501 :     this, so there should be some support. My take is that eventually
2502 :     I will let support for the current syntax (where anchors are
2503 :     "implicit") fade out in favor of the new, explicit syntax.
2504 :     In order to be backward-compatible, both old and new syntax are
2505 :     currently supported.
2506 :    
2507 :     Again, see the CM manual for details.
2508 :    
2509 :     3. Parallel make is trying to be slightly smarter: When the master
2510 :     process finds a "bottleneck", i.e., when there is only one
2511 :     compilation unit that can be compiled and everybody else is
2512 :     waiting on it, then it will simply compile it directly instead
2513 :     of clumsily telling one of the slaves to do it.
2514 :    
2515 :     4. Support for "unsharing" added. This is necessary in order to be
2516 :     able to have two different versions of the same library running
2517 :     at the same time (e.g., for trying out a new MLRISC while still
2518 :     having the old MLRISC linked into the current compiler, etc.)
2519 :     See the CM manual.
2520 :    
2521 :     5. Simple "makedepend" functionality added for generating Makefile
2522 :     dependency information. (This is rather crude at the moment.
2523 :     Expect some changes here in the future.)
2524 :    
2525 :     6. ".fun" added as a recognized suffix for ML files. Also documented
2526 :     explicitly in the manual that the fallback behavior (unknown suffix
2527 :     -> ML file) is not an official feature!
2528 :    
2529 :     7. Small changes to the pickler for stable libraries.
2530 :    
2531 :     8. Several internal changes to CM (for cleanup/improvement).
2532 :    
2533 :    
2534 :     !!!! NEW BINFILES !!!!
2535 :    
2536 :     ----------------------------------------------------------------------
2537 :     Name: Matthias Blume
2538 : blume 631 Date: 2000/04/28 17:30:00 JST
2539 :     Tag: blume-20000428-pathconfig
2540 :     Description:
2541 :    
2542 :     1. I changed config/install.sh to remove duplicate entries from the
2543 :     lib/pathconfig file at the end. Moreover, the final version of
2544 :     lib/pathconfig is sorted alphabetically. The same (sorting) is done
2545 :     in src/system/installml.
2546 :    
2547 :     2. The config/install.sh script now consistently uses relative
2548 :     pathnames in lib/pathconfig whenever the anchor is in the lib
2549 :     directory. (So far this was true for the libraries that come
2550 :     pre-compiled and bundled as part of the bootfiles but not for
2551 :     libraries that are compiled by the script itself.)
2552 :    
2553 :     ----------------------------------------------------------------------
2554 :     Name: Matthias Blume
2555 : blume 629 Date: 2000/04/26 13:10:00 JST
2556 :     Tag: blume-20000426-fun_suffix
2557 :     Description:
2558 :    
2559 :     Added ".fun" as a recognized file name suffix (for ML code).
2560 :    
2561 :     ----------------------------------------------------------------------
2562 : leunga 628 Name: Allen Leung
2563 :     Date: 2000/04/25 17:00:00 EST
2564 :     Tag: leunga-20000425-alpha-ra
2565 :     Description:
2566 :    
2567 :     1. Alpha
2568 :    
2569 :     PSEUDOARITH was missing in AlphaRewrite. This causes an endless loop
2570 :     in C--.
2571 :    
2572 :     2. RA
2573 :    
2574 :     Added a flag "ra-dump-size" to print out the size of the flowgraph
2575 :     and the interference graph.
2576 :    
2577 :     ----------------------------------------------------------------------
2578 : dbm 627 Name: Dave MacQueen
2579 :     Date: 2000/04/25/
2580 :     Tag: dbm-20000425-mlyacc_doc_examples
2581 :     Description:
2582 :     Updated mlyacc.tex sections 5 and 7 for SML '97 and CM.
2583 :     Updated all three examples in src/ml-yacc/examples to run
2584 :     under 110.* using CM.make.
2585 :    
2586 :     ----------------------------------------------------------------------
2587 : leunga 624 Name: Allen Leung
2588 :     Date: 2000/04/20 23:04:00 EST
2589 :     Tag: leunga-20000420-ssa-c---stuff
2590 :     Description:
2591 :    
2592 :     This update synchronizes my repository with Yale's. Most of these
2593 :     changes, however, do not affect SML/NJ at all (the RA is an exception).
2594 :    
2595 :     1. Register Allocator
2596 :    
2597 :     a. An improvement in the interference graph construction:
2598 :     Given a copy
2599 :    
2600 :     s <- t
2601 :    
2602 : leunga 628 no interference edge between s and t is added for this definition of s.
2603 : leunga 624
2604 :     b. I've added two new spill heuristic modules that Fermin and I developed
2605 :     (in the new library RA.cm). These are unused in SML/NJ but maybe
2606 :     useful for others (Moby?)
2607 :    
2608 :     2. X86
2609 :    
2610 :     a. Various fixes in the backend provided by Fermin [C--] and Lal.
2611 :    
2612 :     3. Alpha
2613 :    
2614 :     a. Added the BSR instruction and code generation that goes with it [C--]
2615 :     b. Other fixes too numerous to recount provided by Fermin [C--]
2616 :    
2617 :     4. Regmaps
2618 :    
2619 :     a. The regmaps are not initialized with the identity physical bindings
2620 :     at creation time. This is unneeded.
2621 :    
2622 :     5. MLRISC Optimizations
2623 :    
2624 :     a. The DJ-Graph module can now compute the iterated dominance frontiers
2625 :     intersects with liveness incrementally in linear time! Woohoo!
2626 :     This is now used in my new SSA construction algorithm.
2627 :    
2628 :     b. THe branch reorganization module is now smarter about linear chains of
2629 :     basic blocks.
2630 :    
2631 :    
2632 :     ----------------------------------------------------------------------
2633 : blume 615 Name: Matthias Blume
2634 :     Date: 2000/04/12 13:52:00 JST
2635 :     Tag: blume_main_v110p27_1
2636 :     Description:
2637 :    
2638 :     Changed install.sh script to handle archive files without version number
2639 :     and to use "boot.<arch>-<os>" instead of "sml.boot.<arch>-<os>" for the
2640 :     name of the boot file archive.
2641 :    
2642 :     ----------------------------------------------------------------------
2643 : dbm 607 Name: Dave MacQueen
2644 :     Date: 2000/04/09 14:00 EDT
2645 :     Tag: dbm-20000410-Version_110_27
2646 :     Description:
2647 :    
2648 :     1. Updated src/compiler/TopLevel/main/version.sml to version 110.27
2649 :    
2650 :     2. Updated src/config/version to 110.27
2651 :    
2652 :     3. New boot files!
2653 :    
2654 :     ----------------------------------------------------------------------
2655 : leunga 606 Name: Allen Leung
2656 :     Date: 2000/04/09 19:09:00 EST
2657 :     Tag: leunga-20000409-misc
2658 :     Description:
2659 :    
2660 :     1. Yet another fix for x86 assembly for idivl, imull, mull and friends.
2661 :    
2662 :     2. Miscellaneous improvements to MLRISC (unused in sml/nj)
2663 :    
2664 :     ----------------------------------------------------------------------
2665 : monnier 605 Name: Stefan
2666 :     Date: 2000/04/07 10:00:00 EDT
2667 :     Tag: monnier-20000406-branch-handling
2668 :     Description:
2669 :    
2670 :     Improved handling of branches (mostly those generated from
2671 :     polymorphic equality), removed switchoff and changed the
2672 :     default optimization settings (more cpsopt and less flintopt).
2673 :    
2674 :     ----------------------------------------------------------------------
2675 : leunga 601 Name: Allen Leung
2676 : leunga 602 Date: 2000/04/06 01:30:00 EST
2677 :     Tag: leunga-20000406-peephole-x86-SSA-2
2678 :     Description:
2679 :    
2680 :     Forgot a few files.
2681 :    
2682 :     ----------------------------------------------------------------------
2683 :     Name: Allen Leung
2684 : leunga 601 Date: 2000/04/06 00:36:00 EST
2685 :     Tag: leunga-20000406-peephole-x86-SSA
2686 :     Description:
2687 :    
2688 :     1. New Peephole code
2689 :    
2690 :     2. Minor improvement to X86 instruction selection
2691 :    
2692 :     3. Various fixes to SSA and machine description -> code translator
2693 :    
2694 :     ----------------------------------------------------------------------
2695 : blume 595 Name: Matthias Blume
2696 :     Date: 2000/04/05 12:30:00 JST
2697 :     Tag: blume_main_v110p26p2_3
2698 :     Description:
2699 :    
2700 :     This update just merges three minor cosmetic updates to CM's sources
2701 :     to get ready for the 110.27 code freeze on Friday. No functionality
2702 :     has changed.
2703 :    
2704 :     ----------------------------------------------------------------------
2705 : leunga 593 Name: Allen Leung
2706 : leunga 594 Date: 2000/04/04 19:39:00 EST
2707 :     Tag: leunga-20000404-x86-asm
2708 :     Description:
2709 :    
2710 :     1. Fixed a problem in X86 assembly.
2711 :    
2712 :     Things like
2713 :    
2714 :     jmp %eax
2715 :     jmp (%eax)
2716 :    
2717 :     should be output as
2718 :    
2719 :     jmp *%eax
2720 :     jmp *(%eax)
2721 :    
2722 :     2. Assembly output
2723 :    
2724 :     Added a new flag
2725 :    
2726 :     "asm-indent-copies" (default to false)
2727 :    
2728 :     When this flag is on, parallel copies will be indented an extra level.
2729 :    
2730 :     ----------------------------------------------------------------------
2731 :     Name: Allen Leung
2732 : leunga 593 Date: 2000/04/04 03:18:00 EST
2733 :     Tag: leunga-20000404-C--Moby
2734 :     Description:
2735 :    
2736 :     All of these fixes are related to C--, Moby, and my own optimization
2737 :     stuff; so they shouldn't affect SML/NJ.
2738 :    
2739 :     1. X86
2740 :    
2741 :     Various fixes related floating point, and extensions.
2742 :    
2743 :     2. Alpha
2744 :    
2745 :     Some extra patterns related to loads with signed/zero extension
2746 :     provided by Fermin.
2747 :    
2748 :     3. Assembly
2749 :    
2750 : monnier 659 When generating assembly, resolve the value of client defined constants,
2751 : leunga 593 instead of generating symbolic values. This is controlled by the
2752 :     new flag "asm-resolve-constants", which is default to true.
2753 :    
2754 :     4. Machine Descriptions
2755 :    
2756 :     a. The precedence parser was slightly broken when parsing infixr symbols.
2757 :     b. The type generalizing code had the bound variables reversed, resulting
2758 :     in a problem during arity raising.
2759 :     c. Various fixes in machine descriptions.
2760 :    
2761 :     ----------------------------------------------------------------------
2762 : blume 592 Name: Matthias Blume
2763 :     Date: 2000/04/03 16:05:00 JST
2764 :     Tag: blume_main_v110p26p2_2
2765 :     Description:
2766 :    
2767 :     I eliminated coreEnv from compInfo. Access to the "Core" structure is
2768 :     now done via the ordinary static environment that is context to each
2769 :     compilation unit.
2770 :    
2771 :     To this end, I arranged that instead of "structure Core" as "structure
2772 :     _Core" is bound in the pervasive environment. Core access is done via
2773 : monnier 659 _Core (which can never be accidentally rebound because _Core is not a
2774 : blume 592 legal surface-syntax symbol).
2775 :    
2776 :     The current solution is much cleaner because the core environment is
2777 :     now simply part of the pervasive environment which is part of every
2778 :     compilation unit's context anyway. In particular, this eliminates all
2779 :     special-case handling that was necessary until now in order to deal
2780 :     with dynamic and symbolic parts of the core environment.
2781 :    
2782 :     Remaining hackery (to bind the "magic" symbol _Core) is localized in the
2783 : monnier 659 compilation manager's bootstrap compiler (actually: in the "init group"
2784 : blume 592 handling). See the comments in src/system/smlnj/init/init.cmi for
2785 :     more details.
2786 :    
2787 :     I also tried to track down all mentions of "Core" (as string argument
2788 :     to Symbol.strSymbol) in the compiler and replaced them with a
2789 :     reference to the new CoreSym.coreSym. Seems cleaner since the actual
2790 :     name appears in one place only.
2791 :    
2792 :     Binfile and bootfile format have not changed, but the switchover from
2793 :     the old "init.cmi" to the new one is a bit tricky, so I supplied new
2794 :     bootfiles anyway.
2795 :    
2796 :     ----------------------------------------------------------------------
2797 : leunga 591 Name: Allen Leung
2798 :     Date: 2000/04/02 21:17:00 EST
2799 :     Tag: leunga-20000402-mltree
2800 :     Description:
2801 : leunga 585
2802 : leunga 591 1. Renamed the constructor CALL in MLTREE by popular demand.
2803 :     2. Added a bunch of files from my repository. These are currently
2804 :     used by other non-SMLNJ backends.
2805 :    
2806 : leunga 576 ----------------------------------------------------------------------
2807 : leunga 590 Name: Allen Leung
2808 :     Date: 2000/03/31 21:15:00 EST
2809 :     Tag: leunga-20000331-aliasing
2810 :     Description:
2811 :    
2812 :     This update contains a rewritten (and hopefully more correct) module
2813 :     for extracting aliasing information from CPS.
2814 :    
2815 :     To turn on this feature:
2816 :    
2817 :     Compiler.Control.CG.memDisambiguate := true
2818 :    
2819 :     To pretty print the region information with assembly
2820 :    
2821 :     Compiler.Control.MLRISC.getFlag "asm-show-region" := true;
2822 :    
2823 :     To control how many levels of aliasing information are printed, use:
2824 :    
2825 :     Compiler.Control.MLRISC.getInt "points-to-show-level" := n
2826 :    
2827 :     The default of n is 3.
2828 :    
2829 :     ----------------------------------------------------------------------
2830 : dbm 589 Name: David MacQueen
2831 :     Date: 2000/03/31 11:15:00 EST
2832 :     Tag: dbm-20000331-runtime_fix
2833 :     Description:
2834 :    
2835 :     This update contains:
2836 :    
2837 :     1. runtime/c-lib/c-libraries.c
2838 :     includes added in revision 1.2 caused compilation errors on hppa-hpux
2839 :    
2840 :     2. fix for bug 1556
2841 :     system/Basis/Implementation/NJ/internal-signals.sml
2842 :    
2843 :     ----------------------------------------------------------------------
2844 : blume 587 Name: Matthias Blume
2845 : blume 588 Date: 2000/03/31 18:00:00 JST
2846 :     Tag: blume_main_v110p26p2_1
2847 :     Description:
2848 :    
2849 :     This update contains:
2850 :    
2851 :     1. A small change to CM's handling of stable libraries:
2852 :     CM now maintains one "global" modmap that is used for all stable
2853 :     libraries. The use of such a global modmap maximizes sharing and
2854 :     minimizes the need for re-traversing parts of environments during
2855 :     modmap construction. (However, this has minor impact since modmap
2856 :     construction seems to account for just one percent or less of total
2857 :     compile time.)
2858 :    
2859 :     2. I added a "genmap" phase to the statistics. This is where I got the
2860 :     "one percent" number (see above).
2861 :    
2862 :     3. CM's new tool parameter mechanism just became _even_ better. :)
2863 :     - The parser understands named parameters and recursive options.
2864 :     - The "make" and "shell" tools use these new features.
2865 :     (This makes it a lot easier to cascade these tools.)
2866 :     - There is a small syntax change: named parameters use a
2867 :    
2868 :     <name> : ( <option> ... ) or
2869 :     <name> : <string>
2870 :    
2871 :     syntax. Previously, named parameters were implemented in an
2872 :     ad-hoc fashion by each tool individually (by parsing strings)
2873 :     and had the form
2874 :    
2875 :     <name>=<string>
2876 :    
2877 :     See the CM manual for a full description of these issues.
2878 :    
2879 :     ----------------------------------------------------------------------
2880 :     Name: Matthias Blume
2881 : blume 587 Date: 2000/03/30 18:00:00 JST
2882 :     Tag: blume_main_v110p26p2_0
2883 :     Description:
2884 :    
2885 :     !!!!! WARNING !!!!!!
2886 :     !! New binfiles !!
2887 :     !!!!!!!!!!!!!!!!!!!!
2888 :    
2889 :     This update contains:
2890 :    
2891 :     1. Moderate changes to CM:
2892 :    
2893 :     - Changes to CM's tools mechanism. In particular, it is now possible
2894 :     to have tools that accept additional "command line" parameters
2895 :     (specified in the .cm file at each instance where the tool's class is
2896 :     used).
2897 :    
2898 : monnier 659 This was done to accommodate the new "make" and "shell" tools which
2899 :     facilitate fairly seamless hookup to portions of code managed using
2900 : blume 587 Makefiles or Shell scripts.
2901 :    
2902 :     There are no classes "shared" or "private" anymore. Instead, the
2903 :     sharing annotation is now a parameter to the "sml" class.
2904 :    
2905 :     There is a bit of generic machinery for implementing one's own
2906 :     tools that accept command-line parameters. However, I am not yet fully
2907 :     satisfied with that part, so expect changes here in the future.
2908 :    
2909 :     All existing tools are described in the CM manual.
2910 :    
2911 : monnier 659 - Slightly better error handling. (CM now suppresses many followup
2912 : blume 587 error messages that tended to be more annoying than helpful.)
2913 :    
2914 :     2. Major changes to the compiler's static environment data structures.
2915 :    
2916 :     - no CMStaticEnv anymore.
2917 :     - no CMEnv, no "BareEnvironment" (actually, _only_ BareEnvironment,
2918 :     but it is called Environment), no conversions between different
2919 :     kinds of static environments
2920 :    
2921 :     - There is still a notion of a "modmap", but such modmaps are generated
2922 :     on demand at the time when they are needed. This sounds slow, but I
2923 :     sped up the code that generates modmaps enough for this not to lead to
2924 :     a slowdown of the compiler (at least I didn't detect any).
2925 :    
2926 :     - To facilitate rapid modmap generation, static environments now
2927 :     contain an (optional) "modtree" structure. Modtree annotations are
2928 :     constructed by the unpickler during unpickling. (This means that
2929 :     the elaborator does not have to worry about modtrees at all.)
2930 :     Modtrees have the advantage that they are compositional in the same
2931 :     way as the environment data structure itself is compositional.
2932 :     As a result, modtrees never hang on to parts of an environment that
2933 :     has already been rendered "stale" by filtering or rebinding.
2934 :    
2935 :     - I went through many, many trials and errors before arriving at the
2936 :     current solution. (The initial idea of "linkpaths" did not work.)
2937 :     But the result of all this is that I have touched a lot of files that
2938 :     depend on the "modules" and "types" data structures (most of the
2939 :     elaborator). There were a lot of changes during my "linkpath" trials
2940 :     that could have been reverted to their original state but weren't.
2941 :     Please, don't be too harsh on me for messing with this code a bit more
2942 :     than what was strictly necessary... (I _did_ resist the tempation
2943 :     of doing any "global reformatting" to avoid an untimely death at
2944 :     Dave's hands. :)
2945 :    
2946 :     - One positive aspect of the previous point: At least I made sure that
2947 :     all files that I touched now compile without warnings (other than
2948 :     "polyEqual").
2949 :    
2950 :     - compiler now tends to run "leaner" (i.e., ties up less memory in
2951 :     redundant modmaps)
2952 :    
2953 :     ----------------------------------------------------------------------
2954 : leunga 580 Name: Allen Leung
2955 : leunga 585 Date: 2000/03/29 18:00:00
2956 :     Tag: leunga-20000327-mlriscGen_hppa_alpha_x86
2957 : leunga 586 Boot files (optional): ftp://react-ilp.cs.nyu.edu/leunga/110.26.1-sml.boot.x86-unix-20000330.tar.gz
2958 : leunga 585 Description:
2959 :    
2960 :     This update contains *MAJOR* changes to the way code is generated from CPS
2961 :     in the module mlriscGen, and in various backend modules.
2962 :    
2963 :     CHANGES
2964 :     =======
2965 :    
2966 :     1. MLRiscGen: forward propagation fix.
2967 :    
2968 :     There was a bug in forward propagation introduced at about the same time
2969 :     as the MLRISC x86 backend, which prohibits coalescing to be
2970 :     performed effectively in loops.
2971 :    
2972 :     Effect: speed up of loops in RISC architectures.
2973 :     By itself, this actually slowed down certain benchmarks on the x86.
2974 :    
2975 :     2. MLRiscGen: forward propagating addresses from consing.
2976 :    
2977 :     I've changed the way consing code is generated. Basically I separated
2978 :     out the initialization part:
2979 :    
2980 :     store tag, offset(allocptr)
2981 :     store elem1, offset+4(allocptr)
2982 :     store elem2, offset+8(allocptr)
2983 :     ...
2984 :     store elemn, offset+4n(allocptr)
2985 :    
2986 :     and the address computation part:
2987 :    
2988 :     celladdr <- offset+4+alloctpr
2989 :    
2990 :     and move the address computation part
2991 :    
2992 :     Effect: register pressure is generally lower as a result. This
2993 :     makes compilation of certain expressions much faster, such as
2994 :     long lists with non-trivial elements.
2995 :    
2996 :     [(0,0), (0,0), .... (0,0)]
2997 :    
2998 :     3. MLRiscGen: base pointer elimination.
2999 :    
3000 :     As part of the linkage mechanism, we generate the sequence:
3001 :    
3002 :     L: ... <- start of the code fragment
3003 :    
3004 :     L1:
3005 :     base pointer <- linkreg - L1 + L
3006 :    
3007 :     The base pointer was then used for computing relocatable addresses
3008 :     in the code fragment. Frequently (such as in lots of continuations)
3009 :     this is not needed. We now eliminate this sequence whenever possible.
3010 :    
3011 :     For compile time efficiency, I'm using a very stupid local heuristic.
3012 :     But in general, this should be done as a control flow analysis.
3013 :    
3014 :     Effect: Smaller code size. Speed up of most programs.
3015 :    
3016 :     4. Hppa back end
3017 :    
3018 :     Long jumps in span dependence resolution used to depend on the existence
3019 :     of the base pointer.
3020 :    
3021 :     A jump to a long label L was expanded into the following sequence:
3022 :    
3023 :     LDIL %hi(L-8192), %r29
3024 :     LDO %lo(L-8192)(%r29), %r29
3025 :     ADD %r29, baseptr, %r29
3026 :     BV,n %r0(%r29)
3027 :    
3028 :     In the presence of change (3) above, this will not work. I've changed
3029 :     it so that the following sequence of instructions are generated, which
3030 :     doesn't mention the base pointer at all:
3031 :    
3032 :     BL,n L', %r29 /* branch and link, L' + 4 -> %r29 */
3033 :     L': ADDIL L-(L'+4), %r29 /* Compute address of L */
3034 :     BV,n %r0(%r29) /* Jump */
3035 :    
3036 :     5. Alpha back end
3037 :    
3038 :     New alpha instructions LDB/LDW have been added, as per Fermin's
3039 :     suggestions. This is unrelated to all other changes.
3040 :    
3041 :     6. X86 back end
3042 :    
3043 :     I've changed andl to testl in the floating point test sequence
3044 :     whenever appropriate. The Intel optimization guide states that
3045 : monnier 659 testl is preferable to andl.
3046 : leunga 585
3047 :     7. RA (x86 only)
3048 :    
3049 :     I've improved the spill propagation algorithm, using an approximation
3050 :     of maximal weighted independent sets. This seems to be necessary to
3051 :     alleviate the negative effect in light of the slow down in (1).
3052 :    
3053 :     I'll write down the algorithm one of these days.
3054 :    
3055 :     8. MLRiscGen: frequencies
3056 :    
3057 :     I've added an annotation that states that all call gc blocks have zero
3058 :     execution frequencies. This improves register allocation on the x86.
3059 :    
3060 :     BENCHMARKS
3061 :     ==========
3062 :    
3063 :     I've only perform the comparison on 110.25.
3064 :    
3065 :     The platforms are:
3066 :    
3067 :     HPPA A four processor HP machine (E9000) with 5G of memory.
3068 :     X86 A 300Hhz Pentium II with 128M of memory, and
3069 :     SPARC An Ultra sparc 2 with 512M of memory.
3070 :    
3071 :     I used the following parameters for the SML benchmarks:
3072 :    
3073 :     @SMLalloc
3074 :     HPPA 256k
3075 :     SPARC 512k
3076 :     X86 256k
3077 :    
3078 :     COMPILATION TIME
3079 :     ----------------
3080 :     Here are the numbers comparing the compilation times of the compilers.
3081 :     I've only compared 110.25 compiling the new sources versus
3082 :     a fixpoint version of the new compiler compiling the same.
3083 :    
3084 :     110.25 New
3085 :     Total Time in RA Spill+Reload Total Time In RA Spill+Reload
3086 :     HPPA 627s 116s 2684+3584 599s 95s 1003+1879
3087 :     SPARC 892s 173s 2891+3870 708s 116s 1004+1880
3088 :     X86 999s 315s 94006+130691 987s 296s 108877+141957
3089 :    
3090 :     110.25 New
3091 :     Code Size Code Size
3092 :     HPPA 8596736 8561421
3093 :     SPARC 8974299 8785143
3094 :     X86 9029180 8716783
3095 :    
3096 :     So in summary, things are at least as good as before. Dramatic
3097 :     reduction in compilation is obtained on the Sparc; I can't explain it,
3098 :     but it is reproducible. Perhaps someone should try to reproduce this
3099 :     on their own machines.
3100 :    
3101 :     SML BENCHMARKS
3102 :     --------------
3103 :    
3104 :     On the average, all benchmarks perform at least as well as before.
3105 :    
3106 :     HPPA Compilation Time Spill+Reload Run Time
3107 :     110.25 New 110.25 New 110.25 New
3108 :    
3109 :     barnesHut 3.158 3.015 4.75% 1+1 0+0 2.980 2.922 2.00%
3110 :     boyer 6.152 5.708 7.77% 0+0 0+0 0.218 0.213 2.34%
3111 :     count-graphs 1.168 1.120 4.32% 0+0 0+0 22.705 23.073 -1.60%
3112 :     fft 0.877 0.792 10.74% 1+3 1+3 0.602 0.587 2.56%
3113 :     knuthBendix 3.180 2.857 11.32% 0+0 0+0 0.675 0.662 2.02%
3114 :     lexgen 6.190 5.290 17.01% 0+0 0+0 0.913 0.788 15.86%
3115 :     life 0.803 0.703 14.22% 25+25 0+0 0.153 0.140 9.52%
3116 :     logic 2.048 2.007 2.08% 6+6 1+1 4.133 4.008 3.12%
3117 :     mandelbrot 0.077 0.080 -4.17% 0+0 0+0 0.765 0.712 7.49%
3118 :     mlyacc 22.932 20.937 9.53% 154+181 32+57 0.468 0.430 8.91%
3119 :     nucleic 5.183 5.060 2.44% 2+2 0+0 0.125 0.120 4.17%
3120 :     ratio-regions 3.357 3.142 6.84% 0+0 0+0 116.225 113.173 2.70%
3121 :     ray 1.283 1.290 -0.52% 0+0 0+0 2.887 2.855 1.11%
3122 :     simple 6.307 6.032 4.56% 28+30 5+7 3.705 3.658 1.28%
3123 :     tsp 0.888 0.862 3.09% 0+0 0+0 7.040 6.893 2.13%
3124 :     vliw 24.378 23.455 3.94% 106+127 25+45 2.758 2.707 1.91%
3125 :     --------------------------------------------------------------------------
3126 :     Average 6.12% 4.09%
3127 :    
3128 :     SPARC Compilation Time Spill+Reload Run Time
3129 :     110.25 New 110.25 New 110.25 New
3130 :    
3131 :     barnesHut 3.778 3.592 5.20% 2+2 0+0 3.648 3.453 5.65%
3132 :     boyer 6.632 6.110 8.54% 0+0 0+0 0.258 0.242 6.90%
3133 :     count-graphs 1.435 1.325 8.30% 0+0 0+0 33.672 34.737 -3.07%
3134 :     fft 0.980 0.940 4.26% 3+9 2+6 0.838 0.827 1.41%
3135 :     knuthBendix 3.590 3.138 14.39% 0+0 0+0 0.962 0.967 -0.52%
3136 :     lexgen 6.593 6.072 8.59% 1+1 0+0 1.077 1.078 -0.15%
3137 :     life 0.972 0.868 11.90% 26+26 0+0 0.143 0.140 2.38%
3138 :     logic 2.525 2.387 5.80% 7+7 1+1 5.625 5.158 9.05%
3139 :     mandelbrot 0.090 0.093 -3.57% 0+0 0+0 0.855 0.728 17.39%
3140 :     mlyacc 26.732 23.827 12.19% 162+189 32+57 0.550 0.560 -1.79%
3141 :     nucleic 6.233 6.197 0.59% 3+3 0+0 0.163 0.173 -5.77%
3142 :     ratio-regions 3.780 3.507 7.79% 0+0 0+0 133.993 131.035 2.26%
3143 :     ray 1.595 1.550 2.90% 1+1 0+0 3.440 3.418 0.63%
3144 :     simple 6.972 6.487 7.48% 29+32 5+7 3.523 3.525 -0.05%
3145 :     tsp 1.115 1.063 4.86% 0+0 0+0 7.393 7.265 1.77%
3146 :     vliw 27.765 24.818 11.87% 110+135 25+45 2.265 2.135 6.09%
3147 :     ----------------------------------------------------------------------------
3148 :     Average 6.94% 2.64%
3149 :    
3150 :     X86 Compilation Time Spill+Reload Run Time
3151 :     110.25 New 110.25 New 110.25 New
3152 :    
3153 :     barnesHut 5.530 5.420 2.03% 593+893 597+915 3.532 3.440 2.66%
3154 :     boyer 8.768 7.747 13.19% 493+199 301+289 0.327 0.297 10.11%
3155 :     count-graphs 2.040 2.010 1.49% 298+394 315+457 26.578 28.660 -7.26%
3156 :     fft 1.327 1.302 1.92% 112+209 115+210 1.055 0.962 9.71%
3157 :     knuthBendix 5.218 5.475 -4.69% 451+598 510+650 0.928 0.932 -0.36%
3158 :     lexgen 9.970 9.623 3.60% 1014+841 1157+885 0.947 0.928 1.97%
3159 :     life 1.183 1.183 0.00% 162+182 145+148 0.127 0.103 22.58%
3160 :     logic 3.285 3.512 -6.45% 514+684 591+836 5.682 5.577 1.88%
3161 :     mandelbrot 0.147 0.143 2.33% 38+41 33+54 0.703 0.690 1.93%
3162 :     mlyacc 35.457 32.763 8.22% 3496+4564 3611+4860 0.552 0.550 0.30%
3163 :     nucleic 7.100 6.888 3.07% 239+168 201+158 0.175 0.173 0.96%
3164 :     ratio-regions 6.388 6.843 -6.65% 1182+257 981+300 120.142 120.345 -0.17%
3165 :     ray 2.332 2.338 -0.29% 346+398 402+494 3.593 3.540 1.51%
3166 :     simple 9.912 9.903 0.08% 1475+941 1579+1168 3.057 3.178 -3.83%
3167 :     tsp 1.623 1.532 5.98% 266+200 250+211 8.045 7.878 2.12%
3168 :     vliw 33.947 35.470 -4.29% 2629+2774 2877+3171 2.072 1.890 9.61%
3169 :     ----------------------------------------------------------------------------
3170 :     Average 1.22% 3.36%
3171 :    
3172 :     ----------------------------------------------------------------------
3173 :     Name: Allen Leung
3174 : leunga 583 Date: 2000/03/23 16:25:00
3175 :     Tag: leunga-20000323-fix_x86_alpha
3176 :     Description:
3177 :    
3178 :     1. X86 fixes/changes
3179 :    
3180 :     a. The old code generated for SETcc was completely wrong.
3181 :     The Intel optimization guide is VERY misleading.
3182 :    
3183 :     2. ALPHA fixes/changes
3184 :    
3185 :     a. Added the instructions LDBU, LDWU, STB, STW as per Fermin's suggestion.
3186 :     b. Added a new mode byteWordLoadStores to the functor parameter to Alpha()
3187 :     c. Added reassociation code for address computation.
3188 :    
3189 :     ----------------------------------------------------------------------
3190 :     Name: Allen Leung
3191 : leunga 580 Date: 2000/03/22 01:23:00
3192 :     Tag: leunga-20000322-fix_x86_hppa_ra
3193 :     Description:
3194 :    
3195 :     1. X86 fixes/changes
3196 :    
3197 :     a. x86Rewrite bug with MUL3 (found by Lal)
3198 :     b. Added the instructions FSTS, FSTL
3199 :    
3200 :     2. PA-RISC fixes/changes
3201 :    
3202 :     a. B label should not be a delay slot candidate! Why did this work?
3203 :     b. ADDT(32, REG(32, r), LI n) now generates one instruction instead of two,
3204 :     as it should be.
3205 :     c. The assembly syntax for fstds and fstdd was wrong.
3206 :     d. Added the composite instruction COMICLR/LDO, which is the immediate
3207 :     operand variant of COMCLR/LDO.
3208 :    
3209 :     3. Generic MLRISC
3210 :    
3211 :     a. shuffle.sml rewritten to be slightly more efficient
3212 :     b. DIV bug in mltree-simplify fixed (found by Fermin)
3213 :    
3214 :     4. Register Allocator
3215 :    
3216 :     a. I now release the interference graph earlier during spilling.
3217 :     May improve memory usage.
3218 :    
3219 :     ----------------------------------------------------------------------
3220 : blume 577 Name: Matthias Blume
3221 : blume 578 Date: 2000/03/14 14:15:32
3222 :     Tag: blume_main_v110p26p1_2
3223 :     Description:
3224 :    
3225 :     1. Tools.registerStdShellCmdTool (from smlnj/cm/tool.cm) takes an
3226 :     additional argument called "template" which is an optional string that
3227 : monnier 659 specifies the layout of the tool command line. See the CM manual for
3228 : blume 578 explanation.
3229 :    
3230 : monnier 659 2. A special-purpose tool can be "registered" by simply dropping the
3231 : blume 578 corresponding <...>-tool.cm (and/or <...>-ext.cm) into the same
3232 :     directory where the .cm file lives that uses this tool. (The
3233 :     behavior/misfeature until now was to look for the tool description
3234 :     files in the current working directory.) As before, tool description
3235 :     files could also be anchored -- in which case they can live anywhere
3236 :     they like. Following the recent e-mail discussion, this change should
3237 :     make it easier to have special-purpose tools that are shipped together
3238 :     with the sources of the program that uses them.
3239 :    
3240 :     ----------------------------------------------------------------------
3241 :     Name: Matthias Blume
3242 : blume 577 Date: 2000/03/10 07:48:34
3243 :     Tag: blume_main_v110p26p1_1
3244 :     Description:
3245 :    
3246 :     I added a re-written version of Dave's fixpt script to src/system.
3247 :     Changes relative to the original version:
3248 :     - sh-ified (not everybody has ksh)
3249 :     - automatically figures out which architecture it runs on
3250 :     - uses ./makeml a bit more cleverly
3251 :     - never invokes ./installml (and, thus, does not clobber your
3252 :     good and working installation of sml in case something goes wrong)
3253 :     - accepts max iteration count using option "-iter <n>"
3254 :     - accepts a "base" name using option "-base <base>"
3255 :    
3256 :     It does not build any extraneous heap images but directly rebuilds
3257 :     bin- and boot-hierarchies using makeml's "-rebuild" switch. Finally,
3258 :     it can incorporate existing bin- and boot- hierarchies. For example,
3259 :     suppose the base is set to "sml" (which is the default). Then it
3260 :     successively builds
3261 :    
3262 :     sml.bin.<arch>-unix and sml.boot.<arch>-unix
3263 :     then sml1.bin.<arch>-unix and sml1.boot.<arch>-unix
3264 :     then sml2.bin.<arch>-unix and sml2.boot.<arch>-unix
3265 :     ...
3266 :     then sml<n>.bin.<arch>-unix and sml<n>.boot.<arch>-unix
3267 :    
3268 :     and so on. If any of these already exist, it will just use what's
3269 :     there. In particular, many people will have the initial set of bin
3270 :     and boot files around, so this saves time for at least one full
3271 :     rebuild. Having sets of the form <base><k>.{bin,boot}.<arch>-unix for
3272 :     <k>=1,2,... is normally not a good idea when invoking fixpt. However,
3273 :     they might be the result of an earlier partial run of fixpt (which
3274 : monnier 659 perhaps got accidentally killed). In this case, fixpt will quickly
3275 : blume 577 move through what exists before continuing where it left off earlier,
3276 :     and, thus, saves a lot of time.
3277 :    
3278 :     ----------------------------------------------------------------------
3279 : leunga 576 Name: Allen Leung
3280 :     Date: 00/03/10 02:20:00
3281 :     Tag: leunga-20000310-fix_x86_asm_ra
3282 :     Description:
3283 : dbm 570
3284 : leunga 576 More assembly output problems involving the indexed addressing mode
3285 :     on the x86 have been found and corrected. Thanks to Fermin Reig for the
3286 :     fix.
3287 :    
3288 :     The interface and implementation of the register allocator have been changed
3289 :     slightly to accommodate the possibility to skip the register allocation
3290 :     phases completely and go directly to memory allocation. This is needed
3291 :     for C-- use.
3292 :    
3293 : dbm 570 ----------------------------------------------------------------------
3294 : blume 572 Name: Matthias Blume
3295 : blume 575 Date: 00/03/09 10:23:53
3296 :     Tag: blume_main_v110p26p1_0
3297 :     Description:
3298 :    
3299 :     * Complete re-organization of library names. Many libraries have been
3300 :     consolidated so that they share the same path anchor. For example,
3301 :     all MLRISC-related libraries are anchored at MLRISC, most libraries that
3302 :     are SML/NJ-specific are under "smlnj". Notice that names like
3303 :     host-cmb.cm or host-compiler.cm no longer exist. See system/README
3304 :     for a complete description of the new naming scheme. Quick reference:
3305 :    
3306 :     host-cmb.cm -> smlnj/cmb.cm
3307 :     host-compiler.cm -> smlnj/compiler.cm
3308 :     full-cm.cm -> smlnj/cm.cm
3309 :     <arch>-<os>.cm -> smlnj/cmb/<arch>-<os>.cm
3310 :     <arch>-compiler.cm -> smlnj/compiler/<arch>.cm
3311 :    
3312 :     * Bug fixes in CM.
3313 :     - exceptions in user code are being passed through (i.e., reach top level)
3314 :     - more bugs in paranoia mode fixed
3315 :     - bug related to checking group owners fixed
3316 :    
3317 :     * New install.sh script that automagically fetches archive files:
3318 :     The new file config/srcarchiveurl must contain the URL of the
3319 :     (remote) directory that contains bin files (or other source archives).
3320 :     If install.sh does not find the archive locally, it tries to get
3321 :     it from that remote directory.
3322 :     This should simplify installation further: For machines that have
3323 :     access to the internet, just fetch <version>-config.tgz, unpack it,
3324 : monnier 659 edit config/targets, and go (run config/install.sh). The script will
3325 : blume 575 fetch everything else that it might need all by itself.
3326 :    
3327 :     For CVS users, this mechanism is not relevant for source archives, but
3328 :     it is convenient for getting new sets of binfiles.
3329 :    
3330 :     Archives should be tar files compressed with either gzip, compress, or
3331 :     bzip2. The script recognizes .tgz, .tar, tar.gz, tz, .tar.Z, and .tar.bz2.
3332 :    
3333 :     ----------------------------------------------------------------------
3334 :     Name: Matthias Blume
3335 : blume 572 Date: 2000/03/07 04:01:04
3336 :     Tag: blume_main_v110_26_2
3337 : dbm 570 Description:
3338 : blume 572 - size info in BOOTLIST
3339 :     * no fixed upper limits for number of bootfiles or length of
3340 :     bootfile names in runtime
3341 :     * falling back to old behavior if no BOOTLIST size info found
3342 :     - allocation size heuristics in .run-sml
3343 :     * tries to read cache size from /proc/cpuinfo (this is important for
3344 :     small-cache Celeron systems!)
3345 :     - install.sh robustified
3346 :     - CM manual updates
3347 :     - paranoid mode
3348 :     * no more CMB.deliver() (i.e., all done by CMB.make())
3349 :     * can re-use existing sml.boot.* files
3350 :     * init.cmi now treated as library
3351 :     * library stamps for consistency checks
3352 :     - sml.boot.<arch>-<os>/PIDMAP file
3353 :     * This file is read by the CM startup code. This is used to minimize
3354 :     the amount of dynamic state that needs to be stowed away for the
3355 :     purpose of sharing between interactive system and user code.
3356 :     - CM.Anchor.anchor instead of CM.Anchor.{set,cancel}
3357 :     * Upon request by Elsa. Anchors now controlled by get-set-pair
3358 :     like most other CM state variables.
3359 :     - Compiler.CMSA eliminated
3360 :     * No longer supported by CM anyway.
3361 :     - fixed bugs in pickler that kept biting Stefan
3362 :     * past refs to past refs (was caused by the possibility that
3363 :     ad-hoc sharing is more discriminating than hash-cons sharing)
3364 :     * integer overflow on LargeInt.minInt
3365 :     - ml-{lex,yacc} build scripts now use new mechanism
3366 :     for building standalone programs
3367 :     - fixed several gcc -Wall warnings that were caused by missing header
3368 :     files, missing initializations, etc., in runtime (not all warnings
3369 :     eliminated, though)

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