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

SCM Repository

[smlnj] Diff of /sml/trunk/NOTES/HISTORY
ViewVC logotype

Diff of /sml/trunk/NOTES/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

sml/trunk/HISTORY revision 1171, Fri Mar 22 20:41:43 2002 UTC sml/trunk/NOTES/HISTORY revision 2331, Mon Feb 12 21:08:44 2007 UTC
# Line 1  Line 1 
1  This is the HISTORY file for the Yale SML/NJ CVS repository.  This is the HISTORY file for the SML/NJ repository.
2    
3  An entry should be made for _every_ commit to the repository.  An entry should be made for _every_ commit to the repository.
4  The entries in this file will be used when creating the README  The entries in this file will be used when creating the README
# Line 7  Line 7 
7    
8  The form of an entry should be:  The form of an entry should be:
9    
10  Name:  
11    Name: Your Name (web page or e-mail)
12    Date: yyyy/mm/dd hh:mm:ss
13    Tag: cvs-tag-for-this-change
14    Description:
15    
16    ----------------------------------------------------------------------
17    Name: Matthias Blume (http://www.tti-c.org/blume/)
18    Date: 2007/02/12 15:10:00 CST
19    Description:
20    
21    Fixed typo in ml-build script that prevented library anchors
22    from being registered.
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume (http://www.tti-c.org/blume/)
26    Date: 2007/02/02 15:20:00 CST
27    Tag: release-110.62
28    Description:
29    
30    New working release (110.62).  NEW BOOTFILES!
31    
32    ----------------------------------------------------------------------
33    Name: Aaron Turon (http://www.cs.uchicago.edu/~adrassi)
34    Date: 2007/01/31
35    Description:
36    
37    Brought ml-lpt manual up-to-date with the code.  Many minor
38    improvements to the tools, and a few minor bugfixes.  Prepared
39    ml-lpt-lib for integration with new UTF8 structure.  Changed
40    the interface for creating streams in ml-ulex (we now support
41    stream creation from several kinds of sources).  Overall, the
42    tools are now quite stable, and their interfaces are unlikely to
43    change in a way that would break compatibility.  More work,
44    however, is needed in the documentation.
45    
46    ----------------------------------------------------------------------
47    Name: Matthias Blume (http://www.tti-c.org/blume/)
48    Date: 2007/02/01 10:05:00 CST
49    Description:
50    
51    Implemented library installer.  Moved CM plugin code for
52    ml-burg, ml-lex, and ml-yacc out of CM source tree and into
53    their respective trees.  Implemented CM plugin for ml-ulex
54    and ml-antlr.  Used library installer for ml-burg, ml-ulex,
55    and ml-antlr.
56    
57    For ml-yacc and ml-lex we continue to have permanently "plugged-in"
58    CM tools.  (It turns out to be too messy to do otherwise because
59    there is too much code that during installation relies on the presence
60    of these tools -- resulting in a tricky ordering problem.)
61    
62    ----------------------------------------------------------------------
63    Name: Matthias Blume (http://www.tti-c.org/blume/)
64    Date: 2007/01/30 11:05:00 CST
65    Description:
66    
67    Added SMLofNJ.shiftArgs which is like a shell's "shift" command.
68    Modified CM's startup code to use shiftArgs as it processes
69    command line arguments.  This way, the init code in each .sml-file
70    or library that is mentioned at the top level will see only
71    those arguments that have not yet been processed at this point.
72    In other words, the init code can "seize control" and process the
73    remaining command line.
74    
75    ----------------------------------------------------------------------
76    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
77    Date: 2007/01/28
78    Description:
79    
80    Added the UTF8 structure and signature from the Moby compiler to
81    the SML/NJ library (and the CML library).  These modules will replace
82    the version in the ml-lpt-lib.
83    
84    ----------------------------------------------------------------------
85    Name: Matthias Blume (http://www.tti-c.org/blume/)
86    Date: 2007/01/26 15:10:00 CST
87    Description:
88    
89    Added entries to handle ml-lpt-lib.cm in installer.
90    
91    ----------------------------------------------------------------------
92    Name: Matthias Blume (http://www.tti-c.org/blume/)
93    Date: 2006/12/15 11:10:00 CST
94    Tag: release-110.61
95    Description:
96    
97    New working release (110.61).  NEW BOOTFILES!
98    
99    This supersedes the pre-brown-paper-bug release (see below).
100    
101    ----------------------------------------------------------------------
102    Name: Matthias Blume (http://www.tti-c.org/blume/)
103    Date: 2006/12/15 11:00:00 CST
104    Description:
105    
106    Fixed brown-paper-bag bug with CM's pathname handling, which made
107    installation fail under Win32.
108    
109    ----------------------------------------------------------------------
110    Name: Matthias Blume (http://www.tti-c.org/blume/)
111    Date: 2006/12/14 12:00:00 CST
112    Description:
113    
114    Obsolete!
115    
116    [New working release (110.61).  NEW BOOTFILES!]
117    
118    ----------------------------------------------------------------------
119    Name: John Reppy (http://cs.uchicago.edu/~jhr)
120    Date: 2006/14/06 09:50:00 CST
121    Description:
122    
123    Fixed the code in runtime/c-libs/posix-tty/{tcgetattr,tcsetattr}.c to
124    get the c_cc termios data copied correctly.  Also moved the allocation
125    of the string to avoid problems if it caused a GC.
126    
127    Thanks to Timothy Bourke for the bug report and fix.
128    
129    ----------------------------------------------------------------------
130    Name: Matthias Blume (http://www.tti-c.org/blume)
131    Date: 2006/12/08 09:50:00 CST
132    Description:
133    
134    Added code to CM's "standard shell tool" implementation which
135    causes it to tolerate (with a warning) the situation where the shell
136    command fails (e.g., due to the shell command's non-existence)
137    as long as all target files exist.
138    
139    This makes it possible to, e.g., build ml-yacc from sources even if
140    svn checkout messed up the time stamps on files in such a way that
141    yacc.grm is younger than yacc.grm.sml or yacc.grm.sig.  (Ml-yacc would
142    be needed to re-process yacc.grm, but obviously it might not yet be
143    available at that time.)
144    
145    ----------------------------------------------------------------------
146    Name: John Reppy (http://cs.uchicago.edu/~jhr)
147    Date: 2006/12/06 12:06:00 CST
148    Description:
149    
150    Fixed the types of recvVecFrom, recvVecFrom', recvVecFromNB, and
151    recvVecFromNB' in the SOCKET signature.  This error is actually
152    in the SML Basis specification too.
153    
154    ----------------------------------------------------------------------
155    Name: Matthias Blume (http://www.tti-c.org/blume/)
156    Date: 2006/12/05 22:40:00 CST
157    Description:
158    
159    CM now reports undefined anchors as errors and aborts execution
160    rather than silently pressing on using bogus values.
161    
162    ----------------------------------------------------------------------
163    Name: Matthias Blume (http://www.tti-c.org/blume/)
164    Date: 2006/11/29 10:00:00 CST
165    Description:
166    
167    Use Say.vsay for printing the "[autoloading]" message, so
168    #set CM.Control.verbose false (or -Ccm.verbose=false) can be used
169    to suppress them.
170    
171    ----------------------------------------------------------------------
172    Name: Matthias Blume (http://www.tti-c.org/blume/)
173    Date: 2006/11/10 11:00:00 CST
174    Description:
175    
176    Fixed bug in CM where "with:" specifications that affect compilation
177    (as opposed to parsing) were ignored.
178    
179    ----------------------------------------------------------------------
180    Name: Matthias Blume (http://www.tti-c.org/blume/)
181    Date: 2006/11/09 14:30:00 CST
182    Tag: release-110.60
183    Description:
184    
185    New working release (110.60).  NEW BOOTFILES!
186    
187    This is the first subversion-hosted release.  There are also changes
188    to the directory layout.  Here is a table:
189    
190    (All pathnames are relative to the SML/NJ "root" directory.)
191    
192      config -> config
193    
194      src/cm -> base/cm
195      src/compiler -> base/compiler
196      src/runtime -> base/runtime
197      src/system -> base/system
198    
199      src/cm/pgraph -> pgraph
200    
201      src/READMES -> base/READMES
202      src/$notefile -> base/NOTES/$notefile
203         for <notefile> in BOOT CVSNOTES CYGWININSTALL HISTORY INSTALL
204                           MACOSXINSTALL WININSTALL
205    
206      src/smlnj-lib -> smlnj-lib
207      src/MLRISC -> MLRISC
208      ckit -> ckit
209      src/cml -> cml
210      src/eXene -> eXene
211      src/heap2asm -> heap2asm
212      src/lexgen -> lexgen
213      src/ml-burg -> ml-burg
214      src/ml-lex -> ml-lex
215      src/ml-yacc -> ml-yacc
216      src/ml-nlffi-lib -> nlffi/lib
217      src/ml-nlffigen -> nlffi/gen
218      src/smlnj-c -> smlnj-c
219      src/tools/TraceDebugProf -> trace-debug-profile
220    
221    In addition, there is also a new
222    
223      ml-lpt
224    
225    directory containing two new program generator tools: ml-ulex and
226    ml-antlr (a lexer generator that handles unicode and an ANTRL-inspired
227    LL(k) parser generator). These tools are currently "beta-quality"
228    
229    The latest versios of the sources can now be obtained anonymously
230    via subversion.  For this, it is useful to first check out
231    
232       svn://smlnj-gforge.cs.uchicago.edu/smlnj/admin
233    
234    and put the resulting directory on your shell's PATH.  This provides
235    access to three shell scripts: checkout-all.sh, stat-all.sh,
236    and refresh-all.sh.
237    
238    To create a freshly checked-out copy of the sources, do
239    
240       checkout-all.sh [dir]
241    
242    where dir is the optional SML/NJ root directory (default is ".").
243    
244    This creates the above directory layout.  Each subdirectory of
245    the root is under individual subversion control.  The stat-all.sh
246    and refresh-al.sh scripts apply "svn stat" or "svn update" to
247    each of these subtrees.
248    
249    ----------------------------------------------------------------------
250    Name: Matthias Blume (http://www.tti-c.org/blume/)
251    Date: 2006/11/02 12:20:00 CST
252    Description:
253    
254    Reorganized directory layout.
255    
256    This is a temporary solution, more reorganization is to come.
257    
258    The basic idea is to have a number of toplevel trees, each corresponding
259    to a well-defined part of the overall system.  Each part can be
260    maintained individually, even in separate source repositories,
261    although currently we still serve everything out of the main
262    smlnj-gforge tree.
263    
264    Installer and and scripts have been updated to reflect the new
265    layout.  The installer (base/src/system/smlnj/installer) is now
266    "scriptable" to avoid burning too much knowledge about the
267    layout into SML source code.  The main script used by the installer
268    is in config/actions.
269    
270    The main change is that many of the subdirectories of what used to
271    be known as "src" have moved to the toplevel.  The "src" directory
272    itself has moved down into a subtree called "base".  (We may eventually
273    get rid of the extra level of indirection represented by "src".)
274    
275    The layout is now as follows:
276    
277      toplevel tree name | default repository
278                         | (using gf=svn://smlnj-gforge.cs.uchicago.edu/smlnj)
279      -------------------+----------------------------------------------------
280      config             | $gf/config/trunk
281                         |
282      base               | $gf/sml/trunk
283                         |
284      smlnj-lib          | $gf/smlnj-lib/trunk
285      MLRISC             | $gf/MLRISC/trunk
286                         |
287      ml-yacc            | $gf/ml-yacc/trunk
288      ml-lex             | $gf/ml-lex/trunk
289      ml-burg            | $gf/ml-burg/trunk
290      lexgen             | $gf/lexgen/trunk
291      heap2asm           | $gf/heap2asm/trunk
292                         |
293      cml                | $gf/cml/trunk
294      eXene              | $gf/eXene/trunk
295      ckit               | $gf/ckit/trunk
296      nlffi              | $gf/nlffi/trunk
297                         |
298      smlnj-c            | $gf/smlnj-c/trunk
299    
300    In $gf/admin there are a few useful shell scripts for checking out
301    and maintaining the entire collection of trees:
302    
303       admin/checkout-all.sh [dir]
304          -- optionally creates dir and checks out all trees from their
305             default repositories; if dir is missing, checkout into .
306       admin/refresh-all.sh [dir]
307          -- looks at all trees (from the above list) in dir (default: .)
308             and runs "svn update" if the tree exists and is under
309             subversion control;
310             non-existing or non-subversion trees are skipped
311       admin/stat-all.sh [dir]
312          -- like refresh-all.sh, but runs "svn stat" instead
313    
314    ----------------------------------------------------------------------
315    Name: Matthias Blume (http://www.tti-c.org/blume/)
316    Date: 2006/10/05 11:30:00 CDT
317    Tag: blume-20061005-merge-amd64
318    Description:
319    
320    Merged code for AMD64 backend (Mike Rainey's work).
321    Everything is hooked up but untested.
322    
323    ----------------------------------------------------------------------
324    Name: Matthias Blume (http://www.tti-c.org/blume/)
325    Date: 2006/05/17 14:00:00 CST
326    Tag: Release_110_59
327    Description:
328    
329    New working version (110.59).  NEW BOOTFILES!
330    
331    I am freezing 110.59.  Changes other than the version-number increase:
332    
333      eXene:
334    
335         * committed changes to eXene from Alley Stoughton:
336             "fixed bugs in X authorization and resource handling, as well
337              as in the pile and viewport widgets"
338    
339      Runtime:
340        * fixed linking problem with NetBSD 3.x.
341    
342      Lexgen:
343        * lexgen tool handles non-ascii characters in 7-bit mode the same
344          way that ml-lex does
345    
346        * lexgen propagates exceptions the same way that ml-lex does
347    
348      CML:
349        * Fixed a bug in the SyncVar polling functions (iGetPoll,
350          mTakePoll, and mGetPoll) that could lead to livelock.
351    
352    ----------------------------------------------------------------------
353    Name: Matthias Blume (http://www.tti-c.org/blume/)
354    Date: 2006/05/12 15:20:00 CST
355    Tag: blume-20060515-makedepend
356    Description:
357    
358    Implemented ml-makedepend (i.e., CM.sources) in a better (more robust)
359    way.  This should hopefully fix the ml-makedepend problem permanently.
360    
361    ----------------------------------------------------------------------
362    Name: Matthias Blume (http://www.tti-c.org/blume/)
363    Date: 2006/05/12 15:15:00 CST
364    Tag: blume-20060512-makedepend
365    Description:
366    
367    Fixed long-standing bug with ml-makedepend where it would output a
368    spurious dependency to a non-existing file.  (This is a simple fix.
369    It might need further looking into.)
370    
371    ----------------------------------------------------------------------
372    Name: Matthias Blume (http://www.tti-c.org/blume/)
373    Date: 2006/04/20 10:30:00 CDT
374    Tag: blume-20060420-heap2exec
375    Description:
376    
377    Committed patches received from Johannes 5 Joemann (joemann@befree.free.de)
378    that enable heap2exec under Linux and FreeBSD.
379    
380    ----------------------------------------------------------------------
381    Name: John Reppy
382    Date: 2006/04/14
383    Tag:
384    Description:
385    
386    MLRISC changes:
387      1) renamed GAS_PSEUDO_OPS to AS_PSEUDO_OPS and put it in its own file.
388      2) added support for NOTB and XORB operators in pseudo-op expressions
389      3) added DarwinPseudoOp functor that supports Darwin's assembler syntax.
390      4) added support for 64-bit integer literals
391    
392    ----------------------------------------------------------------------
393    Name: Matthias Blume (http://www.tti-c.org/blume/)
394  Date: yyyy/mm/dd  Date: yyyy/mm/dd
395  Tag: <post-commit CVS tag>  Tag: Release_110_58
396    Description:
397    
398    New working version (110.58).  NEW BOOTFILES!
399    
400    ----------------------------------------------------------------------
401    Name: Matthias Blume (http://www.tti-c.org/blume/)
402    Date: 2006/03/01 22:15:00 CST
403    Tag: blume-20060301-lexgen
404    Description:
405    
406    Incorporated several bugfixes to lexgen.  Compiler now compiles to
407    fixpoint when using lexgen instead of ml-lex.
408    
409    ----------------------------------------------------------------------
410    Name: Matthias Blume (http://www.tti-c.org/blume/)
411    Date: 2006/02/28 22:45:00 CST
412    Tag: blume-20060228-lexgen
413    Description:
414    
415    Removed ml-flex and added lexgen instead, using Aaron Turon's newly
416    provided tarball.  The generated lexers still have problems.
417    
418    ----------------------------------------------------------------------
419    Name: Matthias Blume (http://www.tti-c.org/blume/)
420    Date: 2006/02/26 23:30:00 CST
421    Tag: blume-20060226-ml-flex
422    Description:
423    
424    Removed ml-flex' dependency on regexp-lib.cm.  Turned installation
425    of ml-flex on by default.
426    
427    ----------------------------------------------------------------------
428    Name: Matthias Blume (http://www.tti-c.org/blume/)
429    Date: 2006/02/24 16:30:00 CST
430    Tag: blume-20060224-ml-flex
431    Description:
432    
433    Added ml-flex sources.  Partially integrated, but should not be
434    turned on yet!  (Read: leave it commented-out in config/targets!)
435    
436    ----------------------------------------------------------------------
437    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
438    Date: 2006/02/23
439    Tag: jhr-20060223-x86-64
440    Description:
441    Changes to support building on x86-64 systems (using the 32-bit mode).
442    Also cleaned up signal handling on Linux.  Support for pre-2.2 Linux
443    kernels dropped.
444    
445    ----------------------------------------------------------------------
446    Name: Allen Leung (leunga (at) reservoir (dot) com)
447    Date: 2006/02/22 15:07:00 EST
448    Tag: leunga-20060222-mdl-gen
449    Description:
450    
451      CM has changed.  Updated the script for rebuilding the MLRISC generated
452    files.
453    
454    ----------------------------------------------------------------------
455    Name: Matthias Blume (http://www.tti-c.org/blume/)
456    Date: 2006/02/14 17:30:00 CST
457    Tag: blume-20060214-intel-mac
458    Description:
459    
460    Hooked code for Darwin-specific Intel ABI into main compiler.
461    (This is a temporary solution which relies on the fact that the
462    compiler itself does not use NLFFI.  Eventually we need to divorce
463    intel mac from generic x86 unix code and make separate sets of binaries.)
464    
465    ----------------------------------------------------------------------
466    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
467    Date: 2006/02/13
468    Tag: jhr-20060213-intel-mac
469    Description:
470    Changed MLRISC x86 CCalls for partial support of MacOS X ABI.
471    
472    ----------------------------------------------------------------------
473    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
474    Date: 2006/02/06
475    Tag: jhr-20060206-intel-mac
476    Description:
477    Changes to support MacOS X on Intel hardware.  The C-calls support in
478    MLRISC must also be updated to support the MacOS X ABI.
479    
480    ----------------------------------------------------------------------
481    Name: Matthias Blume (http://www.tti-c.org/blume/)
482    Date: 2005/12/16 00:15:00 CST
483    Tag: blume-20051216-cm
484    Description:
485    
486    Improved error reporting and handling in CM.
487    
488    ----------------------------------------------------------------------
489    Name: Matthias Blume (http://www.tti-c.org/blume/)
490    Date: 2005/11/21 14:00:00 CST
491    Tag: blume-20051121-html-lib
492    Description:
493    
494    Enabling $/html-lib.cm in config/preloads did not work.  This is fixed
495    now.  (Since the anchor mapping for html-lib.cm is not yet in effect
496    at the time when config/preloads is processed, the library has to
497    be referred to by another name.  In 110.57 this would be
498    $SMLNJ-LIB/HTML/html-lib.cm.  I arranged for $smlnj/smlnj-lib/html-lib.cm
499    to be valid as well.)
500    
501    Thanks to Todd Wilson (Fresno) for alerting me to this issue.
502    
503    ----------------------------------------------------------------------
504    Name: Matthias Blume (http://www.tti-c.org/blume/)
505    Date: 2005/11/19 13:45:00 CST
506    Tag: Release_110_57
507    Description:
508    
509    Moved release tag for 110.57.
510    
511    ----------------------------------------------------------------------
512    Name: Matthias Blume (http://www.tti-c.org/blume/)
513    Date: 2005/11/19 23:35:00 CST
514    Tag: blume-20051119-fish
515    Description:
516    
517    Fixed a problem in config/install.sh where it tries to "fish" the
518    name of the CM metadata directory from the wrong place (because
519    the physical location of basis.cm has changed).  Also, corrected the
520    path anchor for $/html-lib.cm.  (Thanks to M. Fluet for pointing out
521    these problems.)
522    
523    ----------------------------------------------------------------------
524    Name: Matthias Blume (http://www.tti-c.org/blume/)
525    Date: 2005/11/16 14:30:00 CST
526    Tag: blume-orig-110_57
527    Description:
528    
529    New working version (110.57).  NEW BOOTFILES!
530    
531    UPDATE: The release tag has been moved to include a fix for a brown-paper-
532            bag glitch (see above).
533    
534    ----------------------------------------------------------------------
535    Name: Matthias Blume (http://www.tti-c.org/blume/)
536    Date: 2005/11/16 10:25:00 CST
537    Tag: blume-22051116-btrace
538    Description:
539    
540    Fixed problem with bogus exception message when using back-trace
541    facility.
542    
543    ----------------------------------------------------------------------
544    Name: Matthias Blume (http://www.tti-c.org/blume/)
545    Date: 2005/11/15 22:35:00 CST
546    Tag: blume-22051115-array2copy
547    Description:
548    
549    Added simple implementation of Array2.copy.  (Warning: mostly untested.)
550    
551    ----------------------------------------------------------------------
552    Name: Matthias Blume (http://www.tti-c.org/blume/)
553    Date: 2005/11/15 21:35:00 CST
554    Tag: blume-22051115-versiontool
555    Description:
556    
557    Reversed change to src/system/smlnj/internals/versiontool.cm.  This
558    file gets loaded as a tool -- by the equivalent of CM.make during the
559    run of CMB.make.  Thus, CMB's path configuration is meaningless for
560    it.  Instead, it has the status of "user code", so it should use
561    $/basis.cm to refer to the Basis library.  (At least that's true for
562    the purpose of bootstrapping the previous change.  In the future it
563    might make sense to have versiontool.cm refer to
564    $smlnj/basis/basis.cm, i.e., the version of the Basis that the
565    compiler itself uses.)
566    
567    Also patched src/system/testml to have it activate those extra anchor
568    bindings in config/extrapathconfig.
569    
570    ----------------------------------------------------------------------
571    Name: Matthias Blume (http://www.tti-c.org/blume/)
572    Date: 2005/11/15 16:35:00 CST
573    Tag: blume-22051115-libraries
574    Description:
575    
576    This change affects the way the following libraries are tied into
577    the system:
578    
579       $/basis.cm
580       $/smlnj-lib.cm
581       $/pp-lib.cm
582       $/controls-lib.cm
583       $/html-lib.cm
584       $/ml-yacc-lib.cm
585    
586    These libraries are now internally (as seen from the source code
587    of the implementation itself) known by the following names:
588    
589       $smlnj/basis/basis.cm
590       $smlnj/smlnj-lib/smlnj-lib.cm
591       $smlnj/smlnj-lib/pp-lib.cm
592       $smlnj/smlnj-lib/controls-lib.cm
593       $smlnj/smlnj-lib/html-lib.cm
594       $smlnj/ml-yacc/ml-yacc-lib.cm
595    
596    This makes it possible to work with code that requires different
597    versions of these libraries, and which refers to these libraries using
598    their "default" names (i.e., the first set of names above).  In other
599    words, one can un-define or re-define those default names without
600    compromising the proper functioning of the compiler itself.
601    
602    A similar procedure had already been performed for several of the
603    MLRISC libraries that are linked into the compiler.  I did some
604    cleanup on this code.
605    
606    A new file in the config directory (named extrapathconfig) is
607    responsible for setting up path anchors that the compiler itself does
608    not need, but that are typically required by user code.
609    
610    ----------------------------------------------------------------------
611    Name: Matthias Blume
612    Date: 2005/11/07 17:05:00 CST
613    Tag: blume-20051107-slice
614    Description:
615    
616    Fixed erroneous out-of-bounds test in the "update" function of
617    various *ArraySlice modules.  (Thanks to Vesa A. Norrman for pointing
618    out the problem.)
619    
620    Pushed some Basis changes through ML-Lex, CML, and eXene.
621    
622    ----------------------------------------------------------------------
623    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
624    Date: 2005/11/07
625    Description:
626    Fixed a Basis incompatibility: The depreciated function Substring.all
627    was removed (use Substring.full instead).
628    
629    ----------------------------------------------------------------------
630    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
631    Date: 2005/11/05
632    Description:
633    Tweaked interval set API in SML/NJ library; see the CHANGES file for details.
634    
635    ----------------------------------------------------------------------
636    Name: Matthias Blume (http://www.tti-c.org/blume/)
637    Date: 2005/11/02 16:25:00 CST
638    Tag: blume-20051102-hex
639    Description:
640    
641    * Runtime system bootstrap code now accepts hex digits in BOOTLIST
642      in either upper case or lower case format.
643    * Pushed changes to names of Pack<N>{Big,Little} structures through
644      CML and eXene.
645    
646    ----------------------------------------------------------------------
647    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
648    Date: 2005/11/02
649    Description:
650    Fixed a Basis incompatibility: Pack<N>{Big,Little} structures should
651    be called PackWord<N>{Big,Little}.
652    
653    ----------------------------------------------------------------------
654    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
655    Date: 2005/10/28
656    Description:
657    Fixed a minor Basis incompatibility: hex digits should be upper case.
658    
659    ----------------------------------------------------------------------
660    Name: Matthias Blume (blume (at) tti - c (dot) org)
661    Date: 2005/10/25 16:00:00 CDT
662    Tag: Release_110_56
663    Description:
664    
665    New working version (110.56).  NEW BOOTFILES!
666    
667    ----------------------------------------------------------------------
668    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
669    Date: 2005/10/25
670    Description:
671    Added interval sets to utility library (signatures INTERVAL_DOMAIN
672    and INTERVAL_SET, and functor IntervalSetFn).
673    
674    ----------------------------------------------------------------------
675    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
676    Date: 2005/10/14
677    Description:
678    Add Zhong Shao's fix for datatype equality functions.
679    
680    ----------------------------------------------------------------------
681    Name: Allen Leung (leunga (at) reservoir (dot) com)
682    Date: 2005/10/14 12:30:00 EST
683    Tag: leunga-20051014-x86-spill
684    Description:
685    
686    Bug fix a bug found by Carl Hauser.
687    There was a typo in the reload code for FCMP in x86SpillInstr.sml.
688    
689    ----------------------------------------------------------------------
690    Name: Allen Leung (leunga (at) reservoir (dot) com)
691    Date: 2005/10/14 11:15:00 EST
692    Tag: leunga-20051014-x86-asm
693  Description:  Description:
694    
695    Removed some debugging code in file x86Asm.sml.
696    The function emit_operand was printing out debugging output.
697    
698    ----------------------------------------------------------------------
699    Name: John Reppy
700    Date: 2005/07/27
701    Tag:
702    Description:
703    
704    Fixed ml-lex to recognize "\r" as representing carriage return.
705    
706    ----------------------------------------------------------------------
707    Name: John Reppy
708    Date: 2005/07/27
709    Tag:
710    Description:
711    
712    Fixed ml-yacc to work on files with non-native end-of-line
713    encodings (e.g., Windows text file on a Unix system).
714    
715    ----------------------------------------------------------------------
716    Name: John Reppy
717    Date: 2005/07/20
718    Tag:
719    Description:
720    
721    Added changes from Dominic Evans (oldmanuk (at) gmail (dot) com)
722    to support HPUX 11.
723    
724    ----------------------------------------------------------------------
725    Name: John Reppy
726    Date: 2005/07/06
727    Tag:
728    Description:
729    
730    Changes to the SML/NJ library.  See smlnj-lib/CHANGES for details.
731    
732    ----------------------------------------------------------------------
733    Name: Matthias Blume (blume (at) tti - c (dot) org)
734    Date: 2005/07/06 00:45:00 CDT
735    Tag: blume-20050706-slice-copy
736    Description:
737    
738    Fixed reversed logic for deciding whether to "copy up" or "copy down"
739    in *-array-slice.sml.
740    
741    ----------------------------------------------------------------------
742    Name: Allen Leung (leunga (at) reservoir (dot) com)
743    Date: 2005/05/31 17:00:00 EST
744    Tag: leunga-20050531-cygwin-fault-2
745    Description:
746    
747    A typo in the cygwin code fixed.
748    
749    ----------------------------------------------------------------------
750    Name: Allen Leung (leunga (at) reservoir (dot) com)
751    Date: 2005/05/31 16:47:00 EST
752    Tag: leunga-20050531-cygwin-fault
753    Description:
754    
755    Updated Cygwin's fault/signal handling to match the Windows version.
756    Updated the export list.
757    
758    ----------------------------------------------------------------------
759    Name: Matthias Blume (blume (at) tti - c (dot) org)
760    Date: 2005/05/18 13:35:00 CDT
761    Tag: Release_110_54
762    Description:
763    
764    New working version (110.54).  NEW BOOTFILES!
765    
766    ----------------------------------------------------------------------
767    Name: Matthias Blume (blume (at) tti - c (dot) org)
768    Date: 2005/05/18 11:58:00 CDT
769    Tag: blume-20050518-installer
770    Description:
771    
772    Added support scripts for Mac OS X PackageMaker and modified
773    config/install.sh so that it supports re-dumping a heap image
774    after customization.
775    
776    ----------------------------------------------------------------------
777    Name: Matthias Blume (blume (at) tti - c (dot) org)
778    Date: 2005/05/18 10:55:00 CDT
779    Tag: blume-20050518-realdiv-noovld
780    Description:
781    
782    Un-overloaded / to work around bug in overloading resolution code.
783    
784    ----------------------------------------------------------------------
785    Name: Matthias Blume (blume (at) tti - c (dot) org)
786    Date: 2005/05/16 23:50:00 CDT
787    Tag: blume-20050516-redump-heap
788    Description:
789    
790    Added mechanism for re-creating a heap file for the interactive system
791    after configuration variables have been changed.
792    
793       CM.redump_heap : string -> unit
794    
795    This is much like SMLofNJ.exportML, but starting from the resulting
796    heap does not return to the caller of CM.redump_heap but
797    restarts the interactive system from scratch.  The original call of
798    CM.redump_heap does not return but ends the interactive session.
799    Thus, CM.redump_heap is a lot like SMLofNJ.exportFn.
800    
801    Internally, redump_heap winds the dynamic execution context back to
802    the point where the original heap image was created and re-executes
803    the heap image generation code in the boot code.
804    
805    ----------------------------------------------------------------------
806    Name: Matthias Blume (blume (at) tti - c (dot) org)
807    Date: 2005/05/09 21:55:00 CDT
808    Tag: blume-20050509-word64
809    Description:
810    
811    Added a hack to the existing hack known as Word64 to make fromString
812    behave correctly.  I am still not sure whether Word64.scan will work
813    as specified with respect to the interaction of radix and prefix.
814    
815    ----------------------------------------------------------------------
816    Name: Allen Leung (leunga (at) reservoir (dot) com)
817    Date: 2005/05/04 11:50:00 EST
818    Tag: leunga-20050504-checkgc
819    Description:
820    
821    Added a gc protocol checking phase.  This phase is enabled with
822    the flag "check-gc".  "debug-check-gc" turns on the verbose mode.
823    
824    ----------------------------------------------------------------------
825    Name: Matthias Blume (blume (at) tti - c (dot) org)
826    Date: 2005/05/04 10:45:00 CDT
827    Tag: blume-20050504-intinf
828    Description:
829    
830    Fixed a bug in the implementation of div and mod for IntInf.
831    Thanks to Neophytos Michael for reporting the problem.
832    
833    ----------------------------------------------------------------------
834    Name: Matthias Blume (blume (at) tti - c (dot) org)
835    Date: 2005/05/04 10:35:00 CDT
836    Tag: blume-20050504-join
837    Description:
838    
839    Added a "join" combinator to the ParserComb module in smlnj-lib.cm.
840    
841    ----------------------------------------------------------------------
842    Name: Matthias Blume (blume (at) tti - c (dot) org)
843    Date: 2005/02/28 23:40:00 CST
844    Tag: blume-20050228-mVar
845    Description:
846    
847    Fixed serious bug (brown paper bag variety) in new implementation of
848    structure Atom in CML.  (I had accidentally used a mailbox instead of
849    an mvar, leaving the door open for races.)
850    
851    ----------------------------------------------------------------------
852    Name: Matthias Blume (blume (at) tti - c (dot) org)
853    Date: 2005/02/25 15:00:00 CST
854    Tag: Release_110_53
855    Description:
856    
857    New working version (110.53).  NEW BOOTFILES!
858    
859    ----------------------------------------------------------------------
860    Name: Matthias Blume (blume (at) tti - c (dot) org)
861    Date: 2005/02/25 14:50:00 CST
862    Tag: blume-20050225-susp
863    Description:
864    
865    Brought back SMLofNJ.Susp.  The underlying suspension type is the one
866    implemented in Core -- which means that it is the same as the one used
867    by the lazy extension.
868    
869    ----------------------------------------------------------------------
870    Name: Matthias Blume (blume (at) tti - c (dot) org)
871    Date: 2005/02/24 16:50:00 CST
872    Tag: blume-20050224-cml-atom
873    Description:
874    
875    Simpler and at the same time more general implementation of structure
876    Atom in CML.
877    
878    ----------------------------------------------------------------------
879    Name: Matthias Blume (blume (at) tti - c (dot) org)
880    Date: 2005/02/15 17:35:00 CST
881    Tag: blume-20050215-tools
882    Description:
883    
884    Created new "tools" directory under "src" and moved "TraceDebugProf"
885    there.
886    
887    ----------------------------------------------------------------------
888    Name: Matthias Blume (blume (at) tti - c (dot) org)
889    Date: 2005/02/10 17:55:00 CST
890    Tag: blume-20050210-longlong
891    Description:
892    
893    Implemented "long long" arguments and results for NLFFI.  (Only the
894    PPC/MacOS implementation is complete, the other backends still need to
895    be updated.)
896    
897    ----------------------------------------------------------------------
898    Name: Matthias Blume (blume (at) tti - c (dot) org)
899    Date: 2005/01/24 17:40:00 CST
900    Tag: blume-20050124-mlyacc
901    Description:
902    
903    Minor cleanup in ML-Yacc rule printing mechanism.  This should fix a
904    problem with certain "as" patterns which previously got rendered
905    using incorrect syntax.
906    
907    ----------------------------------------------------------------------
908    Name: Matthias Blume (blume (at) tti - c (dot) org)
909    Date: 2005/01/18 12:00:00 CST
910    Tag: blume-20050118-profile
911    Description:
912    
913    Made time profiling code (interrupt handler) in runtime system aware
914    of new array representation.
915    
916    ----------------------------------------------------------------------
917    Name: Matthias Blume (blume (at) tti - c (dot) org)
918    Date: 2005/01/14 18:00:00 CST
919    Tag: blume-20050114-heap2exec
920    Description:
921    
922    Implemented new (but still experimental) heap2exec facility.  This is
923    tested under Mac OS X and should work under Linux (will test shortly).
924    It will probably also work on the Sparc (will test some time later).
925    
926      - removed old "HACKED_STANDALONE" hack from runtime
927    
928    To be able to test this, uncomment the request for "heap2asm" in
929    config/targets prior to installation.  (Notice that this is different
930    from "heap2exec" mentioned below.  Not a typo.)
931    
932    To perform an actual test, run the command
933    
934       $ bin/heap2exec heapfile execfile
935    
936    (You can put heap2exec on your shell's path.)
937    
938    For example, run
939    
940      $ bin/heap2exec bin/.heap/ml-yacc.ppc-darwin mly
941    
942    This will create a standalone executable called "mly" which you can
943    then invoke directly as a command.
944    
945    ----------------------------------------------------------------------
946    Name: Matthias Blume (blume (at) tti - c (dot) org)
947    Date: 2005/01/07 11:44:00 CST
948    Tag: blume-20050107-mlstring
949    Description:
950    
951    fixed off-by-one error in ML_STRING macro (globals.c)
952    
953    ----------------------------------------------------------------------
954    Name: Matthias Blume (blume (at) tti - c (dot) org)
955    Date: 2004/12/23 18:00:00 CST
956    Tag: blume-20041223-santa
957    Description:
958    
959    Made ml-build script "smarter" (but only very little).
960    
961    ----------------------------------------------------------------------
962    Name: Matthias Blume (blume (at) tti - c (dot) org)
963    Date: 2004/12/21 15:05:00 CST
964    Tag: blume-20041221-longlong
965    Description:
966    
967    * Implemented access to signed and unsigned long long data in NLFFI.
968    (The parameter-passing part of the picture has not complete. But
969    data structure access seems to work.)
970    
971    * Fixed CM's incorrect assumption that the PPC is little-endian.
972      (On the Mac, it is big-endian.  And that's currently our only
973      PPC platform.)
974    
975    ----------------------------------------------------------------------
976    Name: Matthias Blume (blume (at) tti - c (dot) org)
977    Date: 2004/12/21 12:50:00 CST
978    Tag: blume-20041221-memory
979    Description:
980    
981    Some cleanup in the $c/memory.cm library: separated some concerns by
982    moving allocation code and memory access code each into their own
983    files.
984    
985    ----------------------------------------------------------------------
986    Name: Allen Leung (leunga (at) reservoir (dot) com)
987    Date: 2004/12/17 16:12:00 EST
988    Tag: leunga-20041217-cygwin-smlnj-home
989    Description:
990    
991        The Unix I/O library of SML/NJ on cygwin does not understand
992    Windows style pathname, so problems arise when SMLNJ_HOME is set
993    to a Windows style pathname.  _run-sml now converts SMLNJ_HOME
994    to a POSIX pathname on cygwin.
995    
996    ----------------------------------------------------------------------
997    Name: Matthias Blume (blume (at) tti - c (dot) org)
998    Date: 2004/12/16 13:35:00 CST
999    Tag: Release_110_52
1000    Description:
1001    
1002    Last-minute changes incorporated into 110.52.  Release tag moved.
1003    
1004    The changes:
1005       - HashString.hashString' -> HashString.hashSubstring
1006       - bug fix in UnivariateStats
1007    
1008    ----------------------------------------------------------------------
1009    Name: Matthias Blume (blume (at) tti - c (dot) org)
1010    Date: 2004/12/15 23:40:00 CST
1011    Tag: blume-20041215-hashSubstring
1012    Description:
1013    
1014    - HashString.hashString' -> HashString.hashSubstring
1015    - corresponding changes in atom.sml
1016    - "de-compressed" (aka. un-obfuscated) code for UnivariateStats and
1017      added some comments
1018    
1019    ----------------------------------------------------------------------
1020    Name: Matthias Blume (blume (at) tti - c (dot) org)
1021    Date: 2004/12/15 15:30:00 CST
1022    Tag: (Release_110_52)
1023    Description:
1024    
1025    New working version (110.52).  NEW BOOTFILES!
1026    
1027    ----------------------------------------------------------------------
1028    Name: Matthias Blume (blume (at) tti - c (dot) org)
1029    Date: 2004/12/15 12:45:00 CST
1030    Tag: blume-20041215-spaces
1031    Description:
1032    
1033    More on the space problem (this time for Win32).
1034    
1035    ----------------------------------------------------------------------
1036    Name: Matthias Blume (blume (at) tti - c (dot) org)
1037    Date: 2004/12/14 17:30:00 CST
1038    Tag: blume-20041214-spaces
1039    Description:
1040    
1041    Hacked some of the scripts (in particular: the installer) to cope with
1042    spaces in filenames a bit better.  But beware: the current "solution"
1043    is likely still full of bugs and inherently incomplete.  (We need to
1044    do away with those shell scripts for a comprehensive solution.)
1045    
1046    ----------------------------------------------------------------------
1047    Name: Matthias Blume (blume (at) tti - c (dot) org)
1048    Date: 2004/12/13 14:45:00 CST
1049    Tag: blume-20041213-ml-makedepend
1050    Description:
1051    
1052    Fixed bug in code for ml-makedepend.
1053    
1054    ----------------------------------------------------------------------
1055    Name: Matthias Blume (blume (at) tti - c (dot) org)
1056    Date: 2004/12/09 16:30:00 CST
1057    Tag: blume-20041209-statistics
1058    Description:
1059    
1060    Added two simple but potentially useful statistics modules to SML/NJ Library.
1061    (See CHANGES file there.)
1062    
1063    ----------------------------------------------------------------------
1064    Name: Matthias Blume (blume (at) tti - c (dot) org)
1065    Date: 2004/12/01 16:50:00 CST
1066    Tag: blume-20041201-atom
1067    Description:
1068    
1069    smlnj-lib:
1070    
1071      Added function HashString.hashString' for substrings.
1072      Hand-inlined CharVector.foldl into HashString (for speed).
1073      Modified implementation of structure Atom to avoid extracting
1074      strings from substrings unless necessary.
1075      (Also see CHANGES file for smlnj-lib.)
1076    
1077    ----------------------------------------------------------------------
1078    Name: Matthias Blume (blume (at) tti - c (dot) org)
1079    Date: 2004/11/24 22:15:00 CST
1080    Tag: blume-20041124-cml
1081    Description:
1082    
1083    Made sure CML compiles when Position = Int64.
1084    
1085    ----------------------------------------------------------------------
1086    Name: Matthias Blume (blume (at) tti - c (dot) org)
1087    Date: 2004/11/24 14:30:00 CST
1088    Tag: blume-20041124-position
1089    Description:
1090    
1091    The compiler can now be compiled in a mode that makes structure Position
1092    equal to Int64.  The default, however, is unchanged (Position = Int31)
1093    for the time being.
1094    
1095    To enable 64-bit positions, use the following procedure:
1096    
1097    1. Start sml
1098    2. Autoload $smlnj/cmb.cm (if not already autoloaded)
1099    3. Type
1100          #set (CMB.symval "USE_64_BIT_POSITIONS") (SOME 1);
1101    4. Run CMB.make() as usual.
1102    
1103    This is barely tested.  The only test so far was a little SML program
1104    counting the number of characters in an 8-gigabyte file by
1105    reading it character-by-character.  That test was successful.
1106    
1107    In support of 64-bit positions, a number of new functions have been
1108    added to the runtime system.
1109    
1110    ----------------------------------------------------------------------
1111    Name: Matthias Blume (blume (at) tti - c (dot) org)
1112    Date: 2004/11/23 14:45:00 CST
1113    Tag: blume-20041123-useFile
1114    Description:
1115    
1116    Fixed a problem with unhelpful error messages related to problems with
1117    .cm- or .sml files that appear as part of the sml command line.
1118    
1119    ----------------------------------------------------------------------
1120    Name: Matthias Blume (blume (at) tti - c (dot) org)
1121    Date: 2004/11/18 15:40:00 CST
1122    Tag: Release_110_51
1123    Description:
1124    
1125    New working version (110.51).  NEW BOOTFILES!
1126    
1127    ----------------------------------------------------------------------
1128    Name: Matthias Blume (blume (at) tti - c (dot) org)
1129    Date: 2004/11/18 15:35:00 CST
1130    Tag: <none>
1131    Description:
1132    
1133    Enabled dlopen and friends for FreeBSD (as recommended by Johannes 5
1134    Joemann).
1135    
1136    ----------------------------------------------------------------------
1137    Name: Allen Leung (leunga (at) reservoir (dot) com)
1138    Date: 2004/11/17 16:05:21 EST 2004
1139    Tag: leunga-20041117-mlrisc-live-kill
1140    Description:
1141    
1142       Added support for MLTree constructs LIVE and KILL
1143    to all the architectures.
1144    
1145    ----------------------------------------------------------------------
1146    Name: Matthias Blume (blume (at) tti - c (dot) org)
1147    Date: 2004/11/13 00:20:00 CST
1148    Tag: blume-20041113-versiontool
1149    Description:
1150    
1151    - Stripped down the versiontool: It now only handles the version number.
1152      The date string is generated at bootstrap time (during makeml).
1153    
1154    - In a previous commit, fixed a minor issue with how polyequal is being
1155      translated.  In particular, the code now "looks through" abstractions.
1156      This results in slightly fewer polyEqual warnings and hopefully slightly
1157      more efficient code.  Important examples for where this matters are
1158      the new int64 and word64 types.
1159    
1160    ----------------------------------------------------------------------
1161    Name: Matthias Blume (blume (at) tti - c (dot) org)
1162    Date: 2004/11/12 00:30:00 CST
1163    Tag: blume-20041112-int64
1164    Description:
1165    
1166    Structure Int64 fully hooked in.  (The implementation is not very
1167    efficient, though.)
1168    
1169    ----------------------------------------------------------------------
1170    Name: Matthias Blume (blume (at) tti - c (dot) org)
1171    Date: 2004/11/11 17:30:00 CST
1172    Tag: blume-20041111-more64
1173    Description:
1174    
1175    All the pieces of Word64 are now there, with the exception of the
1176    conversions from and to LargeWord. (Eventually these need to be identities,
1177    but for the time being they don't even make sense because LargeWord is
1178    32-bit wide.)
1179    
1180    Also started to add similar support for Int64, but major pieces of that
1181    are still missing.
1182    
1183    ----------------------------------------------------------------------
1184    Name: Matthias Blume (blume (at) tti - c (dot) org)
1185    Date: 2004/11/11 00:15:00 CST
1186    Tag: blume-20041111-word64
1187    Description:
1188    
1189    Structure Word64 is now (almost) complete, word literals and patterns
1190    seem to work.  There are a few odd pieces missing.  In particular,
1191    I didn't do the {from,to}LargeWord parts because LargeWord is still Word32
1192    at the moment.
1193    
1194    Making Word64 official would mean that LargeWord becomes Word64.  But
1195    this requires extreme care because most word-word conversions have to
1196    go through LargeWord, so making a mistake means loss of efficiency or
1197    worse.  Eventually there will be a solution similar to (but actually
1198    simpler than) what I did with IntInf.
1199    
1200    ----------------------------------------------------------------------
1201    Name: Matthias Blume (blume (at) tti - c (dot) org)
1202    Date: 2004/11/10 18:12:00 CST
1203    Tag: blume-20041110-64bit
1204    Description:
1205    
1206    More 64-bit hacking (but still not even half-way there yet).
1207    Also, some assorted improvements to the handling of 8-bit words.
1208    
1209    ----------------------------------------------------------------------
1210    Name: Matthias Blume (blume (at) tti - c (dot) org)
1211    Date: 2004/11/09 17:50:00 CST
1212    Tag: <none>
1213    Description:
1214    
1215    Started adding some infrastructure for supporting 64-bit int- and
1216    word-types.  (Still in its very early stages.)
1217    
1218    ----------------------------------------------------------------------
1219    Name: Matthias Blume (blume (at) tti - c (dot) org)
1220    Date: 2004/10/28 10:45:00 CDT
1221    Tag: Release_110_50
1222    Description:
1223    
1224    New working version (110.50).  NEW BOOTFILES!
1225    
1226                 =====================
1227    
1228    Also:
1229    
1230      - Changend config/srcarchiveurl from a file just
1231        containing the URL string into a file containing
1232        shell script code.  The code has access to the $VERSION variable.
1233      - Made corresponding changes to config/install.sh and config/unpack.
1234      - Default contents of config/srcarchiveurl uses $VERSION and
1235        normally does not have to be edited to reflect a version change.
1236    
1237      (As a result, a version change can be done by just editing
1238       config/version, the rest is now automatic.)
1239    
1240    ----------------------------------------------------------------------
1241    Name: Matthias Blume (blume (at) tti - c (dot) org)
1242    Date: 2004/10/27 17:50:00 CDT
1243    Tag: blume-20041027-btrace-msg
1244    Description:
1245    
1246    BackTrace.monitor now also reports the source of the exception that
1247    triggered the trace.
1248    
1249    ----------------------------------------------------------------------
1250    Name: Matthias Blume (blume (at) tti - c (dot) org)
1251    Date: 2004/10/27 17:20:00 CDT
1252    Tag: blume-20041027-x86-c-calls
1253    Description:
1254    
1255    This is the HISTORY entry for two earlier commits, both concerning
1256    the x86 c-calls code in MLRISC:
1257    
1258      - added a missing LOAD in the code that deals with struct arguments
1259      - made sure the caller does not add the wrong number of bytes to the
1260        stack pointer after a call of a function returning a struct
1261        (the callee already pops the implicit argument which points to
1262         the space reserved for the result)
1263    
1264    ----------------------------------------------------------------------
1265    Name: Allen Leung (leunga (at) reservoir (dot) com)
1266    Date: 2004/10/24 14:00:00 EST
1267    Tag: leunga-20041024-x86-gas-fucomip
1268    Description:
1269    
1270       John discovered a bug in the syntax of fucomip.
1271       The opcodes FU?COMIP? have been changed to
1272    
1273           fu?comip? %st(i), %st
1274    
1275    ----------------------------------------------------------------------
1276    Name: Matthias Blume (blume (at) tti - c (dot) org)
1277    Date: 2004/10/20 15:06:00 CDT
1278    Tag: blume-20041020-standalone-backtrace
1279    Description:
1280    
1281    Added a mechanism for getting back-trace information from standalone
1282    programs.  Here is how it works:
1283    
1284       1. The part of the program from which you want to get backtrace
1285          information (usually the whole program) should be wrapped with
1286          BackTrace.monitor.  This is a (unit->'a)->'a function, and your
1287          main program could be modified from something like
1288    
1289             fun main (pgm, args) = ...
1290    
1291         to
1292    
1293            fun main (pgm, args) = BackTrace.monitor (fn () => ...)
1294    
1295       2. To be able to access BackTrace.monitor, you have to add
1296          library $smlnj-tdp/plugins.cm to the .cm file that contains your
1297          main function.
1298    
1299       3. Remove all compiled code (i.e., all the .cm/ subdirectories that
1300          CM might have created in the past for your project).
1301    
1302       4. Build the system using this command line:
1303    
1304             ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm \
1305                      myprog.cm MyProg.main myprog
1306    
1307          instead of the usual
1308    
1309             ml-build myprog.cm MyProg.main myprog
1310    
1311    I changed a library name:
1312    
1313       $/trace-debug-profile.cm --> $smlnj-tdp/plugins.cm
1314    
1315    New libraries:
1316    
1317       $smlnj-tdp/back-trace.cm
1318          -- when loaded causes the back-trace plugin to be installed
1319       $smlnj-tdp/coverage.cm
1320          -- when loaded causes the coverage plugin to be installed
1321    
1322    ----------------------------------------------------------------------
1323    Name: Matthias Blume (blume (at) tti - c (dot) org)
1324    Date: 2004/10/18 16:45:00 CDT
1325    Tag: blume-20041018-groupowner
1326    Description:
1327    
1328    Added an "obsolete" warning for the "group owner" syntax to CM's parser.
1329    
1330    Eliminated group owner specs from .cm files throughout the source tree.
1331    
1332    ----------------------------------------------------------------------
1333    Name: Matthias Blume (blume (at) tti - c (dot) org)
1334    Date: 2004/10/15 15:45:00 CDT
1335    Tag: blume-20041015-coverage
1336    Description:
1337    
1338    * Test coverage tool added!
1339    * Further reorganization of tracing-, debugging-, and profiling support:
1340    
1341        - moved original BTImp -- now called BackTrace -- into a separate
1342          library called $/trace-debug-profile.cm
1343        - eliminated all mentions of BTrace from SMLofNJ.Internals
1344        - only the instrumentation mechanism is now left in the compiler proper
1345        - BackTrace module is a plugin which is NOT plugged in by default
1346        - Coverage module is another such plugin
1347    
1348    To get the benefits of any of these plugin modules, the code in
1349    question must be compiled with tdp instrumentation turned on.  This
1350    can be done by setting SMLofNJ.Internals.TDP.mode to true.
1351    (The ref cell is also controlled via the -Ctdp.instrument=... switch.)
1352    
1353    Plugins are selected at link time.  (Pre-compiled instrumented code
1354    can be re-loaded with different plugins in effect.)  When an
1355    instrumented module is linked, whatever plugins are at that time
1356    enabled will come into effect for that module.
1357    
1358    To enable the back-trace plugin, load library $/trace-debug-profile.cm
1359    and invoke BackTrace.install() (e.g., from the interactive prompt).
1360    To enable the coverage plugin, load the same library and invoke
1361    Coverage.install().
1362    
1363    Back-traces are generated automatically on uncaught exceptions and
1364    when the code in question explicitly invokes BackTrace.trigger().
1365    
1366    Coverage (and execution frequency-) information must be queried
1367    explicitly by calling Coverage.not_covered and Coverage.hot_spots.
1368    
1369    ----------------------------------------------------------------------
1370    Name: Matthias Blume (blume (at) tti - c (dot) org)
1371    Date: 2004/10/14 17:40:00 CDT
1372    Tag: blume-20041014-tdp-core
1373    Description:
1374    
1375    Snapshot of a significant overhaul of how the trace/debug/profile support
1376    is hooked into the system (specifically: Core and SMLofNJ.Internals).
1377    
1378    ----------------------------------------------------------------------
1379    Name: Matthias Blume (blume (at) tti - c (dot) org)
1380    Date: 2004/10/13 16:34:00 CDT
1381    Tag: blume-20041013-tdp
1382    Description:
1383    
1384    Some rationalization of names:
1385    
1386       structure BTrace -> structure TDPInstrument
1387       etc.
1388    
1389    This is is preparation of using the original back-trace
1390    instrumentation for other purposes.  "TDP" stands for
1391    Trace/Debug/Profile.
1392    
1393    The control flag controlling whether instrumentation is on or off is now
1394    registered under a different name, so instead of running sml as
1395    
1396     sml -Cinstrument.btrace-mode=true
1397    
1398    one has to say
1399    
1400     sml -Ctdp.instrument=true
1401    
1402    ----------------------------------------------------------------------
1403    Name: Matthias Blume (blume (at) tti - c (dot) org)
1404    Date: 2004/10/11 16:37:00 CDT
1405    Tag: blume-20041011-regions
1406    Description:
1407    
1408    Made some minor modifications to elabcore.sml to have source regions
1409    be propagated more tightly -- resulting in better (i.e., smaller)
1410    regions being reported in error- and debug messages.
1411    
1412    ----------------------------------------------------------------------
1413    Name: Matthias Blume (blume (at) tti - c (dot) org)
1414    Date: 2004/10/08 22:50:00 CDT
1415    Tag: blume-20041008-cmkw
1416    Description:
1417    
1418    Fixed handling of keywords in .cm files: After seeing "is" the lexer
1419    treats subsequent occurrences of "group", "library", "source", "is",
1420    "*", and "-" as ordinary identifiers rather than keywords.
1421    
1422    Most seriously, this fixes a problem with CM's "shell" tool.  The tool
1423    is supposed to accept a tool argument called "source", but this did
1424    not work because of the clash with the keyword.
1425    
1426    ----------------------------------------------------------------------
1427    Name: Matthias Blume (blume (at) tti - c (dot) org)
1428    Date: 2004/10/07 16:00:00 CDT
1429    Tag: blume-20041007-cleanup
1430    Description:
1431    
1432    Assorted cleanup work:
1433    
1434      - got rid of intstrmap in favor of using the library's
1435        hash table implementation
1436      - threw out most of the pathnames stuff, as it was not used anyway
1437      - simplified tokentable implementation
1438      - fixed some minor spelling errors
1439    
1440    ----------------------------------------------------------------------
1441    Name: Matthias Blume (blume (at) tti - c (dot) org)
1442    Date: 2004/10/06 15:15:15 CDT
1443    Tag: blume-20041006-handler
1444    Description:
1445    
1446    Cleaned up the absyn to reflect the invariant that HANDLE always
1447    carries a FNexp as part of the type definition.  This eliminates some
1448    superfluous sanity checks at runtime down the road.
1449    
1450    Some minor cleanup of the btrace code.
1451    
1452    ----------------------------------------------------------------------
1453    Name: Matthias Blume (blume (at) tti - c (dot) org)
1454    Date: 2004/10/01 10:20:30 CDT
1455    Tag: blume-20041001-slave
1456    Description:
1457    
1458    Added hack to make slave mode work in the presence of the version
1459    tool.  (Still, since the master does two passes over the code for
1460    CMB.make, the release number gets bumped twice when slaves are
1461    attached.  I don't know if this is worth fixing...)
1462    
1463    ----------------------------------------------------------------------
1464    Name: Matthias Blume (blume (at) tti - c (dot) org)
1465    Date: 2004/09/30 10:55:00 CDT
1466    Tag: blume-20040930-version
1467    Description:
1468    
1469    * Moved the "version" magic into its own little library under
1470      src/system/smlnj/internal.  This avoids expensive reconstruction of
1471      a stable src/compiler/core.cm.
1472    
1473    * At the same time, structure CompilerVersion is now known as
1474      structure SMLNJVersion.
1475    
1476    * Arranged for the version tool to NOT kick in when rebuilding the system
1477      (makeml -rebuild, fixpt).  Otherwise one would never reach a fixpoint.
1478      Also, loading the versiontool does not work when rebuilding the system
1479      because CM is not properly initialized at that time.
1480    
1481    ----------------------------------------------------------------------
1482    Name: Matthias Blume (blume (at) tti - c (dot) org)
1483    Date: 2004/09/29 14:00:00 CDT
1484    Tag: blume-20040929-autoversion
1485    Description:
1486    
1487    Implemented some CM magic to have
1488        file src/compiler/TopLevel/main/version.sml
1489    generated automagically.
1490    The version is taken from two files: config/version and config/release.
1491    The first is expected to contain a two-part version number such as 110.49.
1492    The second should contain a single number, but it may be missing.
1493    
1494    If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
1495    time the version tool is loaded (which is the first time you say CMB.make),
1496    then the tool will increment the value stored in config/release every
1497    time CMB.make is invoked.
1498    
1499    The binfile format is now insensitive to anything beyond the first
1500    two components of a version number, so bumping the release does not render
1501    binfiles incompatible.  Auto-bumping can be used to keep track of versions
1502    during development without invalidating existing binfiles.
1503    
1504    In any case, every CMB.make updates the date information in version.sml.
1505    (This is the date that is printed in the banner.)
1506    
1507    ----------------------------------------------------------------------
1508    Name: Matthias Blume (blume (at) tti - c (dot) org)
1509    Date: 2004/09/28 10:53:00 CDT
1510    Tag: blume-20040928-controls
1511    Description:
1512    
1513    Some cleanup of the controls code.
1514    
1515    ----------------------------------------------------------------------
1516    Name: Matthias Blume (blume (at) tti - c (dot) org)
1517    Date: 2004/09/27 22:08:00 CDT
1518    Tag: blume-20040927-controls
1519    Description:
1520    
1521    Added two pieces of functionality to the Controls interface:
1522    
1523    1.   val save'restore: 'a control -> unit -> unit
1524    
1525       grabs the current value of the control in stage 1 and restores it
1526       in stage 2.
1527    
1528    2.   val set' : 'a control * 'a -> unit -> unit
1529    
1530       stores the given value into the control in stage 2 (i.e., delayed)
1531       but does all error checking in stage 1.
1532       (This is for string controls that need to do parse their argument --
1533        something that might fail.  In some cases, notably in CM, one
1534        already knows the intended argument but wants to delay the actual
1535        assignment until a time when error recovery would be more difficult.)
1536    
1537    Changed the handling of controls in tool arguments to classes "sml" and
1538    "lazysml":
1539       - use Controls.save'restore as a more robust way of restoring the
1540         old value (in particular: without having to re-parse the string)
1541       - use controls to handle the "overload" keyword in the init group
1542         (I believe this change actually fixes a long-standing obscure bug.)
1543    
1544    ----------------------------------------------------------------------
1545    Name: Matthias Blume (blume (at) tti - c (dot) org)
1546    Date: 2004/09/27 17:00:00 CDT
1547    Tag: blume-20040927-lazysml
1548    Description:
1549    
1550    Added a new tool class called "lazysml" to CM's tool chest.  The only
1551    difference to "sml" is that compilation is done with Control.lazysml
1552    set to true.  A source of class "lazysml" is automatically recognized
1553    by a file name suffix of ".lml".
1554    
1555    In addition to the above feature, the original class "sml" now also
1556    supports a tool argument "lazy" which has the same effect.  As a
1557    result, the following three lines are equivalent:
1558    
1559        foo.sml : lazysml
1560        foo.sml : sml (lazy)
1561        foo.sml (lazy)
1562    
1563    The setting goes into effect both during parsing and during
1564    compilation.  The original setting is restored right after parsing and
1565    after compilation, respectively.
1566    
1567    In addition to all the above, there is also a general mechanism to set
1568    ANY of the "controls" that are available at the command line via
1569    "-C..." on a per-sml-file basis.  The same rules that apply for "lazy"
1570    apply as well. (In fact, "lazy" is implemented as a special case of
1571    the general mechanism.)
1572    
1573    The .cm file syntax uses a new keyword tool argument called "with".
1574    There are several ways of indicating the desired settings:
1575    
1576        foo.sml (with:parser.quotations=true)
1577        foo.sml (with:(name:parser.quotations value:true))
1578        foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
1579        foo.sml (with:(name1=value1 name2=value2 ...))
1580        foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
1581    
1582        etc.
1583    
1584    Another possible abbreviation is to leave out the =v or value:v part
1585    if the name refers to a boolean control (in which case the value is
1586    taken to be true).  Thus, one could get lazy sml also by saying:
1587    
1588        foo.sml (with:parser.lazy-keyword=true)
1589        foo.sml (with:parser.lazy-keyword)
1590        foo.sml (with:(name:parser.lazy-keyword value:true))
1591        foo.sml (with:(name:parser.lazy-keyword))
1592    
1593    ----------------------------------------------------------------------
1594    Name: Matthias Blume (blume (at) tti - c (dot) org)
1595    Date: 2004/09/24 16:22:00 CDT
1596    Tag: blume-20040924-ppc-long-branch
1597    Description:
1598    
1599    Turned message about "emiting long form of branch" off by default.
1600    Added a control flag to turn it back on when desired.
1601    
1602    ----------------------------------------------------------------------
1603    Name: Matthias Blume (blume (at) tti - c (dot) org)
1604    Date: 2004/09/24 16:05:00 CDT
1605    Tag: blume-20040924-rounding
1606    Description:
1607    
1608    Applied patch for setting rounding modes under Mac OS X.  Thanks to
1609    Melissa O'Neill for providing the code!
1610    
1611    ----------------------------------------------------------------------
1612    Name: Matthias Blume (blume (at) tti - c (dot) org)
1613    Date: 2004/09/23 17:30:00 CDT
1614    Tag: blume-20040923-envvars
1615    Description:
1616    
1617    1. Changed definition of type ControlRegistry.registry_tree to
1618       include control_info (i.e., the name of the controlling environment
1619       variable).
1620    
1621    2. Added command-line flags -e and -E to print the names of environment
1622       variables that can be used to control internal settings.
1623       (This uses the new API mentioned in 1.)
1624    
1625    ----------------------------------------------------------------------
1626    Name: Matthias Blume (blume (at) tti - c (dot) org)
1627    Date: 2004/09/13 16:50:00 CDT
1628    Tag: Release_110_49
1629    Description:
1630    
1631    New working version (110.49).  NEW BOOTFILES!
1632    
1633    ----------------------------------------------------------------------
1634    Name: Matthias Blume
1635    Date: 2004/09/13 16:20:00 CDT
1636    Tag: blume-20040913-config-mlrisc
1637    Description:
1638    
1639    Put target "mlrisc" back into the default list.
1640    (There is no harm in having it, and some users have expressed their
1641    wish to have "mlrisc" included by default.)
1642    
1643    ----------------------------------------------------------------------
1644    Name: John Reppy
1645    Date: 2004/09/13
1646    Tag: jhr-20040913-signals
1647    Description:
1648    
1649    Fixed the signal masking code to properly nest mask/unmask operations
1650    on a per-signal basis.
1651    
1652    ----------------------------------------------------------------------
1653    Name: Matthias Blume (blume (at) tti - c (dot) org)
1654    Date: 2004/09/08 13:20:00 CDT
1655    Tag: blume-20040908-heap-magic
1656    Description:
1657    
1658    Bumped the heap macig number to 0x09082004 to account for the changed
1659    layout of the ML frame under MacOS X.
1660    
1661    ----------------------------------------------------------------------
1662    Name: Allen Leung (leunga (at) reservoir (dot) com)
1663    Date: 2004/09/03 11:26:00 EST
1664    Tag: leunga-20040903-cygwin-install
1665    Description:
1666    
1667       Added a patch to _arch-n-opsys to enable the Cygwin runtime.
1668    The Cygwin runtime is turned on by setting the environment
1669    variable SMLNJ_CYGWIN_RUNTIME to 1.
1670    
1671    ----------------------------------------------------------------------
1672    Name: Matthias Blume (blume (at) tti - c (dot) org)
1673    Date: 2004/08/31 17:15:00 CDT
1674    Tag: blume-20040831-core
1675    Description:
1676    
1677    Added some exports to src/compiler/core.cm upon request by J. Joemann.
1678    
1679    ----------------------------------------------------------------------
1680    Name: Matthias Blume (blume (at) tti - c (dot) org)
1681    Date: 2004/08/30 17:55:00 CDT
1682    Tag: blume-20040830-installer
1683    Description:
1684    
1685    Upon request by Johannes Joemann:
1686    
1687    - improved ML code of installer to fall back to coping when renaming
1688      fails (i.e., when source and target are on different file systems);
1689      the code compiles but has yet to be tested in anger
1690    - removed mlrisc from list of default targets (config/targets)
1691    
1692    ----------------------------------------------------------------------
1693    Name: Matthias Blume (blume (at) tti - c (dot) org)
1694    Date: 2004/08/27 17:20:00 CDT
1695    Tag: blume-20040827-ptreql
1696    Description:
1697    
1698    Added ptreql primop to structure InlineT (upon request from Larry
1699    Paulson).
1700    
1701    ----------------------------------------------------------------------
1702    Name: Allen Leung (leunga (at) reservoir (dot) com)
1703    Date: 2004/08/15 21:21:00 EST
1704    Tag: leunga-110_48-udgraph
1705    Description:
1706    
1707    Another bug fix from Carl Hauser:
1708    
1709    diff /net/niflab/smlnj48/src/MLRISC/graphs/udgraph.sml udgraph.sml
1710    > 48c48
1711    > <              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then es else
1712    > e::L)
1713    > ---
1714    > >              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then L else e::L)
1715    > Without this, any deletion of an edge in an undirected graph does severe
1716    > violence to the graph.
1717    
1718    ----------------------------------------------------------------------
1719    Name: Allen Leung (leunga (at) reservoir (dot) com)
1720    Date: 2004/08/10 23:35:00 EST
1721    Tag: leunga-110_48-ppc
1722    Description:
1723    
1724       The IBM/MacOS syntax switch on PPC was incorrectly swapped.
1725    
1726    ----------------------------------------------------------------------
1727    Name: Matthias Blume (blume (at) tti - c (dot) org)
1728    Date: 2004/08/10 12:00:00 CDT
1729    Tag: Release_110_48
1730    Description:
1731    
1732    New working version (110.48).  NEW BOOTFILES!
1733    
1734    ----------------------------------------------------------------------
1735    Name: Allen Leung (leunga (at) reservoir (dot) com)
1736    Date: 2004/08/09 12:21:00 EST
1737    Tag: leunga-110_47-dijsktra
1738    Description:
1739    
1740    Bug fix from Carl Hauser:
1741    
1742    single_source_shortest_paths in dijkstra.sml was observed to get wrong
1743    answers (by comparing to single_source_shortest_paths in bellman-ford.sml).
1744    
1745    The problem is that following the expression A.update(dist,s,Num.zero)
1746    it is necessary to update the priority queue using Q.decreaseWeight(Q,s).
1747    
1748    ----------------------------------------------------------------------
1749    Name: Matthias Blume (blume (at) tti - c (dot) org)
1750    Date: 2004/08/06 18:10:00 CDT
1751    Tag: blume-20040806-cmdline
1752    Description:
1753    
1754    Fiddled with handling of command-line options:
1755    
1756      * sml now quits after processing the command line
1757        if -H, -S, -h<n>, or -s<n> appears as the last
1758        command-line argument
1759      * a new option -q terminates the session when encountered on
1760        the command line; subsequent arguments will be ignored
1761      * bug fixes: short (erroneous) arguments are no longer ignored
1762        completely
1763    
1764    ----------------------------------------------------------------------
1765    Name: Allen Leung (leunga (at) reservoir (dot) com)
1766    Date: 2004/08/04 18:17:00 EST
1767    Tag: leunga-110_47-ppc-ibm-asm
1768    Description:
1769    
1770      - Added minimal IBM assembly syntax support for PowerPC.
1771    
1772      - Cygwin: manually changed the file cygwin.def.  Some exported symbols have
1773        been altered in the runtime.  We need an automatic way to keep the file
1774        in sync.
1775    
1776    ----------------------------------------------------------------------
1777    Name: Matthias Blume (blume (at) tti - c (dot) org)
1778    Date: 2004/08/04 14:00:00 CDT
1779    Tag: Release_110_47
1780    Description:
1781    
1782    New working version (110.47).  NEW BOOTFILES!
1783    
1784    ----------------------------------------------------------------------
1785    Name: Matthias Blume (blume (at) tti - c (dot) org)
1786    Date: 2004/08/03 14:25:00 CDT
1787    Tag: blume-20040803-callingconv
1788    Description:
1789    
1790    Added low-level support for choosing C calling conventions by
1791    twiddling the type of rawccall.  (See
1792    src/compiler/Semant/types/cproto.sml for details.)
1793    
1794    ----------------------------------------------------------------------
1795    Name: Matthias Blume (blume (at) tti - c (dot) org)
1796    Date: 2004/08/02 15:55:00 CDT
1797    Tag: blume-20040802-backout
1798    Description:
1799    
1800    Backed out of change to win32-filesys.c.  The earlier patch to
1801    get_file_time caused CM to produce files with the wrong time stamp.
1802    
1803    ----------------------------------------------------------------------
1804    Name: Matthias Blume (blume (at) tti - c (dot) org)
1805    Date: 2004/08/02 14:45:00 CDT
1806    Tag: blume-20040802-nlffi-win32
1807    Description:
1808    
1809    Added NLFFI support for Win32, adapted from a patch provided by David
1810    Hansel.  This is currently completely untested.  Also, the issue
1811    concerning stdcall vs. ccall is still unresolved.
1812    
1813    ----------------------------------------------------------------------
1814    Name: Matthias Blume (blume (at) tti - c (dot) org)
1815    Date: 2004/07/30 17:55:00 CDT
1816    Tag: blume-20040730-various
1817    Description:
1818    
1819    Gearing up towards 110.47...
1820    
1821    - various minor bugfixes to ml-nlffigen
1822    - a beginning of a manual for nlffi
1823    
1824    - eliminated 'export name=value' in config/install.sh as this does
1825      not work with certain versions of /bin/sh
1826      (Thanks to David King at Motorola for catching this.)
1827    
1828    - several bugfixes provided or suggested by David Hansel at Reactive Systems:
1829      - added a test for tm==NULL to gmtime.c and localtime.c
1830      - applied patch for incorrect GetFileTime under win32
1831      - toSeconds -> toMilliseconds in Win32/win32-process.sml
1832    
1833    ----------------------------------------------------------------------
1834    Name: Matthias Blume (blume (at) tti - c (dot) org)
1835    Date: 2004/07/21 18:20:00 CDT
1836    Tag: blume-20040721-nlffigen
1837    Description:
1838    
1839    - Fixed minor issue in ml-nlffigen: Now generate structure T_foo
1840      for a typedef to an incomplete type, but leave out the "typ" member.
1841      (This is just for consistency.)
1842    - Started to produce what is supposed to become better (i.e., comprehensive)
1843      documentation of what ml-nlffigen does and produces.
1844    
1845    ----------------------------------------------------------------------
1846    Name: Matthias Blume (blume (at) tti - c (dot) org)
1847    Date: 2004/07/14 16:25:00 CDT
1848    Tag: blume-20040714-union
1849    Description:
1850    
1851    Added C_UNION to c-calls/c-types.sml and updated the machinery
1852    (ml-nlffigen, cproto.sml) that conveys C function interface
1853    information to the code generator.
1854    
1855    However, the actual architecture-specific implementation of function
1856    arguments and results that are C unions is still not implemented.
1857    
1858    ----------------------------------------------------------------------
1859    Name: Allen Leung (leunga (at) reservoir (dot) com)
1860    Date: 2004/07/14 14:38:00 EST
1861    Tag: leunga-110_46_1-ppc-lwzu
1862    Description:
1863    
1864        Added these instructions to the PowerPC architecture:
1865        LBZU(X), LHZU(X), LWZU(X),
1866        STWU(X), STFDU, STFSU
1867    
1868        etc...
1869    
1870        Note: I haven't added their instruction encoding into the description.
1871    
1872    ----------------------------------------------------------------------
1873    Name: Allen Leung (leunga (at) reservoir (dot) com)
1874    Date: 2004/07/13 15:04:00 EST
1875    Tag: leunga-110_46_1-ppc-lwarx
1876    Description:
1877    
1878       Added the two instructions LWARX and STWCX to the PowerPC
1879    instruction set.
1880    
1881       A (untested) rewrite of loop-structure.sml.  The old version
1882    is completely broken.
1883    
1884    ----------------------------------------------------------------------
1885    Name: Matthias Blume (blume (at) tti - c (dot) org)
1886    Date: 2004/07/13 13:50:00 CDT
1887    Tag: blume-20040713-nlffi
1888    Description:
1889    
1890    - use paramAlloc to report c-calls with too many arguments
1891      (for PPC version where parameter area is pre-allocated)
1892    - added ccall_maxargspace to machspec (to implement the above)
1893    - made "make" commend in CM's "make" tool configurable
1894    - added option (default: on) for passing the name of the SML/NJ's "bin"
1895      directory to "make"; the call looks like this:
1896    
1897         make <options> SMLNJ_BINDIR=<dir> <target>
1898    
1899      This can be used by the Makefile to, e.g., pick the "right" version
1900      of ml-nlffigen.
1901    - minor code tweaks
1902    
1903    ----------------------------------------------------------------------
1904    Name: Matthias Blume (blume (at) tti - c (dot) org)
1905    Date: 2004/07/12 22:50:00 CDT
1906    Tag: blume-110_46_1-macosx-nlffi
1907    Description:
1908    
1909    NLFFI under Mac OS X now working (sort of).  This is largely untested,
1910    though.
1911    
1912    Note:  1. You have to make a new, clean build of the runtime system.
1913           2. There are new BOOTFILES, you have to use them!
1914              (Doing the bootstrap process yourself would be *very* painful!
1915               If you absolutely have to do it, build the system under
1916               a different architecture and then cross-compile.)
1917    
1918    Version bumped to 110.46.1 to account for runtime data format changes.
1919    
1920    ----------------------------------------------------------------------
1921    Name: Matthias Blume (blume (at) tti - c (dot) org)
1922    Date: 2004/06/18 14:30:00 CDT
1923    Tag: blume-20040618-unix
1924    Description:
1925    
1926    Changed the implementation of structure Unix so that the same stream
1927    is returned every time one of the {text,bin}{In,Out}streamOf functions
1928    is invoked on the same proc.  This is not what the spec currently
1929    says -- although IMO it arguably should.  (See discussion below.)
1930    
1931    ----------------------------------------------------------------------
1932    Name: Matthias Blume (blume (at) tti - c (dot) org)
1933    Date: 2004/06/17 18:15:00 CDT
1934    Tag: Release_110_46
1935    Description:
1936    
1937    New working version (110.46).  NEW BOOTFILES!
1938    
1939    ----------------------------------------------------------------------
1940    Name: Matthias Blume (blume (at) tti - c (dot) org)
1941    Date: 2004/06/17 17:20:00 CDT
1942    Tag: blume-20040617-timer-unix
1943    Description:
1944    
1945    Changed the interface of structures Timer and Unix to match the most
1946    recent Basis spec.
1947    
1948    In the case of Unix there still seems to be an open/weird issue:
1949    
1950       The {text,bin}{In,Out}streamOf functions are supposed to create
1951       fresh streams whenever they are called -- as opposed to have them
1952       return the same stream every time.  This design is supposed to
1953       prevent space leaks caused by proc values hanging on to streams.
1954    
1955       The reap function, on the other hand, is supposed to close the
1956       streams.  This cannot be done without having a handle on the
1957       stream in proc after all...
1958    
1959    I took the liberty to implement the following stopgap solution:
1960    
1961      The proc value hangs on to the most recently created stream(s).
1962      Reap closes those.  If either or both of the two streams hadn't
1963      been created at all yet, then reap will close the corresponding
1964      file descriptors directly.
1965    
1966    PS: I don't understand the original space leak argument anymore.  If
1967    a proc hangs on to the imperative stream, then I/O operations on those
1968    will advance the state of the cached stream and avoid the space leak.
1969    
1970    ----------------------------------------------------------------------
1971    Name: Matthias Blume (blume (at) tti - c (dot) org)
1972    Date: 2004/05/28 16:45:00 CDT
1973    Tag: blume-20040528-basis
1974    Description:
1975    
1976    Added signature PACK_REAL and exported functor PrimIO.
1977    
1978    ----------------------------------------------------------------------
1979    Name: Matthias Blume (blume (at) tti - c (dot) org)
1980    Date: 2004/05/25 16:00:00 CDT
1981    Tag: blume-20040525-group-owner
1982    Description:
1983    
1984    CM now ignores (but still accepts) the "owner" information in group
1985    descriptions.  The owner of a group is its next enclosing
1986    library. Each group must have a unique owner.  (There is a virtual
1987    "toplevel" library that owns groups which are not nested within a real
1988    library.)  Previously, each group had to explicitly declare its owner,
1989    and CM would check that such a declaration is correct.  The new scheme
1990    is to have CM check that for each group there is precisely one owning
1991    library.
1992    
1993    The advantage of the new scheme is that the programmer no longer needs
1994    to maintain the somewhat annoying owner information.  The downside is
1995    that CM cannot enforce the ownership rule across multiple runs of
1996    CM.make.  Fortunately, enclosing the same group in two different
1997    libraries A and B which are not part of the same program does not
1998    cause real problems.
1999    
2000    ----------------------------------------------------------------------
2001    Name: Matthias Blume (blume (at) tti - c (dot) org)
2002    Date: 2004/05/20 16:00:00 CDT
2003    Tag: blume-20040520-win32
2004    Description:
2005    
2006    Made the win32 version work again.  (Strangely, a misplaced comma had
2007    slipped into win32-process.c which prevented the runtime from being
2008    compiled correctly.)
2009    
2010    Also, included a minor addition to ml-build.bat analogous to what was
2011    done in blume-20040519-ml-build.
2012    
2013    ----------------------------------------------------------------------
2014    Name: Matthias Blume (blume (at) tti - c (dot) org)
2015    Date: 2004/05/19 22:10:00 CDT
2016    Tag: blume-20040519-ml-build
2017    Description:
2018    
2019    Arranged for ml-build to clean up after itself a little bit better.
2020    The script generates a temporary SML source file and compiles it using
2021    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
2022    gets rid of those at the end, so they don't accumulate under .cm.
2023    
2024    This required a minor change to install.sh because the name of the
2025    metadata directory (default: .cm) is actually configurable at
2026    installation time.
2027    
2028    ----------------------------------------------------------------------
2029    Name: Matthias Blume (blume (at) tti - c (dot) org)
2030    Date: 2004/05/18 15:50:00 CDT
2031    Tag: blume-20040518-mkreader
2032    Description:
2033    
2034    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
2035    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
2036    
2037    ----------------------------------------------------------------------
2038    Name: Matthias Blume (blume (at) tti - c (dot) org)
2039    Date: 2004/05/11 14:35:00 CDT
2040    Tag: blume-20040511-win32sock
2041    Description:
2042    
2043    Added previously missing support for many socket-related functions
2044    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
2045    for the voluminous patch!
2046    
2047    (I have not tested this patch under win32 yet.)
2048    
2049    Here is David's e-mail:
2050    
2051    Hi,
2052    
2053    Attached to this email you find a diff against sml/nj 110.45
2054    that will enable socket support under Windows.
2055    
2056    To apply the patch (using unix or cygwin)
2057    1) gunzip runtime.diff.gz
2058    2) "cd" into "src/runtime" in the source tree of a fresh
2059       110.45 installation.
2060    3) patch -p 1 < [your/path/to]runtime.diff
2061    
2062    The code compiles fine but has NOT yet been extensively tested.
2063    I only ran a few tests for basic socket client functionality
2064    (which worked fine).  Especially the functions that use ioctl
2065    are not tested at all and might not work (see below).
2066    
2067    I implemented this since we want to move to a newer version of sml/nj
2068    but need socket support in order to use it.  This is the first time I
2069    even had a look at the sml/nj source,  so please review my changes
2070    before making this part of the distribution!  Here are a few issues
2071    that I think might be better for someone to solve who is more
2072    familiar with the sml/nj source (and socket programming):
2073    
2074    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
2075      exception since I could not figure out what the windows equivalent
2076      of these functions is
2077    
2078    - In sockets-osdep.h there are a some #include statements that are
2079      only used in a few files that include sockets-osdep.h
2080    
2081    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
2082      does not process its return value since I don't know how to
2083      report an error upwards.
2084    
2085    - It would probably be good to have a call to WSACleanup() when
2086      the library is unloaded (if there is such a possibility).
2087      Otherwise I think Windows will take care of this automatically
2088      when the process finishes.
2089    
2090    - I used ioctlsocket() as a replacement for ioctl() but I have
2091      no idea if that is actually the proper replacement on Windows.
2092    
2093    - All these issues are marked in the code by "FIXME" comments.
2094    
2095    We use sml/nj extensively in our products and are quite happy
2096    with it.  I hope this contribution will help you.
2097    
2098    Keep up the good work!
2099    
2100    David
2101    
2102    ----------------------------------------------------------------------
2103    Name: Matthias Blume (blume (at) tti - c (dot) org)
2104    Date: 2004/05/11 14:20:00 CDT
2105    Tag: blume-20040511-installml
2106    Description:
2107    
2108    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
2109    the patch.)
2110    
2111    ----------------------------------------------------------------------
2112    Name: Matthias Blume (blume (at) tti - c (dot) org)
2113    Date: 2004/05/11 14:05:00 CDT
2114    Tag: blume-20040511-nlffi-netbsd
2115    Description:
2116    
2117    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
2118    the patch.)
2119    
2120    ----------------------------------------------------------------------
2121    Name: Matthias Blume (blume (at) tti - c (dot) org)
2122    Date: 2004/05/11 12:05:00 CDT
2123    Tag: blume-20040511-exports
2124    Description:
2125    
2126    As per request by Adam Chlipala <adam@hcoop.net>, extended various
2127    export lists in compiler-related .cm-files.
2128    
2129    ----------------------------------------------------------------------
2130    Name: Matthias Blume (blume (at) tti - c (dot) org)
2131    Date: 2004/05/11 11:35:00 CDT
2132    Tag: blume-20040511-allsource
2133    Description:
2134    
2135    The installer now honors the "src-smlnj" target again, although its meaning
2136    has changed from "all sources required for the compiler" to "all sources
2137    the installer knows about".  In other words, if you enable "src-smlnj"
2138    in the "targets" file, then the installer will pull in sources for
2139    everything.  (Notice that this refers to source code only.  Compiled
2140    code is still only installed for modules that were requested explicitly
2141    or which are required for other modules that were requested explicitly.)
2142    
2143    ----------------------------------------------------------------------
2144    Name: Matthias Blume (blume (at) tti - c (dot) org)
2145    Date: 2004/04/23 17:40:00 CDT
2146    Tag: blume-20040423-ieee-scan
2147    Description:
2148    
2149    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
2150    in the exponent calculation we get INF or ZERO (depending on the mantissa
2151    and the sign of the exponent).
2152    
2153    ----------------------------------------------------------------------
2154    Name: Matthias Blume (blume (at) tti - c (dot) org)
2155    Date: 2004/04/23 10:40:00 CDT
2156    Tag: blume-20040423-ml-build
2157    Description:
2158    
2159    The ml-build script now terminates with a non-0 status when something
2160    goes wrong.
2161    
2162    ----------------------------------------------------------------------
2163    Name: Matthias Blume (blume (at) tti - c (dot) org)
2164    Date: 2004/04/22 16:35:00 CDT
2165    Tag: blume-20040422-Option
2166    Description:
2167    
2168    Made exception Option to be the same as exception Option.Option
2169    (as it should be).
2170    
2171    ----------------------------------------------------------------------
2172    Name: Allen Leung (leunga (at) reservoir (dot) com)
2173    Date: 2004/03/19 14:40:00 EST
2174    Tag: leunga-20040319-cygwin-nlffi
2175    Description:
2176    
2177    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
2178    of SML/NJ.  The problem is that
2179    
2180       lib = dlopen(NULL, ...)
2181       f   = dlsym(lib, "malloc");
2182    
2183    does not work on Windows unless we explicitly export symbols
2184    such as 'malloc' during linking.  We fixed this by explicitly
2185    exporting the required symbols with the magic gcc incantation:
2186    
2187        -Wl,--export-all cygwin.def
2188    
2189    where cygwin.def is a file containing all the symbols that
2190    we wish to export.
2191    
2192    I suspect this is a Windows problem and we'll have to
2193    do the same (somehow with windows compilers) when
2194    we build the native win32 version with the system
2195    calls LoadLibrary/GetProcAddress.
2196    
2197    ----------------------------------------------------------------------
2198    Name: Matthias Blume (blume (at) tti - c (dot) org)
2199    Date: 2004/03/04 16:35:00 CST
2200    Tag: blume-20040304-intinf-fmt
2201    Description:
2202    
2203    Fixed problem with IntInf.fmt (sign would show up on the right instead
2204    of on the left for BIN, OCT, and HEX).
2205    
2206    ----------------------------------------------------------------------
2207    Name: Matthias Blume (blume (at) tti - c (dot) org)
2208    Date: 2004/03/04 11:25:00 CST
2209    Tag: blume-20040304-symlinks
2210    Description:
2211    
2212    Fixed problem with installer script (unix only) where bin/ml-yacc and
2213    friends pointed (via symlinks) to absolute locations instead of just
2214    .run-sml.  This was reported by Vesa A Norrman.
2215    
2216    ----------------------------------------------------------------------
2217    Name: Matthias Blume (blume (at) tti - c (dot) org)
2218    Date: 2004/02/13 14:50:00 CST
2219    Tag: Release_110_45
2220    Description:
2221    
2222    New working version (110.45). New bootfiles.
2223    
2224    ----------------------------------------------------------------------
2225    Name: Matthias Blume (blume (at) tti - c (dot) org)
2226    Date: 2004/01/26 15:15:15 CST
2227    Tag: blume-20040126-toplevel
2228    Description:
2229    
2230    Improved handling of exceptions at the interactive toplevel.
2231    
2232    ----------------------------------------------------------------------
2233    Name: Matthias Blume (blume (at) tti - c (dot) org)
2234    Date: 2004/01/26 11:25:00
2235    Tag: blume-20040126-app
2236    Description:
2237    
2238    Type of top-level "app" corrected.
2239    Added code for setting vp_limitPtrMask to Win32-specific runtime.
2240    
2241    ----------------------------------------------------------------------
2242    Name: Matthias Blume (blume (at) tti - c (dot) org)
2243    Date: 2003/11/18 17:10 CST
2244    Tag: blume-20031118-basis-fiddle
2245    Description:
2246    
2247    - changed Timer interface to what might become the spec
2248    - POSIX_FLAGS -> BIT_FLAGS according to spec
2249    - some other minor discrepancies wrt. spec eliminated
2250    
2251    ----------------------------------------------------------------------
2252    Name: Matthias Blume (blume (at) tti - c (dot) org)
2253    Date: 2003/11/06 12:00:00 CST
2254    Tag: Release_110_44
2255    Description:
2256    
2257    New working version (110.44). New bootfiles.
2258    
2259    ----------------------------------------------------------------------
2260    Name: Matthias Blume (blume (at) tti - c (dot) org)
2261    Date: 2003/11/04 11:50:00 CST
2262    Tag: blume-20031104-move-libraries
2263    Description:
2264    
2265    Eliminated the "dont_move_libraries" directive in config/targets.
2266    (The mechanism was broken and could not be fixed easily.  Moreover,
2267    there does not seem to be any reason not to move all libraries into
2268    lib during installation.  I originally implemented this directive as a
2269    backward-compatibility feature when I first introduced the new CM.
2270    Now that things have been stable for a long time and going back to the
2271    old CM is not an option, there is no reason to keep it around.)
2272    
2273    ----------------------------------------------------------------------
2274    Name: Matthias Blume (blume (at) tti - c (dot) org)
2275    Date: 2003/11/03 16:00:00 CST
2276    Tag: blume-20031103-installdir
2277    Description:
2278    
2279    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
2280    Richards for pointing out the problem and providing the solution.)
2281    
2282    ----------------------------------------------------------------------
2283    Name: Matthias Blume (blume (at) tti - c (dot) org)
2284    Date: 2003/10/01 17:05:00 CDT
2285    Tag: blume-20031001-lal-mlrisc
2286    Description:
2287    
2288    MLRISC bug fix from Lal.
2289    
2290    ----------------------------------------------------------------------
2291    Name: Matthias Blume (blume (at) tti - c (dot) org)
2292    Date: 2003/09/30 16:10:00 CDT
2293    Tag: blume-20030930-primio-bat
2294    Description:
2295    
2296    1. Added openVector, nullRd, and nullWr to PRIM_IO.
2297    2. Improved .bat files (for Win32 port) to make things work under Win95.
2298       (thanks to Aaron S. Hawley for this one)
2299    
2300    ----------------------------------------------------------------------
2301    Name: Matthias Blume (blume (at) tti - c (dot) org)
2302    Date: 2003/09/26 16:05:00 CDT
2303    Tag: blume-20030926-wrappriv
2304    Description:
2305    
2306    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
2307    
2308    ----------------------------------------------------------------------
2309    Name: Matthias Blume (blume (at) tti - c (dot) org)
2310    Date: 2003/09/26 15:00:00 CDT
2311    Tag: blume-20030926-110_43_3
2312    Description:
2313    
2314    - additional cleanup
2315    - version number bump, NEW BOOTFILES
2316    
2317    ----------------------------------------------------------------------
2318    Name: Matthias Blume (blume (at) tti - c (dot) org)
2319    Date: 2003/09/26 12:00:00 CDT
2320    Tag: blume-20030926-ppautoload
2321    Description:
2322    
2323    I modified the read-eval-print loop so that the autoloader gets
2324    invoked whenever the prettyprinter tries to look up a symbol that
2325    is not currently defined in the toplevel environment but which
2326    appears in CM's autoload registry.  As a result, we see far fewer of
2327    those ?.Foo.Bar.xxx names in the prettyprinter's output.
2328    
2329    In addition to this I tried to clean up some pieces of the Basis
2330    implementation (e.g., Socket, Word8Array) in order to prevent other
2331    instances of these ?.Foo.Bar.xxx names from being printed.
2332    
2333    The mechanism that picks names for types still needs some work, though.
2334    (Right now it seems that if there is a type A.t which is defined to
2335    be B.u, but B is unavailable at toplevel, then A.t gets printed as
2336    "?.B.u" although the perhaps more sensible solution would be to use
2337    "A.t" in this case.  In other words, the prettyprinter should follow
2338    a chain of DEFtycs not farther than there are corresponding toplevel
2339    names in the current environment.)
2340    
2341    ----------------------------------------------------------------------
2342    Name: Matthias Blume (blume (at) tti - c (dot) org)
2343    Date: 2003/09/24 16:31:00 CDT
2344    Tag: blume-20030924-installer
2345    Description:
2346    
2347    Another installer tweak:  All the ML code for the installer is now
2348    compiled during CMB.make and put into a little library called
2349    $smlnj/installer.cm.  The installation then simply invokes
2350    
2351       sml -m $smlnj/installer.cm
2352    
2353    and everything happens automagically.
2354    
2355    Win32:  ML code senses value of environment variable SMLNJ_HOME.
2356    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
2357            and BINDIR.
2358    
2359    The new scheme guarantees that the ML code responsible for the installation
2360    is in sync with the APIs of the main system.  Also, the installer is
2361    somewhat faster because the installer script is precompiled.
2362    
2363    ----------------------------------------------------------------------
2364    Name: Matthias Blume (blume (at) tti - c (dot) org)
2365    Date: 2003/09/24 15:35:00 CDT
2366    Tag: blume-20030924-synsock
2367    Description:
2368    
2369    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
2370    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
2371    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
2372    implementations of non-blocking operations from CML's Socket
2373    structure.
2374    
2375    ----------------------------------------------------------------------
2376    Name: Matthias Blume (blume (at) tti - c (dot) org)
2377    Date: 2003/09/24 15:10:05 CDT
2378    Tag: blume-20030924-sockets
2379    Description:
2380    
2381    1. Fixed SOCKET API and implementation to match Basis spec.
2382       This required changing the internal representation of sockets to one
2383       that remembers (for each socket file descriptor) whether it is currently
2384       blocking or non-blocking.  This state is maintained lazily (i.e., a system
2385       call is made only if the state actually needs to change).
2386    
2387    2. OS-specific details of sockets were moved into separate files, thus
2388       making it possible to unify the bulk of the socket implementations
2389       between Unix and Win32.
2390    
2391    3. CML's socket API changed accordingly.
2392       (Note that we need to remove non-blocking functions from this API
2393       since they are redundant in the case of CML!)
2394    
2395    4. CML's socket implementation now makes use of non-blocking functions
2396       provided by Basis, thus removing all OS-dependent code from this part
2397       of CML.
2398    
2399    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
2400    
2401    ----------------------------------------------------------------------
2402    Name: Matthias Blume (blume (at) tti - c (dot) org)
2403    Date: 2003/09/22 12:10:00 CDT
2404    Tag: blume-20030922-110_43_2
2405    Description:
2406    
2407    Made a new interim version and bootfiles for developer's bootstrapping
2408    convenience.
2409    
2410       110.43.2 -- NEW BOOTFILES
2411    
2412    ----------------------------------------------------------------------
2413    Name: Matthias Blume (blume (at) tti - c (dot) org)
2414    Date: 2003/09/19 15:55:00 CDT
2415    Tag: blume-20030919-cmdir
2416    Description:
2417    
2418    1. new-install.sh -> install.sh
2419    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
2420    3. tweaked installer so that another name instead of .cm can be chosen
2421       at install time (by setting the CM_DIR_ARC environment variable
2422       during installation); once installation is complete, the name is
2423       fixed
2424    
2425    ----------------------------------------------------------------------
2426    Name: Matthias Blume (blume (at) tti - c (dot) org)
2427    Date: 2003/09/18 16:00:00 CDT
2428    Tag: blume-20030918-110_43_1
2429    Description:
2430    
2431    Made a new interim version and bootfiles for developer's bootstrapping
2432    convenience.
2433    
2434       110.43.1 -- NEW BOOTFILES
2435    
2436    ----------------------------------------------------------------------
2437    Name: Matthias Blume (blume (at) tti - c (dot) org)
2438    Date: 2003/09/18 15:20:00 CDT
2439    Tag: blume-20030918-misc
2440    Description:
2441    
2442    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
2443       this seems to be controversial at the moment) and used those in
2444       Posix.ProcEnv.times.
2445    
2446    2. Added Time.{from,to}Nanoseconds to Time.
2447    
2448    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
2449       For example, fromLargeInt never needs to look at more than 3 "big
2450       digits" to get its 53 bits of precision.
2451    
2452    ----------------------------------------------------------------------
2453    Name: Matthias Blume (blume (at) tti - c (dot) org)
2454    Date: 2003/09/17 16:30:00 CDT
2455    Tag: blume-20030917-real32-slices
2456    Description:
2457    
2458    Added an entry to the primitive environment
2459    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
2460    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
2461    
2462    Removed some of the "magic" constants in real64.sml and replaced them
2463    with code that generates these values from their corresponding
2464    integer counterparts.
2465    
2466    Made all(?) the slice-related changes to the Basis and made everything
2467    compile again...
2468    
2469    ----------------------------------------------------------------------
2470    Name: Matthias Blume (blume (at) tti - c (dot) org)
2471    Date: 2003/09/15 17:45:00 CDT
2472    Tag: blume-20030915-rbase
2473    Description:
2474    
2475    Fixed bug in Real.fromLargeInt.
2476    
2477    ----------------------------------------------------------------------
2478    Name: Matthias Blume (blume (at) tti - c (dot) org)
2479    Date: 2003/09/13 18:11:00 CDT
2480    Tag: blume-20030913-libinstall
2481    Description:
2482    
2483    Minor bugfix in config/libinstall (set anchor with path to
2484    standalone tool after installing it, otherwise libraries that
2485    need ml-lex or ml-yacc won't compile the first time the installer
2486    runs).
2487    
2488    ----------------------------------------------------------------------
2489    Name: Matthias Blume (blume (at) tti - c (dot) org)
2490    Date: 2003/09/12 11:45:00 CDT
2491    Tag: blume-20030912-various
2492    Description:
2493    
2494     - fixed bug in Real.toLargeInt
2495     - fixed bug in Posix.ProcEnv.times
2496     - changed inputLine functions to return an option
2497     - minor installer improvements / bugfixes
2498     - changed default @SMLalloc parameter for x86/celeron to 64k
2499    
2500    ----------------------------------------------------------------------
2501    Name: Matthias Blume (blume (at) tti - c (dot) org)
2502    Date: 2003/09/09 22:00:00 CDT
2503    Tag: Release_110_43
2504    Description:
2505    
2506        New working release 110.43.  New bootfiles.
2507    
2508    ----------------------------------------------------------------------
2509    Name: Matthias Blume (blume (at) tti - c (dot) org)
2510    Date: 2003/09/09 19:20:00 CDT
2511    Tag: blume-20030909-installer
2512    Description:
2513    
2514    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
2515    Modified config/install.bat to take advantage of it.  Also modified
2516    config/install.sh (and called it config/new-install.sh) to take advantage
2517    of it on Unix systems.  (The SML code is (supposed to be) platform-
2518    independent.)
2519    
2520    The installer can now install everything under Win32
2521    as well as under *nix as long as it compiles.
2522    
2523    Other changes:
2524    
2525      - made CML compile again under Win32
2526      - made eXene compile under Win32 (by providing a fake structure UnixSock
2527        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
2528      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
2529        same as type int;  under Win32 it isn't
2530      - fixed some slice-related problems in the win32-specific parts of CML
2531      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
2532        (under Win32, the volume name is case-insensitive, and the
2533        OS.Path code compares volume names for equality)
2534    
2535    ----------------------------------------------------------------------
2536    Name: Matthias Blume (blume (at) tti - c (dot) org)
2537    Date: 2003/09/08 11:55:00 CDT
2538    Tag: blume-20030908-fullpath
2539    Description:
2540    
2541    Made Win32 version of OS.FileSys.fullPath return current directory
2542    when given an empty string.  This is what the spec says, and incidentally,
2543    CM depends on it.  (CM otherwise goes into an infinite loop in certain
2544    cases when presented with the name of a non-existing .cm file.)
2545    
2546    ----------------------------------------------------------------------
2547    Name: Matthias Blume (blume (at) tti - c (dot) org)
2548    Date: 2003/09/04 16:30:00 CDT
2549    Tag: blume-20030905-slices-etc
2550    Description:
2551    
2552      1. Changed interface to vectors and arrays in Basis to match
2553         (draft) Basis spec.
2554      2. Added signatures and implementations of slices according to
2555         Basis spec.
2556      3. Edited source code throughout the system to make it compile again
2557         under 1. and 2.  (In some cases code had to be added to have it
2558         match the new signatures.)
2559      4. MLRISC should be backward-compatible: the copies of the originals
2560         of files that needed to change under 3. were retained, the .cm files
2561         check the compiler version number and use old versions when
2562         appropriate.
2563      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
2564         dirstream -> string option (in accordance with Basis spec).
2565      6. When generating code that counts lines, ml-lex used function
2566         CharVector.foldli, taking advantage of its old interface.
2567         This has been replaced with the corresponding code from
2568         CharVectorSlice.  (html-lex must be re-lexed!)
2569      7. BitArray in smlnj-lib/Util has been extended/modified to match the
2570         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
2571      8. Removed temporary additions (fromInternal, toInternal) from the
2572         (now obsolete) IntInf in smlnj-lib/Util.
2573      9. Cleaned up structure Byte.
2574     10. Added localOffset, scan, and fromString to Date (according to spec).
2575         Cleaned/corrected implementation of Date.
2576         (Still need to check for correctness; implement better canonicalizeDate.)
2577     11. Added "scan" to signature IEEE_REAL.
2578     12. Some improvements to IntInf [in particular: efficiency-hack for
2579         mod and rem when second operand is 2 (for parity checks).]
2580     13. Changed representation of type Time.time, using a single IntInf.int
2581         value counting microseconds.  This considerably simplified the
2582         implementation of structure Time.  We now support negative time
2583         values; scan and fromString handle signs.
2584     14. Functor PrimIO now takes two additional arguments (VectorSlice and
2585         ArraySlice).
2586    
2587    ----------------------------------------------------------------------
2588    Name: Matthias Blume (blume (at) tti - c (dot) org)
2589    Date: 2003/08/28 17:00:00 CDT
2590    Tag: blume-20030828-intinf
2591    Description:
2592    
2593    This is a major update which comes with a version number bump
2594    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
2595    and an implementation of IntInf in the Basis.
2596    
2597    There are a fairly large number of related changes and updates throughout
2598    the system:
2599    
2600    Basis:
2601            - Implemented IntInf.
2602            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
2603            - Added some missing Real64 operations, most notably Real.toLargeInt.
2604            - Added FixedInt as a synonym for Int32.
2605    
2606    compiler:
2607            * Added support for a built-in intinf type.
2608              - literals
2609              - pattern matching
2610              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
2611              - overloading on literals and operations
2612    
2613            This required adding a primitive type intinf, some additional
2614            primops, and implementations for several non-trivial intinf
2615            operations in Core.  (The intinf type is completely abstract
2616            to the compiler; all operations get delegated back to the Core.)
2617    
2618            * Intinf equality is handled by polyequal.  However, the compiler
2619            does not print its usual warning in this case (since polyequal
2620            is the right thing to do there).
2621    
2622            * Improved the organization of structure InlineT.
2623    
2624            * A word about conversion primops:
2625            If conversions involving intinf do not cancel out during
2626            CPS contract, then the compiler must insert calls to Core functions.
2627            Since all core access must be resolved already during the FLINT
2628            translate phase, it would be too late a the time of CPS contract
2629            to add new Core calls.  For this reason, conversion primops
2630            for intinf carry two arguments:  1. the numeric argument that
2631            they are supposed to convert, and 2. the Core function that
2632            can help with this conversion if necessary.  If CPS contract
2633            eliminates a primop, then the associated Core function becomes
2634            dead and goes away.  Intinf conversion primops that do not get
2635            eliminated by CPS contract get rewritten into calls of their
2636            core functions by a separate, new phase.
2637    
2638    interactive system:
2639            - Control.Print.intinfDepth controls max length of intinf constants
2640            being printed. (Analogous to Control.Print.stringDepth.)
2641            - Cleanup in printutil and pputil: got rid of unused stuff and
2642            duplicates; replaced some of the code with code that makes better
2643            use of library functionality.
2644    
2645    CM:
2646            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
2647            are no longer silent.
2648    
2649    CKIT:
2650            Fixed mismatched uses of Int32 and LargeInt.  I always decided
2651            in favor of LargeInt -- which is now the same as IntInf.
2652            CKIT-knowledgable people should check whether this is what's
2653            intended and otherwise change things back to using Int32 or
2654            FixedInt.
2655    
2656    Throughout the code:
2657            Started using IntInf.int literals and built-in operations
2658            (e.g., comparison with 0) where this seems appropriate.
2659    
2660    
2661    ----------------------------------------------------------------------
2662    Name: Dave MacQueen (dbm@cs.uchicago.edu)
2663    Date: 2003/08/13 11:36:00 CDT
2664    Tag: dbm-20030813-mcz-merge1
2665    Description:
2666    
2667    Merging changes from the mcz-branch development branch into trunk.
2668    These changes involve replacement of the emulated old prettyprinter
2669    interface with direct use of the SML/NJ Lib PP library, and fixing
2670    of a couple of bugs (895, 1186) relating to error messages.  A new
2671    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
2672    has been added.
2673    
2674    ----------------------------------------------------------------------
2675    Name: Matthias Blume (blume (at) tti - c (dot) org)
2676    Date: 2003/08/11 15:45:00 CDT
2677    Tag: blume-20030811-windows
2678    Description:
2679    
2680    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
2681    
2682        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
2683    
2684    This patch restores SML/NJ's ability to run under win32.  There are a
2685    number of changes, including fixes for several bugs that had gone
2686    unnoticed until now:
2687    
2688      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
2689        trying to run the win32 version from within cygwin.)
2690    
2691      - There are a number of simple .bat scripts that substitute for their
2692        corresponding Unix shell-scripts.  (See below.)
2693    
2694      - The internals of ml-build have been modified slightly.  The main
2695        difference is that instead of calling ".link-sml" (or link-sml.bat)
2696        using OS.Process.system, the ML process delegates this task back
2697        to the script.  Otherwise problems arise in mixed environments such
2698        as Cygwin where scripts look and work like Unix scripts, but
2699        where OS.Process.system cannot run them.
2700    
2701      - In CM, the srcpath pickler used native pathname syntax -- which
2702        is incorrect in the case of cross-compilation.  The new pickle format
2703        is independent of platform-specific naming conventions.
2704    
2705      - Path configuration files (such as lib/pathconfig) can now choose
2706        between native and standard syntax.  Placing a line of the form
2707    
2708            standard!
2709    
2710        into the file causes all subsequent paths to be interpreted using
2711        CM standard pathname syntax (= Unix conventions); a line
2712    
2713            native!
2714    
2715        switches back to native style.  This was needed so that
2716        path config files can be written portably, see src/system/pathconfig.
2717    
2718      - Runtime system:
2719    
2720          - win32-filesys.c:  get_file_time and set_file_time now
2721            access modification time, not creation time.
2722    
2723          - I/O code made aware of new array representation.
2724    
2725          - Bug fixes in X86.prim.masm.
2726    
2727       - src/system/makeml made aware of win32. (For use under cygwin
2728            and other Unix-environments for windows.)
2729    
2730       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
2731         which caused BinIO.inputAll to fail consistently.
2732    
2733    .bat scripts:
2734    
2735       Windows .bat scripts assume that SMLNJ_HOME is defined.
2736    
2737       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
2738         applications (sml, ml-yacc, ml-lex).
2739       - ml-build.bat: analogous to ml-build.
2740       - config\install.bat:  Analogous to config/install.sh.  This requires
2741         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
2742         (nmake etc. must be on the path, and vcvars32 must have been run.)
2743         Moreover, sources for ml-lex and ml-yacc need to exist under src,
2744         and the bootfile hierarchy must have been unpacked under
2745         sml.boot.x86-win32.
2746         The script is very primitive and does a poor job at error checking.
2747         It only installs the base system, ml-lex, and ml-yacc.  No other
2748         libraries are being installed (i.e., you get only those that
2749         are part of the compiler.)
2750       - link-sml.bat:  analogous to .link-sml, but not currently used
2751    
2752    Unrelated bug fixes:
2753    
2754      - ml-nlffigen now exports structures ST_* corresponding to incomplete
2755        types.
2756      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
2757        otherwise.)
2758    
2759    ----------------------------------------------------------------------
2760    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
2761    Date: 2003/06/17
2762    Tag: macqueen-20030617-bug895
2763    Description:
2764    
2765    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
2766    Tag will be used for new development branch (mcz-branch) for
2767    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
2768    
2769    ----------------------------------------------------------------------
2770    Name: Matthias Blume (blume (at) tti - c (dot) org)
2771    Date: 2003/05/27 16:55:00 CDT
2772    Tag: blume-20030527-polyeq
2773    Description:
2774    
2775    Tried to eliminated most cases of polymorphic equality.
2776    
2777    ----------------------------------------------------------------------
2778    Name: Matthias Blume (blume (at) tti - c (dot) org)
2779    Date: 2003/05/21 17:45:00 CDT
2780    Tag: blume-20030517-complete
2781    Description:
2782    
2783    Two changes:
2784    
2785      1. Added a flag for controlling whether non-exhaustive bindings will
2786         be treated as errors (default is false).
2787      2. Cleaned up the *entire* source tree so that CMB.make goes through
2788         without a single non-exhaustive match- or bind warning.
2789    
2790    ----------------------------------------------------------------------
2791    Name: Matthias Blume (blume (at) tti - c (dot) org)
2792    Date: 2003/05/17 10:20:00 CDT
2793    Tag: blume-20030517-absyn
2794    Description:
2795    
2796    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
2797    
2798       This mainly affects the quality of error messages.  However, some
2799       of the code is now more straightforward than before. (Treatment of
2800       the above four constructs in translate.sml is much simpler than
2801       the "macro-expansion" that was going on before.  Plus, the mach-
2802       compiler no longer gets invoked just to be able to compile an
2803       if-expression.)
2804    
2805    2. The ErrorMsg.Error exception is now caught and absorbed by the
2806       interactive loop.
2807    
2808    ----------------------------------------------------------------------
2809    Name: Allen Leung
2810    Date: 2003/05/16 13:05:00 CDT
2811    Tag: leunga-20030516-cygwin-runtime
2812    Description:
2813    
2814        Ported the runtime system to cygwin, which uses the unix
2815    x86-unix bin files.  Missing/buggy features:
2816    
2817       o getnetbyname, getnetbyaddr: these functions seem to be missing in
2818         the Cygwin library.
2819       o Ctrl-C handling may be flaky.
2820       o Windows system calls and Windows I/O are not supported.
2821    
2822       A new set of binfiles is located at:
2823    
2824         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
2825    
2826       This is only needed for bootstrapping the cygwin version of smlnj.
2827       Other x86 versions can use the existing binfiles.
2828    
2829    ----------------------------------------------------------------------
2830    Name: Matthias Blume
2831    Date: 2003/04/08 15:42:00 CDT
2832    Tag: blume-20030408-listpair
2833    Description:
2834    
2835    1. Added a target 'mlrisc' to installer.
2836    
2837    2. Added missing elements to structure ListPair.
2838    
2839    ----------------------------------------------------------------------
2840    Name: Allen Leung
2841    Date: 2003/01/07 10:40:00 EST
2842    Tag: leunga-20030107-int-rem
2843    Description:
2844    
2845    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
2846    The arguments to the SUBL instruction were swapped.
2847    
2848    ----------------------------------------------------------------------
2849    Name: Matthias Blume
2850    Date: 2002/12/12 16:25:00 EST
2851    Tag: blume-20021212-risc-ra
2852    Description:
2853    
2854    Fixed a serious bug in the rewrite code for FP spilling/reloading that
2855    sent the RA into an infinite loop when floating point registers get
2856    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
2857    110.37 and 110.38.)
2858    There was another set of potential problems related to the handling of
2859    MLRISC annotations (but those did not yet cause real problems, apparently).
2860    
2861    ----------------------------------------------------------------------
2862    Name: Matthias Blume
2863    Date: 2002/12/06 22:40:00 EST
2864    Tag: blume-20021206-cm-fileid
2865    Description:
2866    
2867    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
2868    This fixes the problem of CM getting confused by files that suddenly
2869    change their identity (e.g., by getting unlinked and recreated by some
2870    text editor such as vi).  There might be a better/cheaper/cleaner way
2871    of doing this, but for now this will have to do.
2872    
2873    ----------------------------------------------------------------------
2874    Name: Matthias Blume
2875    Date: 2002/10/28 09:50:00 EST
2876    Tag: blume-20021028-typecheck
2877    Description:
2878    
2879    Exported structure Typecheck from $smlnj/viscomp/core.cm.
2880    
2881    ----------------------------------------------------------------------
2882    Name: Matthias Blume
2883    Date: 2002/10/17 09:10:00 EDT
2884    Tag: Release_110_42
2885    Description:
2886    
2887    In good old tradition, there has been a slight hiccup so that we have
2888    to patch 110.42 after the fact.   The old release tag has been replaced
2889    (see below).
2890    
2891    The change solves a problem with two competing approaches the
2892    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
2893    each other's way.
2894    
2895    This change only affects the runtime system code and the installer script.
2896    (No new bootfiles.)
2897    
2898    ----------------------------------------------------------------------
2899    Name: Matthias Blume
2900    Date: 2002/10/16 12:00:00 EDT
2901    Tag: Release_110_42_removed
2902    Description:
2903    
2904    New working release.  New bootfiles.
2905    
2906    ----------------------------------------------------------------------
2907    Name: Matthias Blume
2908    Date: 2002/10/10 13:10:00 EDT
2909    Tag: blume-20021010-ppc-divs
2910    Description:
2911    
2912    The mltree operator DIVS must be implemented with an overflow check on
2913    the PPC because the hardware indicates divide-by-zero using "overflow" as
2914    well.
2915    
2916    ----------------------------------------------------------------------
2917    Name: Matthias Blume
2918    Date: 2002/07/23 11:45:00
2919    Tag: blume-20020723-smlnj-home
2920    Description:
2921    
2922    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
2923    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
2924    CM_PATHCONFIG is also set), the path configuration file is assumed
2925    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
2926    the entire tree to some other place and everything will "just work".
2927    
2928    (Companion commands such as ml-build and ml-makedepend also sense this
2929    variable.)
2930    
2931    ----------------------------------------------------------------------
2932    Name: Matthias Blume
2933    Date: 2002/07/12 21:19:00 EDT
2934    Tag: blume-20020712-liveness
2935    Description:
2936    
2937    Exported two useful "step" functions from liveness module (MLRISC).
2938    
2939    ----------------------------------------------------------------------
2940    Name: Matthias Blume
2941    Date: 2002/07/05 16:00 EDT
2942    Tag: Release_110_41
2943    Description:
2944    
2945    New working release.  New bootfiles.
2946    
2947    ----------------------------------------------------------------------
2948    Name: Matthias Blume
2949    Date: 2002/07/05 10:25:00 EDT
2950    Tag: blume-20020705-btimp
2951    Description:
2952    
2953    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
2954    other clients can set up backtracing support.
2955    
2956    ----------------------------------------------------------------------
2957    Name: Matthias Blume
2958    Date: 2002/06/25 17:23:00 EDT
2959    Tag: blume-20020625-fpmax
2960    Description:
2961    
2962    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
2963    case.  (The sense of the isNaN test was reversed -- which made min and
2964    max always return their first argument.)
2965    
2966    ----------------------------------------------------------------------
2967    Name: Matthias Blume
2968    Date: 2002/06/11
2969    Tag: blume-20020611-unixpath
2970    Description:
2971    
2972    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
2973    
2974    ----------------------------------------------------------------------
2975    Name: Matthias Blume
2976    Date: 2002/06/10 16:35:00 EDT
2977    Tag: blume-20020610-ieeereal
2978    Description:
2979    
2980    I back-ported my implementation of IEEEReal.fromString from the
2981    idlbasis-devel branch so that we can test it.
2982    
2983    Another small change is that ppDec tries to give more information
2984    than just "<sig>" in the case of functors.  However, this code is
2985    broken in some mysterious way if the functor's body's signature
2986    has not been declared by ascription but gets inferred from the
2987    implementation.  This needs fixing...
2988    
2989    ----------------------------------------------------------------------
2990    Name: Matthias Blume
2991    Date: 2002/05/31
2992    Tag: blume-20020531-btrace-mode
2993    Description:
2994    
2995    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
2996    the wayside when I switched over to using Controls everywhere.)
2997    
2998    ----------------------------------------------------------------------
2999    Name: Lal George
3000    Date: 2002/05/23 12:21:40 EDT
3001    Tag: george-20020523-visual-labels
3002    Description:
3003    
3004    Labels are now displayed in the graphical output to make
3005    the fall-through and target blocks obvious.
3006    
3007    ----------------------------------------------------------------------
3008    Name: Matthias Blume
3009    Date: 2002/05/22 11:03:00 EDT
3010    Tag: blume-20020522-shrink
3011    Description:
3012    
3013    John tweaked yesterday's fix for 1131 to handle an out-of-memory
3014    situation that comes up when allocating huge arrays.
3015    
3016    ----------------------------------------------------------------------
3017    Name: Matthias Blume
3018    Date: 2002/05/21 16:00:00 EDT
3019    Tag: Release_110_40
3020    Description:
3021    
3022    New working release (110.40).  New bootfiles.
3023    
3024    [Also: John Reppy fixed GC bug 1131.]
3025    
3026    ----------------------------------------------------------------------
3027    Name: Matthias Blume
3028    Date: 2002/05/21 12:35:00 EDT
3029    Tag: blume-20020521-cmdoc
3030    Description:
3031    
3032    CM documentation update.
3033    
3034    ----------------------------------------------------------------------
3035    Name: Matthias Blume
3036    Date: 2002/05/21 10:55:00 EDT
3037    Tag: blume-20020521-misc
3038    Description:
3039    
3040    - John tweaked runtime to be silent on heap export (except when
3041      GC messages are on).
3042    - I added a few more things (cross-compiling versions of CMB) to
3043      config/preloads (as suggestions).
3044    
3045    ----------------------------------------------------------------------
3046    Name: Matthias Blume
3047    Date: 2002/05/20 22:25:00 EDT
3048    Tag: blume-20020520-controls
3049    Description:
3050    
3051    - Added ControlUtil structure to control-lib.cm.
3052    - Use it throughout.
3053    - Used Controls facility to define MLRISC controls (as opposed to
3054      registering MLRISC control ref cells with Controls after the fact)
3055    - Fixed messed-up controls priorities.
3056    
3057    * Removed again all the stuff from config/preloads that one wouldn't
3058      be able to preload at the time the initial heap image is built.
3059      (Many libraries, e.g., CML, do not exist yet at this time.  The
3060       only libraries that can be preloaded via config/preloads are those
3061       that come bundled with the bootfiles.)
3062    
3063    ----------------------------------------------------------------------
3064    Name: Matthias Blume
3065    Date: 2002/05/20 10:59:00 EDT
3066    Tag: blume-20020520-preloads
3067    Description:
3068    
3069    Added a lot of commented-out suggestions for things to be included
3070    in config/preloads.
3071    
3072    ----------------------------------------------------------------------
3073    Name: Allen Leung
3074    Date: 2002/05/18 14:20:00 EDT
3075    Tag: leunga-20020518-mdl
3076    Description:
3077    
3078    o Made the mdl tool stuff compile and run again.
3079    o I've disabled all the stuff that depends on RTL specifications; they
3080      are all badly broken anyway.
3081    
3082    ----------------------------------------------------------------------
3083    Name: Matthias Blume
3084    Date: 2002/05/17 16:49:00 EDT
3085    Tag: blume-20020517-controls
3086    Description:
3087    
3088    0. John Reppy made several modifications to the SML/NJ library.
3089       In particular, there is a shiny new controls-lib.cm.
3090    
3091    1. Pushed new controls interface through compiler so that everything
3092       compiles again.
3093    
3094    2. Added FormatComb and FORMAT_COMB to the CML version of the
3095       SML/NJ library (so that CML compiles again).
3096    
3097    3. Modified init scripts because XXX_DEFAULT environment variables
3098       are no longer with us.  (Boot-time initialization is now done
3099       using the same environment variables that are also used for
3100       startup-time initialization of controls.)
3101    
3102    ----------------------------------------------------------------------
3103    Name: Lal George
3104    Date: 2002/05/15 09:20:10 EDT
3105    Tag: george-20020515-pseudo-op-decls
3106    Description:
3107    
3108            All pseudo-ops emitted before the first segment declaration
3109    such as TEXT, DATA, and BSS directives are assumed to be global
3110    declarations and are emitted first in the assembly file. This is
3111    useful in a number of situations where one has pseudo-ops that are not
3112    specific to any segment, and also works around the constraint that one
3113    cannot have client pseudo-ops in the TEXT segment.
3114    
3115            Because no segment is associated with these declarations it is
3116    an error to allocate any space or objects before the first segment
3117    directive and an exception will be raised. However, we cannot make
3118    this check for client pseudo-ops.
3119    
3120            These top level declarations are a field in the CFG graph_info.
3121    In theory you can continue to add to this field after the CFG has been
3122    built -- provided you know what you are doing;-)
3123    
3124    ----------------------------------------------------------------------
3125    Name: Matthias Blume
3126    Date: 2002/05/13 16:40:00 EDT
3127    Tag: blume-20020513-pp-etc
3128    Description:
3129    
3130    A few minor bugfixes:
3131    
3132      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
3133        (Bogus printouts for redefined bindings still occur.  Compiler
3134        bug should no longer occur now.  We need to redo the prettyprinter
3135        from scratch.)
3136    
3137      - CM pathname printer now also adds escape sequences for ( and )
3138    
3139      - commend and docu fixes for ml-nlffi
3140    
3141    ----------------------------------------------------------------------
3142    Name: Matthias Blume
3143    Date: 2002/05/10 16:40:00 EDT
3144    Tag: blume-20020510-erg-textio
3145    Description:
3146    
3147    Applied the following bugfix provided by Emden Gansner:
3148    
3149        Output is corrupted when outputSubstr is used rather than output.
3150    
3151        The problem occurs when a substring
3152    
3153            ss = (s, dataStart, dataLen)
3154    
3155        where dataStart > 0, fills a stream buffer with avail bytes left.
3156        avail bytes of s, starting at index dataStart, are copied into the
3157        buffer, the buffer is flushed, and then the remaining dataLen-avail
3158        bytes of ss are copied into the beginning of the buffer. Instead of
3159        starting this copy at index dataStart+avail in s, the current code
3160        starts the copy at index avail.
3161    
3162        Fix:
3163        In text-io-fn.sml, change line 695 from
3164             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
3165        to
3166             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
3167    
3168    ----------------------------------------------------------------------
3169    Name: Matthias Blume
3170    Date: 2002/04/12 13:55:00 EDT
3171    Tag: blume-20020412-assyntax
3172    Description:
3173    
3174    1. Grabbed newer assyntax.h from the XFree86 project.
3175    2. Fiddled with how to compile X86.prim.asm without warnings.
3176    3. (Very) Minor cleanup in CM.
3177    
3178    ----------------------------------------------------------------------
3179    Name: Matthias Blume
3180    Date: 2002/04/01 (no joke!) 17:07:00 EST
3181    Tag: blume-20020401-x86div
3182    Description:
3183    
3184    Added full support for div/mod/rem/quot on the x86, using the machine
3185    instruction's two results (without clumsily recomputing the remainder)
3186    directly where appropriate.
3187    
3188    Some more extensive power-of-two support was added to the x86 instruction
3189    selector (avoiding expensive divs, mods, and muls where they can be
3190    replaced with cheaper shifts and masks).  However, this sort of thing
3191    ought to be done earlier, e.g., within the CPS optimizer so that
3192    all architectures benefit from it.
3193    
3194    The compiler compiles to a fixed point, but changes might be somewhat
3195    fragile nevertheless.  Please, report any strange things that you might
3196    see wrt. div/mod/quot/rem...
3197    
3198    ----------------------------------------------------------------------
3199    Name: Matthias Blume
3200    Date: 2002/03/29 17:22:00
3201    Tag: blume-20020329-div
3202    Description:
3203    
3204    Fixed my broken div/mod logic.  Unfortunately, this means that the
3205    inline code for div/mod now has one more comparison than before.
3206    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
3207    The problem was with quotient = 0, because that alone does not tell
3208    us which way the rounding went.  One then has to look at whether
3209    remainder and divisor have the same sign...  :(
3210    
3211    Anyway, I replaced the bootfiles with fresh ones...
3212    
3213    ----------------------------------------------------------------------
3214    Name: Matthias Blume
3215    Date: 2002/03/29 14:10:00 EST
3216    Tag: blume-20020329-inlprims
3217    Description:
3218    
3219    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
3220    
3221    Primops have changed. This means that the bin/boot-file formats have
3222    changed as well.
3223    
3224    To make sure that there is no confusion, I made a new version.
3225    
3226    
3227    CHANGES:
3228    
3229    * removed REMT from mltree (remainder should never overflow).
3230    
3231    * added primops to deal with divisions of all flavors to the frontend
3232    
3233    * handled these primops all the way through so they map to their respective
3234      MLRISC support
3235    
3236    * used these primops in the implementation of Int, Int32, Word, Word32
3237    
3238    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
3239    
3240    * parameterized INLMIN, INLMAX, and INLABS by a numkind
3241    
3242    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
3243      floating point
3244    
3245    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
3246      and Real (but Real.abs maps to a separate floating-point-only primop)
3247    
3248    
3249    TODO items:
3250    
3251    * Hacked Alpha32 instruction selection, disabling the selection of REMx
3252      instructions because the machine instruction encoder cannot handle
3253      them.  (Hppa, PPC, and Sparc instruction selection did not handle
3254      REM in the first place, and REM is supported by the x86 machine coder.)
3255    
3256    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
3257      selection phase.  (The two can be streamlined because the hardware
3258      delivers both quotient and remainder at the same time anyway.)
3259    
3260    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
3261      (Currently the behavior is inconsistent both across architectures and
3262      wrt. the draft Basis spec.)
3263    
3264    * Word8 should eventually be handled natively, too.
3265    
3266    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
3267      as if there currently is no execution path that could trigger it in
3268      SML/NJ.  (The assumptions underlying functions arith and promotable do not
3269      hold for things like multiplication and division.)
3270    
3271    ----------------------------------------------------------------------
3272    Name: Matthias Blume
3273    Date: 2002/03/27 16:27:00 EST
3274    Tag: blume-20020327-mlrisc-divisions
3275    Description:
3276    
3277    Added support for all four division operations (ML's div, mod, quot,
3278    and rem) to MLRISC.  In the course of doing so, I also rationalized
3279    the naming (no more annoying switch-around of DIV and QUOT), by
3280    parameterizing the operation by div_rounding_mode (which can be either
3281    DIV_TO_ZERO or DIV_TO_NEGINF).
3282    
3283    The generic MLTreeGen functor takes care of compiling all four
3284    operations down to only round-to-zero div.
3285    
3286    Missing pieces:
3287    
3288      * Doing something smarter than relying on MLTreeGen on architectures
3289        like, e.g., the x86 where hardware division delivers both quotient and
3290        remainder at the same time.  With this, the implementation of the
3291        round-to-neginf operations could be further streamlined.
3292    
3293      * Remove inlining support for div/mod/rem from the frontend and replace it
3294        with primops that get carried through to the backend.  Do this for all
3295        int and word types.
3296    
3297    ----------------------------------------------------------------------
3298    Name: Matthias Blume
3299    Date: 2002/03/25 17:25:00 EST
3300    Tag: blume-20020325-divmod
3301    Description:
3302    
3303    I improved (hopefully without breaking them) the implementation of Int.div,
3304    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
3305    advantage of the following observations:
3306    
3307      Let  q = x quot y      r = x rem y
3308           d = x div  y      m = x mod y
3309    
3310    where "quot" is the round-to-zero version of integer division that
3311    hardware usually provides.  Then we have:
3312    
3313         r = x - q * y        where neither the * nor the - will overflow
3314         d = if q >= 0 orelse x = q * y then q else q - 1
3315                              where neither the * nor the - will overflow
3316         m = if q >= 0 orelse r = 0 then r else r + y
3317                              where the + will not overflow
3318    
3319    This results in substantial simplification of the generated code.
3320    The following table shows the number of CFG nodes and edges generated
3321    for
3322            fun f (x, y) = x OPER y
3323            (* with OPER \in div, mod, quot, rem *)
3324    
3325    
3326        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
3327        --------------------------------------------------------
3328         div |         24 |         39 |         12 |         16
3329         mod |         41 |         71 |         12 |         16
3330        quot |          8 |         10 |          8 |         10
3331         rem |         10 |         14 |          8 |         10
3332    
3333    
3334    ----------------------------------------------------------------------
3335    Name: Matthias Blume
3336    Date: 2002/03/25 22:06:00 EST
3337    Tag: blume-20020325-cprotobug
3338    Description:
3339    
3340    Fixed a bug in cproto (c prototype decoder).
3341    
3342    ----------------------------------------------------------------------
3343    Name: Matthias Blume
3344    Date: 2002/03/25 16:00:00 EST
3345    Tag: blume-20020325-raw-primops
3346    Description:
3347    
3348    I did some cleanup to Allen's new primop code and
3349    replaced yesterday's bootfiles with new ones.
3350    (But they are stored in the same place.)
3351    
3352    ----------------------------------------------------------------------
3353    Name: Matthias Blume
3354    Date: 2002/03/24 22:40:00 EST
3355    Tag: blume-20020324-bootfiles
3356    Description:
3357    
3358    Made the bootfiles that Allen asked for.
3359    
3360    ----------------------------------------------------------------------
3361    Name: Allen Leung
3362    Date: 2002/03/23 15:50:00 EST
3363    Tag: leunga-20020323-flint-cps-rcc-primops
3364    Description:
3365    
3366      1. Changes to FLINT primops:
3367    
3368        (* make a call to a C-function;
3369         * The primop carries C function prototype information and specifies
3370         * which of its (ML-) arguments are floating point. C prototype
3371         * information is for use by the backend, ML information is for
3372         * use by the CPS converter. *)
3373      | RAW_CCALL of { c_proto: CTypes.c_proto,
3374                       ml_args: ccall_type list,
3375                       ml_res_opt: ccall_type option,
3376                       reentrant : bool
3377                     } option
3378       (* Allocate uninitialized storage on the heap.
3379        * The record is meant to hold short-lived C objects, i.e., they
3380        * are not ML pointers.  With the tag, the representation is
3381        * the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8)
3382        *)
3383      | RAW_RECORD of {tag:bool,sz:int}
3384      and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR
3385    
3386      2.  These CPS primops are now overloaded:
3387    
3388           rawload of {kind:numkind}
3389           rawstore of {kind:numkind}
3390    
3391          The one argument form is:
3392    
3393             rawload {kind} address
3394    
3395          The two argument form is:
3396    
3397             rawload {kind} [ml object, byte-offset]
3398    
3399      3. RAW_CCALL/RCC now takes two extra arguments:
3400    
3401         a. The first is whether the C call is reentrant, i.e., whether
3402            ML state should be saved and restored.
3403         b. The second argument is a string argument specifying the name of
3404            library and the C function.
3405    
3406         These things are currently not handled in the code generator, yet.
3407    
3408      4. In CProto,
3409    
3410         An encoding type of "bool" means "ml object" and is mapped into
3411         C prototype of PTR.  Note that "bool" is different than "string",
3412         even though "string" is also mapped into PTR, because "bool"
3413         is assigned an CPS type of BOGt, while "string" is assigned INT32t.
3414    
3415      5. Pickler/unpicker
3416    
3417         Changed to handle RAW_RECORD and newest RAW_CCALL
3418    
3419      6. MLRiscGen,
3420    
3421         1. Changed to handle the new rawload/rawstore/rawrecord operators.
3422         2. Code for handling C Calls has been moved to a new module CPSCCalls,
3423            in the file CodeGen/cpscompile/cps-c-calls.sml
3424    
3425      7. Added the conditional move operator
3426    
3427             condmove of branch
3428    
3429         to cps.  Generation of this is still buggy so it is currently
3430         disabled.
3431    
3432  ----------------------------------------------------------------------  ----------------------------------------------------------------------
3433  Name: Lal George  Name: Lal George
3434  Date: 2002/03/22 14:18:25 EST  Date: 2002/03/22 14:18:25 EST

Legend:
Removed from v.1171  
changed lines
  Added in v.2331

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