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