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

revision 1181, Wed Mar 27 21:27:27 2002 UTC revision 1741, Tue Dec 21 19:20:57 2004 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Matthias Blume (blume (at) tti - c (dot) org)
17    Date: 2004/12/21 12:50:00 CST
18    Tag: blume-20041221-memory
19    Description:
20    
21    Some cleanup in the $c/memory.cm library: separated some concerns by
22    moving allocation code and memory access code each into their own
23    files.
24    
25    ----------------------------------------------------------------------
26    Name: Allen Leung (leunga (at) reservoir (dot) com)
27    Date: 2004/12/17 16:12:00 EST
28    Tag: leunga-20041217-cygwin-smlnj-home
29    Description:
30    
31        The Unix I/O library of SML/NJ on cygwin does not understand
32    Windows style pathname, so problems arise when SMLNJ_HOME is set
33    to a Windows style pathname.  _run-sml now converts SMLNJ_HOME
34    to a POSIX pathname on cygwin.
35    
36    ----------------------------------------------------------------------
37    Name: Matthias Blume (blume (at) tti - c (dot) org)
38    Date: 2004/12/16 13:35:00 CST
39    Tag: Release_110_52
40    Description:
41    
42    Last-minute changes incorporated into 110.52.  Release tag moved.
43    
44    The changes:
45       - HashString.hashString' -> HashString.hashSubstring
46       - bug fix in UnivariateStats
47    
48    ----------------------------------------------------------------------
49    Name: Matthias Blume (blume (at) tti - c (dot) org)
50    Date: 2004/12/15 23:40:00 CST
51    Tag: blume-20041215-hashSubstring
52    Description:
53    
54    - HashString.hashString' -> HashString.hashSubstring
55    - corresponding changes in atom.sml
56    - "de-compressed" (aka. un-obfuscated) code for UnivariateStats and
57      added some comments
58    
59    ----------------------------------------------------------------------
60    Name: Matthias Blume (blume (at) tti - c (dot) org)
61    Date: 2004/12/15 15:30:00 CST
62    Tag: (Release_110_52)
63    Description:
64    
65    New working version (110.52).  NEW BOOTFILES!
66    
67    ----------------------------------------------------------------------
68    Name: Matthias Blume (blume (at) tti - c (dot) org)
69    Date: 2004/12/15 12:45:00 CST
70    Tag: blume-20041215-spaces
71    Description:
72    
73    More on the space problem (this time for Win32).
74    
75    ----------------------------------------------------------------------
76    Name: Matthias Blume (blume (at) tti - c (dot) org)
77    Date: 2004/12/14 17:30:00 CST
78    Tag: blume-20041214-spaces
79    Description:
80    
81    Hacked some of the scripts (in particular: the installer) to cope with
82    spaces in filenames a bit better.  But beware: the current "solution"
83    is likely still full of bugs and inherently incomplete.  (We need to
84    do away with those shell scripts for a comprehensive solution.)
85    
86    ----------------------------------------------------------------------
87    Name: Matthias Blume (blume (at) tti - c (dot) org)
88    Date: 2004/12/13 14:45:00 CST
89    Tag: blume-20041213-ml-makedepend
90    Description:
91    
92    Fixed bug in code for ml-makedepend.
93    
94    ----------------------------------------------------------------------
95    Name: Matthias Blume (blume (at) tti - c (dot) org)
96    Date: 2004/12/09 16:30:00 CST
97    Tag: blume-20041209-statistics
98    Description:
99    
100    Added two simple but potentially useful statistics modules to SML/NJ Library.
101    (See CHANGES file there.)
102    
103    ----------------------------------------------------------------------
104    Name: Matthias Blume (blume (at) tti - c (dot) org)
105    Date: 2004/12/01 16:50:00 CST
106    Tag: blume-20041201-atom
107    Description:
108    
109    smlnj-lib:
110    
111      Added function HashString.hashString' for substrings.
112      Hand-inlined CharVector.foldl into HashString (for speed).
113      Modified implementation of structure Atom to avoid extracting
114      strings from substrings unless necessary.
115      (Also see CHANGES file for smlnj-lib.)
116    
117    ----------------------------------------------------------------------
118    Name: Matthias Blume (blume (at) tti - c (dot) org)
119    Date: 2004/11/24 22:15:00 CST
120    Tag: blume-20041124-cml
121    Description:
122    
123    Made sure CML compiles when Position = Int64.
124    
125    ----------------------------------------------------------------------
126    Name: Matthias Blume (blume (at) tti - c (dot) org)
127    Date: 2004/11/24 14:30:00 CST
128    Tag: blume-20041124-position
129    Description:
130    
131    The compiler can now be compiled in a mode that makes structure Position
132    equal to Int64.  The default, however, is unchanged (Position = Int31)
133    for the time being.
134    
135    To enable 64-bit positions, use the following procedure:
136    
137    1. Start sml
138    2. Autoload $smlnj/cmb.cm (if not already autoloaded)
139    3. Type
140          #set (CMB.symval "USE_64_BIT_POSITIONS") (SOME 1);
141    4. Run CMB.make() as usual.
142    
143    This is barely tested.  The only test so far was a little SML program
144    counting the number of characters in an 8-gigabyte file by
145    reading it character-by-character.  That test was successful.
146    
147    In support of 64-bit positions, a number of new functions have been
148    added to the runtime system.
149    
150    ----------------------------------------------------------------------
151    Name: Matthias Blume (blume (at) tti - c (dot) org)
152    Date: 2004/11/23 14:45:00 CST
153    Tag: blume-20041123-useFile
154    Description:
155    
156    Fixed a problem with unhelpful error messages related to problems with
157    .cm- or .sml files that appear as part of the sml command line.
158    
159    ----------------------------------------------------------------------
160    Name: Matthias Blume (blume (at) tti - c (dot) org)
161    Date: 2004/11/18 15:40:00 CST
162    Tag: Release_110_51
163    Description:
164    
165    New working version (110.51).  NEW BOOTFILES!
166    
167    ----------------------------------------------------------------------
168    Name: Matthias Blume (blume (at) tti - c (dot) org)
169    Date: 2004/11/18 15:35:00 CST
170    Tag: <none>
171    Description:
172    
173    Enabled dlopen and friends for FreeBSD (as recommended by Johannes 5
174    Joemann).
175    
176    ----------------------------------------------------------------------
177    Name: Allen Leung (leunga (at) reservoir (dot) com)
178    Date: 2004/11/17 16:05:21 EST 2004
179    Tag: leunga-20041117-mlrisc-live-kill
180    Description:
181    
182       Added support for MLTree constructs LIVE and KILL
183    to all the architectures.
184    
185    ----------------------------------------------------------------------
186    Name: Matthias Blume (blume (at) tti - c (dot) org)
187    Date: 2004/11/13 00:20:00 CST
188    Tag: blume-20041113-versiontool
189    Description:
190    
191    - Stripped down the versiontool: It now only handles the version number.
192      The date string is generated at bootstrap time (during makeml).
193    
194    - In a previous commit, fixed a minor issue with how polyequal is being
195      translated.  In particular, the code now "looks through" abstractions.
196      This results in slightly fewer polyEqual warnings and hopefully slightly
197      more efficient code.  Important examples for where this matters are
198      the new int64 and word64 types.
199    
200    ----------------------------------------------------------------------
201    Name: Matthias Blume (blume (at) tti - c (dot) org)
202    Date: 2004/11/12 00:30:00 CST
203    Tag: blume-20041112-int64
204    Description:
205    
206    Structure Int64 fully hooked in.  (The implementation is not very
207    efficient, though.)
208    
209    ----------------------------------------------------------------------
210    Name: Matthias Blume (blume (at) tti - c (dot) org)
211    Date: 2004/11/11 17:30:00 CST
212    Tag: blume-20041111-more64
213    Description:
214    
215    All the pieces of Word64 are now there, with the exception of the
216    conversions from and to LargeWord. (Eventually these need to be identities,
217    but for the time being they don't even make sense because LargeWord is
218    32-bit wide.)
219    
220    Also started to add similar support for Int64, but major pieces of that
221    are still missing.
222    
223    ----------------------------------------------------------------------
224    Name: Matthias Blume (blume (at) tti - c (dot) org)
225    Date: 2004/11/11 00:15:00 CST
226    Tag: blume-20041111-word64
227    Description:
228    
229    Structure Word64 is now (almost) complete, word literals and patterns
230    seem to work.  There are a few odd pieces missing.  In particular,
231    I didn't do the {from,to}LargeWord parts because LargeWord is still Word32
232    at the moment.
233    
234    Making Word64 official would mean that LargeWord becomes Word64.  But
235    this requires extreme care because most word-word conversions have to
236    go through LargeWord, so making a mistake means loss of efficiency or
237    worse.  Eventually there will be a solution similar to (but actually
238    simpler than) what I did with IntInf.
239    
240    ----------------------------------------------------------------------
241    Name: Matthias Blume (blume (at) tti - c (dot) org)
242    Date: 2004/11/10 18:12:00 CST
243    Tag: blume-20041110-64bit
244    Description:
245    
246    More 64-bit hacking (but still not even half-way there yet).
247    Also, some assorted improvements to the handling of 8-bit words.
248    
249    ----------------------------------------------------------------------
250    Name: Matthias Blume (blume (at) tti - c (dot) org)
251    Date: 2004/11/09 17:50:00 CST
252    Tag: <none>
253    Description:
254    
255    Started adding some infrastructure for supporting 64-bit int- and
256    word-types.  (Still in its very early stages.)
257    
258    ----------------------------------------------------------------------
259    Name: Matthias Blume (blume (at) tti - c (dot) org)
260    Date: 2004/10/28 10:45:00 CDT
261    Tag: Release_110_50
262    Description:
263    
264    New working version (110.50).  NEW BOOTFILES!
265    
266                 =====================
267    
268    Also:
269    
270      - Changend config/srcarchiveurl from a file just
271        containing the URL string into a file containing
272        shell script code.  The code has access to the $VERSION variable.
273      - Made corresponding changes to config/install.sh and config/unpack.
274      - Default contents of config/srcarchiveurl uses $VERSION and
275        normally does not have to be edited to reflect a version change.
276    
277      (As a result, a version change can be done by just editing
278       config/version, the rest is now automatic.)
279    
280    ----------------------------------------------------------------------
281    Name: Matthias Blume (blume (at) tti - c (dot) org)
282    Date: 2004/10/27 17:50:00 CDT
283    Tag: blume-20041027-btrace-msg
284    Description:
285    
286    BackTrace.monitor now also reports the source of the exception that
287    triggered the trace.
288    
289    ----------------------------------------------------------------------
290    Name: Matthias Blume (blume (at) tti - c (dot) org)
291    Date: 2004/10/27 17:20:00 CDT
292    Tag: blume-20041027-x86-c-calls
293    Description:
294    
295    This is the HISTORY entry for two earlier commits, both concerning
296    the x86 c-calls code in MLRISC:
297    
298      - added a missing LOAD in the code that deals with struct arguments
299      - made sure the caller does not add the wrong number of bytes to the
300        stack pointer after a call of a function returning a struct
301        (the callee already pops the implicit argument which points to
302         the space reserved for the result)
303    
304    ----------------------------------------------------------------------
305    Name: Allen Leung (leunga (at) reservoir (dot) com)
306    Date: 2004/10/24 14:00:00 EST
307    Tag: leunga-20041024-x86-gas-fucomip
308    Description:
309    
310       John discovered a bug in the syntax of fucomip.
311       The opcodes FU?COMIP? have been changed to
312    
313           fu?comip? %st(i), %st
314    
315    ----------------------------------------------------------------------
316    Name: Matthias Blume (blume (at) tti - c (dot) org)
317    Date: 2004/10/20 15:06:00 CDT
318    Tag: blume-20041020-standalone-backtrace
319    Description:
320    
321    Added a mechanism for getting back-trace information from standalone
322    programs.  Here is how it works:
323    
324       1. The part of the program from which you want to get backtrace
325          information (usually the whole program) should be wrapped with
326          BackTrace.monitor.  This is a (unit->'a)->'a function, and your
327          main program could be modified from something like
328    
329             fun main (pgm, args) = ...
330    
331         to
332    
333            fun main (pgm, args) = BackTrace.monitor (fn () => ...)
334    
335       2. To be able to access BackTrace.monitor, you have to add
336          library $smlnj-tdp/plugins.cm to the .cm file that contains your
337          main function.
338    
339       3. Remove all compiled code (i.e., all the .cm/ subdirectories that
340          CM might have created in the past for your project).
341    
342       4. Build the system using this command line:
343    
344             ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm \
345                      myprog.cm MyProg.main myprog
346    
347          instead of the usual
348    
349             ml-build myprog.cm MyProg.main myprog
350    
351    I changed a library name:
352    
353       $/trace-debug-profile.cm --> $smlnj-tdp/plugins.cm
354    
355    New libraries:
356    
357       $smlnj-tdp/back-trace.cm
358          -- when loaded causes the back-trace plugin to be installed
359       $smlnj-tdp/coverage.cm
360          -- when loaded causes the coverage plugin to be installed
361    
362    ----------------------------------------------------------------------
363    Name: Matthias Blume (blume (at) tti - c (dot) org)
364    Date: 2004/10/18 16:45:00 CDT
365    Tag: blume-20041018-groupowner
366    Description:
367    
368    Added an "obsolete" warning for the "group owner" syntax to CM's parser.
369    
370    Eliminated group owner specs from .cm files throughout the source tree.
371    
372    ----------------------------------------------------------------------
373    Name: Matthias Blume (blume (at) tti - c (dot) org)
374    Date: 2004/10/15 15:45:00 CDT
375    Tag: blume-20041015-coverage
376    Description:
377    
378    * Test coverage tool added!
379    * Further reorganization of tracing-, debugging-, and profiling support:
380    
381        - moved original BTImp -- now called BackTrace -- into a separate
382          library called $/trace-debug-profile.cm
383        - eliminated all mentions of BTrace from SMLofNJ.Internals
384        - only the instrumentation mechanism is now left in the compiler proper
385        - BackTrace module is a plugin which is NOT plugged in by default
386        - Coverage module is another such plugin
387    
388    To get the benefits of any of these plugin modules, the code in
389    question must be compiled with tdp instrumentation turned on.  This
390    can be done by setting SMLofNJ.Internals.TDP.mode to true.
391    (The ref cell is also controlled via the -Ctdp.instrument=... switch.)
392    
393    Plugins are selected at link time.  (Pre-compiled instrumented code
394    can be re-loaded with different plugins in effect.)  When an
395    instrumented module is linked, whatever plugins are at that time
396    enabled will come into effect for that module.
397    
398    To enable the back-trace plugin, load library $/trace-debug-profile.cm
399    and invoke BackTrace.install() (e.g., from the interactive prompt).
400    To enable the coverage plugin, load the same library and invoke
401    Coverage.install().
402    
403    Back-traces are generated automatically on uncaught exceptions and
404    when the code in question explicitly invokes BackTrace.trigger().
405    
406    Coverage (and execution frequency-) information must be queried
407    explicitly by calling Coverage.not_covered and Coverage.hot_spots.
408    
409    ----------------------------------------------------------------------
410    Name: Matthias Blume (blume (at) tti - c (dot) org)
411    Date: 2004/10/14 17:40:00 CDT
412    Tag: blume-20041014-tdp-core
413    Description:
414    
415    Snapshot of a significant overhaul of how the trace/debug/profile support
416    is hooked into the system (specifically: Core and SMLofNJ.Internals).
417    
418    ----------------------------------------------------------------------
419    Name: Matthias Blume (blume (at) tti - c (dot) org)
420    Date: 2004/10/13 16:34:00 CDT
421    Tag: blume-20041013-tdp
422    Description:
423    
424    Some rationalization of names:
425    
426       structure BTrace -> structure TDPInstrument
427       etc.
428    
429    This is is preparation of using the original back-trace
430    instrumentation for other purposes.  "TDP" stands for
431    Trace/Debug/Profile.
432    
433    The control flag controlling whether instrumentation is on or off is now
434    registered under a different name, so instead of running sml as
435    
436     sml -Cinstrument.btrace-mode=true
437    
438    one has to say
439    
440     sml -Ctdp.instrument=true
441    
442    ----------------------------------------------------------------------
443    Name: Matthias Blume (blume (at) tti - c (dot) org)
444    Date: 2004/10/11 16:37:00 CDT
445    Tag: blume-20041011-regions
446    Description:
447    
448    Made some minor modifications to elabcore.sml to have source regions
449    be propagated more tightly -- resulting in better (i.e., smaller)
450    regions being reported in error- and debug messages.
451    
452    ----------------------------------------------------------------------
453    Name: Matthias Blume (blume (at) tti - c (dot) org)
454    Date: 2004/10/08 22:50:00 CDT
455    Tag: blume-20041008-cmkw
456    Description:
457    
458    Fixed handling of keywords in .cm files: After seeing "is" the lexer
459    treats subsequent occurrences of "group", "library", "source", "is",
460    "*", and "-" as ordinary identifiers rather than keywords.
461    
462    Most seriously, this fixes a problem with CM's "shell" tool.  The tool
463    is supposed to accept a tool argument called "source", but this did
464    not work because of the clash with the keyword.
465    
466    ----------------------------------------------------------------------
467    Name: Matthias Blume (blume (at) tti - c (dot) org)
468    Date: 2004/10/07 16:00:00 CDT
469    Tag: blume-20041007-cleanup
470    Description:
471    
472    Assorted cleanup work:
473    
474      - got rid of intstrmap in favor of using the library's
475        hash table implementation
476      - threw out most of the pathnames stuff, as it was not used anyway
477      - simplified tokentable implementation
478      - fixed some minor spelling errors
479    
480    ----------------------------------------------------------------------
481    Name: Matthias Blume (blume (at) tti - c (dot) org)
482    Date: 2004/10/06 15:15:15 CDT
483    Tag: blume-20041006-handler
484    Description:
485    
486    Cleaned up the absyn to reflect the invariant that HANDLE always
487    carries a FNexp as part of the type definition.  This eliminates some
488    superfluous sanity checks at runtime down the road.
489    
490    Some minor cleanup of the btrace code.
491    
492    ----------------------------------------------------------------------
493    Name: Matthias Blume (blume (at) tti - c (dot) org)
494    Date: 2004/10/01 10:20:30 CDT
495    Tag: blume-20041001-slave
496    Description:
497    
498    Added hack to make slave mode work in the presence of the version
499    tool.  (Still, since the master does two passes over the code for
500    CMB.make, the release number gets bumped twice when slaves are
501    attached.  I don't know if this is worth fixing...)
502    
503    ----------------------------------------------------------------------
504    Name: Matthias Blume (blume (at) tti - c (dot) org)
505    Date: 2004/09/30 10:55:00 CDT
506    Tag: blume-20040930-version
507    Description:
508    
509    * Moved the "version" magic into its own little library under
510      src/system/smlnj/internal.  This avoids expensive reconstruction of
511      a stable src/compiler/core.cm.
512    
513    * At the same time, structure CompilerVersion is now known as
514      structure SMLNJVersion.
515    
516    * Arranged for the version tool to NOT kick in when rebuilding the system
517      (makeml -rebuild, fixpt).  Otherwise one would never reach a fixpoint.
518      Also, loading the versiontool does not work when rebuilding the system
519      because CM is not properly initialized at that time.
520    
521    ----------------------------------------------------------------------
522    Name: Matthias Blume (blume (at) tti - c (dot) org)
523    Date: 2004/09/29 14:00:00 CDT
524    Tag: blume-20040929-autoversion
525    Description:
526    
527    Implemented some CM magic to have
528        file src/compiler/TopLevel/main/version.sml
529    generated automagically.
530    The version is taken from two files: config/version and config/release.
531    The first is expected to contain a two-part version number such as 110.49.
532    The second should contain a single number, but it may be missing.
533    
534    If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
535    time the version tool is loaded (which is the first time you say CMB.make),
536    then the tool will increment the value stored in config/release every
537    time CMB.make is invoked.
538    
539    The binfile format is now insensitive to anything beyond the first
540    two components of a version number, so bumping the release does not render
541    binfiles incompatible.  Auto-bumping can be used to keep track of versions
542    during development without invalidating existing binfiles.
543    
544    In any case, every CMB.make updates the date information in version.sml.
545    (This is the date that is printed in the banner.)
546    
547    ----------------------------------------------------------------------
548    Name: Matthias Blume (blume (at) tti - c (dot) org)
549    Date: 2004/09/28 10:53:00 CDT
550    Tag: blume-20040928-controls
551    Description:
552    
553    Some cleanup of the controls code.
554    
555    ----------------------------------------------------------------------
556    Name: Matthias Blume (blume (at) tti - c (dot) org)
557    Date: 2004/09/27 22:08:00 CDT
558    Tag: blume-20040927-controls
559    Description:
560    
561    Added two pieces of functionality to the Controls interface:
562    
563    1.   val save'restore: 'a control -> unit -> unit
564    
565       grabs the current value of the control in stage 1 and restores it
566       in stage 2.
567    
568    2.   val set' : 'a control * 'a -> unit -> unit
569    
570       stores the given value into the control in stage 2 (i.e., delayed)
571       but does all error checking in stage 1.
572       (This is for string controls that need to do parse their argument --
573        something that might fail.  In some cases, notably in CM, one
574        already knows the intended argument but wants to delay the actual
575        assignment until a time when error recovery would be more difficult.)
576    
577    Changed the handling of controls in tool arguments to classes "sml" and
578    "lazysml":
579       - use Controls.save'restore as a more robust way of restoring the
580         old value (in particular: without having to re-parse the string)
581       - use controls to handle the "overload" keyword in the init group
582         (I believe this change actually fixes a long-standing obscure bug.)
583    
584    ----------------------------------------------------------------------
585    Name: Matthias Blume (blume (at) tti - c (dot) org)
586    Date: 2004/09/27 17:00:00 CDT
587    Tag: blume-20040927-lazysml
588    Description:
589    
590    Added a new tool class called "lazysml" to CM's tool chest.  The only
591    difference to "sml" is that compilation is done with Control.lazysml
592    set to true.  A source of class "lazysml" is automatically recognized
593    by a file name suffix of ".lml".
594    
595    In addition to the above feature, the original class "sml" now also
596    supports a tool argument "lazy" which has the same effect.  As a
597    result, the following three lines are equivalent:
598    
599        foo.sml : lazysml
600        foo.sml : sml (lazy)
601        foo.sml (lazy)
602    
603    The setting goes into effect both during parsing and during
604    compilation.  The original setting is restored right after parsing and
605    after compilation, respectively.
606    
607    In addition to all the above, there is also a general mechanism to set
608    ANY of the "controls" that are available at the command line via
609    "-C..." on a per-sml-file basis.  The same rules that apply for "lazy"
610    apply as well. (In fact, "lazy" is implemented as a special case of
611    the general mechanism.)
612    
613    The .cm file syntax uses a new keyword tool argument called "with".
614    There are several ways of indicating the desired settings:
615    
616        foo.sml (with:parser.quotations=true)
617        foo.sml (with:(name:parser.quotations value:true))
618        foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
619        foo.sml (with:(name1=value1 name2=value2 ...))
620        foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
621    
622        etc.
623    
624    Another possible abbreviation is to leave out the =v or value:v part
625    if the name refers to a boolean control (in which case the value is
626    taken to be true).  Thus, one could get lazy sml also by saying:
627    
628        foo.sml (with:parser.lazy-keyword=true)
629        foo.sml (with:parser.lazy-keyword)
630        foo.sml (with:(name:parser.lazy-keyword value:true))
631        foo.sml (with:(name:parser.lazy-keyword))
632    
633    ----------------------------------------------------------------------
634    Name: Matthias Blume (blume (at) tti - c (dot) org)
635    Date: 2004/09/24 16:22:00 CDT
636    Tag: blume-20040924-ppc-long-branch
637    Description:
638    
639    Turned message about "emiting long form of branch" off by default.
640    Added a control flag to turn it back on when desired.
641    
642    ----------------------------------------------------------------------
643    Name: Matthias Blume (blume (at) tti - c (dot) org)
644    Date: 2004/09/24 16:05:00 CDT
645    Tag: blume-20040924-rounding
646    Description:
647    
648    Applied patch for setting rounding modes under Mac OS X.  Thanks to
649    Melissa O'Neill for providing the code!
650    
651    ----------------------------------------------------------------------
652    Name: Matthias Blume (blume (at) tti - c (dot) org)
653    Date: 2004/09/23 17:30:00 CDT
654    Tag: blume-20040923-envvars
655    Description:
656    
657    1. Changed definition of type ControlRegistry.registry_tree to
658       include control_info (i.e., the name of the controlling environment
659       variable).
660    
661    2. Added command-line flags -e and -E to print the names of environment
662       variables that can be used to control internal settings.
663       (This uses the new API mentioned in 1.)
664    
665    ----------------------------------------------------------------------
666    Name: Matthias Blume (blume (at) tti - c (dot) org)
667    Date: 2004/09/13 16:50:00 CDT
668    Tag: Release_110_49
669    Description:
670    
671    New working version (110.49).  NEW BOOTFILES!
672    
673    ----------------------------------------------------------------------
674    Name: Matthias Blume
675    Date: 2004/09/13 16:20:00 CDT
676    Tag: blume-20040913-config-mlrisc
677    Description:
678    
679    Put target "mlrisc" back into the default list.
680    (There is no harm in having it, and some users have expressed their
681    wish to have "mlrisc" included by default.)
682    
683    ----------------------------------------------------------------------
684    Name: John Reppy
685    Date: 2004/09/13
686    Tag: jhr-20040913-signals
687    Description:
688    
689    Fixed the signal masking code to properly nest mask/unmask operations
690    on a per-signal basis.
691    
692    ----------------------------------------------------------------------
693    Name: Matthias Blume (blume (at) tti - c (dot) org)
694    Date: 2004/09/08 13:20:00 CDT
695    Tag: blume-20040908-heap-magic
696    Description:
697    
698    Bumped the heap macig number to 0x09082004 to account for the changed
699    layout of the ML frame under MacOS X.
700    
701    ----------------------------------------------------------------------
702    Name: Allen Leung (leunga (at) reservoir (dot) com)
703    Date: 2004/09/03 11:26:00 EST
704    Tag: leunga-20040903-cygwin-install
705    Description:
706    
707       Added a patch to _arch-n-opsys to enable the Cygwin runtime.
708    The Cygwin runtime is turned on by setting the environment
709    variable SMLNJ_CYGWIN_RUNTIME to 1.
710    
711    ----------------------------------------------------------------------
712    Name: Matthias Blume (blume (at) tti - c (dot) org)
713    Date: 2004/08/31 17:15:00 CDT
714    Tag: blume-20040831-core
715    Description:
716    
717    Added some exports to src/compiler/core.cm upon request by J. Joemann.
718    
719    ----------------------------------------------------------------------
720    Name: Matthias Blume (blume (at) tti - c (dot) org)
721    Date: 2004/08/30 17:55:00 CDT
722    Tag: blume-20040830-installer
723    Description:
724    
725    Upon request by Johannes Joemann:
726    
727    - improved ML code of installer to fall back to coping when renaming
728      fails (i.e., when source and target are on different file systems);
729      the code compiles but has yet to be tested in anger
730    - removed mlrisc from list of default targets (config/targets)
731    
732    ----------------------------------------------------------------------
733    Name: Matthias Blume (blume (at) tti - c (dot) org)
734    Date: 2004/08/27 17:20:00 CDT
735    Tag: blume-20040827-ptreql
736    Description:
737    
738    Added ptreql primop to structure InlineT (upon request from Larry
739    Paulson).
740    
741    ----------------------------------------------------------------------
742    Name: Allen Leung (leunga (at) reservoir (dot) com)
743    Date: 2004/08/15 21:21:00 EST
744    Tag: leunga-110_48-udgraph
745    Description:
746    
747    Another bug fix from Carl Hauser:
748    
749    diff /net/niflab/smlnj48/src/MLRISC/graphs/udgraph.sml udgraph.sml
750    > 48c48
751    > <              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then es else
752    > e::L)
753    > ---
754    > >              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then L else e::L)
755    > Without this, any deletion of an edge in an undirected graph does severe
756    > violence to the graph.
757    
758    ----------------------------------------------------------------------
759    Name: Allen Leung (leunga (at) reservoir (dot) com)
760    Date: 2004/08/10 23:35:00 EST
761    Tag: leunga-110_48-ppc
762    Description:
763    
764       The IBM/MacOS syntax switch on PPC was incorrectly swapped.
765    
766    ----------------------------------------------------------------------
767    Name: Matthias Blume (blume (at) tti - c (dot) org)
768    Date: 2004/08/10 12:00:00 CDT
769    Tag: Release_110_48
770    Description:
771    
772    New working version (110.48).  NEW BOOTFILES!
773    
774    ----------------------------------------------------------------------
775    Name: Allen Leung (leunga (at) reservoir (dot) com)
776    Date: 2004/08/09 12:21:00 EST
777    Tag: leunga-110_47-dijsktra
778    Description:
779    
780    Bug fix from Carl Hauser:
781    
782    single_source_shortest_paths in dijkstra.sml was observed to get wrong
783    answers (by comparing to single_source_shortest_paths in bellman-ford.sml).
784    
785    The problem is that following the expression A.update(dist,s,Num.zero)
786    it is necessary to update the priority queue using Q.decreaseWeight(Q,s).
787    
788    ----------------------------------------------------------------------
789    Name: Matthias Blume (blume (at) tti - c (dot) org)
790    Date: 2004/08/06 18:10:00 CDT
791    Tag: blume-20040806-cmdline
792    Description:
793    
794    Fiddled with handling of command-line options:
795    
796      * sml now quits after processing the command line
797        if -H, -S, -h<n>, or -s<n> appears as the last
798        command-line argument
799      * a new option -q terminates the session when encountered on
800        the command line; subsequent arguments will be ignored
801      * bug fixes: short (erroneous) arguments are no longer ignored
802        completely
803    
804    ----------------------------------------------------------------------
805    Name: Allen Leung (leunga (at) reservoir (dot) com)
806    Date: 2004/08/04 18:17:00 EST
807    Tag: leunga-110_47-ppc-ibm-asm
808    Description:
809    
810      - Added minimal IBM assembly syntax support for PowerPC.
811    
812      - Cygwin: manually changed the file cygwin.def.  Some exported symbols have
813        been altered in the runtime.  We need an automatic way to keep the file
814        in sync.
815    
816    ----------------------------------------------------------------------
817    Name: Matthias Blume (blume (at) tti - c (dot) org)
818    Date: 2004/08/04 14:00:00 CDT
819    Tag: Release_110_47
820    Description:
821    
822    New working version (110.47).  NEW BOOTFILES!
823    
824    ----------------------------------------------------------------------
825    Name: Matthias Blume (blume (at) tti - c (dot) org)
826    Date: 2004/08/03 14:25:00 CDT
827    Tag: blume-20040803-callingconv
828    Description:
829    
830    Added low-level support for choosing C calling conventions by
831    twiddling the type of rawccall.  (See
832    src/compiler/Semant/types/cproto.sml for details.)
833    
834    ----------------------------------------------------------------------
835    Name: Matthias Blume (blume (at) tti - c (dot) org)
836    Date: 2004/08/02 15:55:00 CDT
837    Tag: blume-20040802-backout
838    Description:
839    
840    Backed out of change to win32-filesys.c.  The earlier patch to
841    get_file_time caused CM to produce files with the wrong time stamp.
842    
843    ----------------------------------------------------------------------
844    Name: Matthias Blume (blume (at) tti - c (dot) org)
845    Date: 2004/08/02 14:45:00 CDT
846    Tag: blume-20040802-nlffi-win32
847    Description:
848    
849    Added NLFFI support for Win32, adapted from a patch provided by David
850    Hansel.  This is currently completely untested.  Also, the issue
851    concerning stdcall vs. ccall is still unresolved.
852    
853    ----------------------------------------------------------------------
854    Name: Matthias Blume (blume (at) tti - c (dot) org)
855    Date: 2004/07/30 17:55:00 CDT
856    Tag: blume-20040730-various
857    Description:
858    
859    Gearing up towards 110.47...
860    
861    - various minor bugfixes to ml-nlffigen
862    - a beginning of a manual for nlffi
863    
864    - eliminated 'export name=value' in config/install.sh as this does
865      not work with certain versions of /bin/sh
866      (Thanks to David King at Motorola for catching this.)
867    
868    - several bugfixes provided or suggested by David Hansel at Reactive Systems:
869      - added a test for tm==NULL to gmtime.c and localtime.c
870      - applied patch for incorrect GetFileTime under win32
871      - toSeconds -> toMilliseconds in Win32/win32-process.sml
872    
873    ----------------------------------------------------------------------
874    Name: Matthias Blume (blume (at) tti - c (dot) org)
875    Date: 2004/07/21 18:20:00 CDT
876    Tag: blume-20040721-nlffigen
877    Description:
878    
879    - Fixed minor issue in ml-nlffigen: Now generate structure T_foo
880      for a typedef to an incomplete type, but leave out the "typ" member.
881      (This is just for consistency.)
882    - Started to produce what is supposed to become better (i.e., comprehensive)
883      documentation of what ml-nlffigen does and produces.
884    
885    ----------------------------------------------------------------------
886    Name: Matthias Blume (blume (at) tti - c (dot) org)
887    Date: 2004/07/14 16:25:00 CDT
888    Tag: blume-20040714-union
889    Description:
890    
891    Added C_UNION to c-calls/c-types.sml and updated the machinery
892    (ml-nlffigen, cproto.sml) that conveys C function interface
893    information to the code generator.
894    
895    However, the actual architecture-specific implementation of function
896    arguments and results that are C unions is still not implemented.
897    
898    ----------------------------------------------------------------------
899    Name: Allen Leung (leunga (at) reservoir (dot) com)
900    Date: 2004/07/14 14:38:00 EST
901    Tag: leunga-110_46_1-ppc-lwzu
902    Description:
903    
904        Added these instructions to the PowerPC architecture:
905        LBZU(X), LHZU(X), LWZU(X),
906        STWU(X), STFDU, STFSU
907    
908        etc...
909    
910        Note: I haven't added their instruction encoding into the description.
911    
912    ----------------------------------------------------------------------
913    Name: Allen Leung (leunga (at) reservoir (dot) com)
914    Date: 2004/07/13 15:04:00 EST
915    Tag: leunga-110_46_1-ppc-lwarx
916    Description:
917    
918       Added the two instructions LWARX and STWCX to the PowerPC
919    instruction set.
920    
921       A (untested) rewrite of loop-structure.sml.  The old version
922    is completely broken.
923    
924    ----------------------------------------------------------------------
925    Name: Matthias Blume (blume (at) tti - c (dot) org)
926    Date: 2004/07/13 13:50:00 CDT
927    Tag: blume-20040713-nlffi
928    Description:
929    
930    - use paramAlloc to report c-calls with too many arguments
931      (for PPC version where parameter area is pre-allocated)
932    - added ccall_maxargspace to machspec (to implement the above)
933    - made "make" commend in CM's "make" tool configurable
934    - added option (default: on) for passing the name of the SML/NJ's "bin"
935      directory to "make"; the call looks like this:
936    
937         make <options> SMLNJ_BINDIR=<dir> <target>
938    
939      This can be used by the Makefile to, e.g., pick the "right" version
940      of ml-nlffigen.
941    - minor code tweaks
942    
943    ----------------------------------------------------------------------
944    Name: Matthias Blume (blume (at) tti - c (dot) org)
945    Date: 2004/07/12 22:50:00 CDT
946    Tag: blume-110_46_1-macosx-nlffi
947    Description:
948    
949    NLFFI under Mac OS X now working (sort of).  This is largely untested,
950    though.
951    
952    Note:  1. You have to make a new, clean build of the runtime system.
953           2. There are new BOOTFILES, you have to use them!
954              (Doing the bootstrap process yourself would be *very* painful!
955               If you absolutely have to do it, build the system under
956               a different architecture and then cross-compile.)
957    
958    Version bumped to 110.46.1 to account for runtime data format changes.
959    
960    ----------------------------------------------------------------------
961    Name: Matthias Blume (blume (at) tti - c (dot) org)
962    Date: 2004/06/18 14:30:00 CDT
963    Tag: blume-20040618-unix
964    Description:
965    
966    Changed the implementation of structure Unix so that the same stream
967    is returned every time one of the {text,bin}{In,Out}streamOf functions
968    is invoked on the same proc.  This is not what the spec currently
969    says -- although IMO it arguably should.  (See discussion below.)
970    
971    ----------------------------------------------------------------------
972    Name: Matthias Blume (blume (at) tti - c (dot) org)
973    Date: 2004/06/17 18:15:00 CDT
974    Tag: Release_110_46
975    Description:
976    
977    New working version (110.46).  NEW BOOTFILES!
978    
979    ----------------------------------------------------------------------
980    Name: Matthias Blume (blume (at) tti - c (dot) org)
981    Date: 2004/06/17 17:20:00 CDT
982    Tag: blume-20040617-timer-unix
983    Description:
984    
985    Changed the interface of structures Timer and Unix to match the most
986    recent Basis spec.
987    
988    In the case of Unix there still seems to be an open/weird issue:
989    
990       The {text,bin}{In,Out}streamOf functions are supposed to create
991       fresh streams whenever they are called -- as opposed to have them
992       return the same stream every time.  This design is supposed to
993       prevent space leaks caused by proc values hanging on to streams.
994    
995       The reap function, on the other hand, is supposed to close the
996       streams.  This cannot be done without having a handle on the
997       stream in proc after all...
998    
999    I took the liberty to implement the following stopgap solution:
1000    
1001      The proc value hangs on to the most recently created stream(s).
1002      Reap closes those.  If either or both of the two streams hadn't
1003      been created at all yet, then reap will close the corresponding
1004      file descriptors directly.
1005    
1006    PS: I don't understand the original space leak argument anymore.  If
1007    a proc hangs on to the imperative stream, then I/O operations on those
1008    will advance the state of the cached stream and avoid the space leak.
1009    
1010    ----------------------------------------------------------------------
1011    Name: Matthias Blume (blume (at) tti - c (dot) org)
1012    Date: 2004/05/28 16:45:00 CDT
1013    Tag: blume-20040528-basis
1014    Description:
1015    
1016    Added signature PACK_REAL and exported functor PrimIO.
1017    
1018    ----------------------------------------------------------------------
1019    Name: Matthias Blume (blume (at) tti - c (dot) org)
1020    Date: 2004/05/25 16:00:00 CDT
1021    Tag: blume-20040525-group-owner
1022    Description:
1023    
1024    CM now ignores (but still accepts) the "owner" information in group
1025    descriptions.  The owner of a group is its next enclosing
1026    library. Each group must have a unique owner.  (There is a virtual
1027    "toplevel" library that owns groups which are not nested within a real
1028    library.)  Previously, each group had to explicitly declare its owner,
1029    and CM would check that such a declaration is correct.  The new scheme
1030    is to have CM check that for each group there is precisely one owning
1031    library.
1032    
1033    The advantage of the new scheme is that the programmer no longer needs
1034    to maintain the somewhat annoying owner information.  The downside is
1035    that CM cannot enforce the ownership rule across multiple runs of
1036    CM.make.  Fortunately, enclosing the same group in two different
1037    libraries A and B which are not part of the same program does not
1038    cause real problems.
1039    
1040    ----------------------------------------------------------------------
1041    Name: Matthias Blume (blume (at) tti - c (dot) org)
1042    Date: 2004/05/20 16:00:00 CDT
1043    Tag: blume-20040520-win32
1044    Description:
1045    
1046    Made the win32 version work again.  (Strangely, a misplaced comma had
1047    slipped into win32-process.c which prevented the runtime from being
1048    compiled correctly.)
1049    
1050    Also, included a minor addition to ml-build.bat analogous to what was
1051    done in blume-20040519-ml-build.
1052    
1053    ----------------------------------------------------------------------
1054    Name: Matthias Blume (blume (at) tti - c (dot) org)
1055    Date: 2004/05/19 22:10:00 CDT
1056    Tag: blume-20040519-ml-build
1057    Description:
1058    
1059    Arranged for ml-build to clean up after itself a little bit better.
1060    The script generates a temporary SML source file and compiles it using
1061    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
1062    gets rid of those at the end, so they don't accumulate under .cm.
1063    
1064    This required a minor change to install.sh because the name of the
1065    metadata directory (default: .cm) is actually configurable at
1066    installation time.
1067    
1068    ----------------------------------------------------------------------
1069    Name: Matthias Blume (blume (at) tti - c (dot) org)
1070    Date: 2004/05/18 15:50:00 CDT
1071    Tag: blume-20040518-mkreader
1072    Description:
1073    
1074    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
1075    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
1076    
1077    ----------------------------------------------------------------------
1078    Name: Matthias Blume (blume (at) tti - c (dot) org)
1079    Date: 2004/05/11 14:35:00 CDT
1080    Tag: blume-20040511-win32sock
1081    Description:
1082    
1083    Added previously missing support for many socket-related functions
1084    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
1085    for the voluminous patch!
1086    
1087    (I have not tested this patch under win32 yet.)
1088    
1089    Here is David's e-mail:
1090    
1091    Hi,
1092    
1093    Attached to this email you find a diff against sml/nj 110.45
1094    that will enable socket support under Windows.
1095    
1096    To apply the patch (using unix or cygwin)
1097    1) gunzip runtime.diff.gz
1098    2) "cd" into "src/runtime" in the source tree of a fresh
1099       110.45 installation.
1100    3) patch -p 1 < [your/path/to]runtime.diff
1101    
1102    The code compiles fine but has NOT yet been extensively tested.
1103    I only ran a few tests for basic socket client functionality
1104    (which worked fine).  Especially the functions that use ioctl
1105    are not tested at all and might not work (see below).
1106    
1107    I implemented this since we want to move to a newer version of sml/nj
1108    but need socket support in order to use it.  This is the first time I
1109    even had a look at the sml/nj source,  so please review my changes
1110    before making this part of the distribution!  Here are a few issues
1111    that I think might be better for someone to solve who is more
1112    familiar with the sml/nj source (and socket programming):
1113    
1114    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
1115      exception since I could not figure out what the windows equivalent
1116      of these functions is
1117    
1118    - In sockets-osdep.h there are a some #include statements that are
1119      only used in a few files that include sockets-osdep.h
1120    
1121    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
1122      does not process its return value since I don't know how to
1123      report an error upwards.
1124    
1125    - It would probably be good to have a call to WSACleanup() when
1126      the library is unloaded (if there is such a possibility).
1127      Otherwise I think Windows will take care of this automatically
1128      when the process finishes.
1129    
1130    - I used ioctlsocket() as a replacement for ioctl() but I have
1131      no idea if that is actually the proper replacement on Windows.
1132    
1133    - All these issues are marked in the code by "FIXME" comments.
1134    
1135    We use sml/nj extensively in our products and are quite happy
1136    with it.  I hope this contribution will help you.
1137    
1138    Keep up the good work!
1139    
1140    David
1141    
1142    ----------------------------------------------------------------------
1143    Name: Matthias Blume (blume (at) tti - c (dot) org)
1144    Date: 2004/05/11 14:20:00 CDT
1145    Tag: blume-20040511-installml
1146    Description:
1147    
1148    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
1149    the patch.)
1150    
1151    ----------------------------------------------------------------------
1152    Name: Matthias Blume (blume (at) tti - c (dot) org)
1153    Date: 2004/05/11 14:05:00 CDT
1154    Tag: blume-20040511-nlffi-netbsd
1155    Description:
1156    
1157    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
1158    the patch.)
1159    
1160    ----------------------------------------------------------------------
1161    Name: Matthias Blume (blume (at) tti - c (dot) org)
1162    Date: 2004/05/11 12:05:00 CDT
1163    Tag: blume-20040511-exports
1164    Description:
1165    
1166    As per request by Adam Chlipala <adam@hcoop.net>, extended various
1167    export lists in compiler-related .cm-files.
1168    
1169    ----------------------------------------------------------------------
1170    Name: Matthias Blume (blume (at) tti - c (dot) org)
1171    Date: 2004/05/11 11:35:00 CDT
1172    Tag: blume-20040511-allsource
1173    Description:
1174    
1175    The installer now honors the "src-smlnj" target again, although its meaning
1176    has changed from "all sources required for the compiler" to "all sources
1177    the installer knows about".  In other words, if you enable "src-smlnj"
1178    in the "targets" file, then the installer will pull in sources for
1179    everything.  (Notice that this refers to source code only.  Compiled
1180    code is still only installed for modules that were requested explicitly
1181    or which are required for other modules that were requested explicitly.)
1182    
1183    ----------------------------------------------------------------------
1184    Name: Matthias Blume (blume (at) tti - c (dot) org)
1185    Date: 2004/04/23 17:40:00 CDT
1186    Tag: blume-20040423-ieee-scan
1187    Description:
1188    
1189    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
1190    in the exponent calculation we get INF or ZERO (depending on the mantissa
1191    and the sign of the exponent).
1192    
1193    ----------------------------------------------------------------------
1194    Name: Matthias Blume (blume (at) tti - c (dot) org)
1195    Date: 2004/04/23 10:40:00 CDT
1196    Tag: blume-20040423-ml-build
1197    Description:
1198    
1199    The ml-build script now terminates with a non-0 status when something
1200    goes wrong.
1201    
1202    ----------------------------------------------------------------------
1203    Name: Matthias Blume (blume (at) tti - c (dot) org)
1204    Date: 2004/04/22 16:35:00 CDT
1205    Tag: blume-20040422-Option
1206    Description:
1207    
1208    Made exception Option to be the same as exception Option.Option
1209    (as it should be).
1210    
1211    ----------------------------------------------------------------------
1212    Name: Allen Leung (leunga (at) reservoir (dot) com)
1213    Date: 2004/03/19 14:40:00 EST
1214    Tag: leunga-20040319-cygwin-nlffi
1215    Description:
1216    
1217    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
1218    of SML/NJ.  The problem is that
1219    
1220       lib = dlopen(NULL, ...)
1221       f   = dlsym(lib, "malloc");
1222    
1223    does not work on Windows unless we explicitly export symbols
1224    such as 'malloc' during linking.  We fixed this by explicitly
1225    exporting the required symbols with the magic gcc incantation:
1226    
1227        -Wl,--export-all cygwin.def
1228    
1229    where cygwin.def is a file containing all the symbols that
1230    we wish to export.
1231    
1232    I suspect this is a Windows problem and we'll have to
1233    do the same (somehow with windows compilers) when
1234    we build the native win32 version with the system
1235    calls LoadLibrary/GetProcAddress.
1236    
1237    ----------------------------------------------------------------------
1238    Name: Matthias Blume (blume (at) tti - c (dot) org)
1239    Date: 2004/03/04 16:35:00 CST
1240    Tag: blume-20040304-intinf-fmt
1241    Description:
1242    
1243    Fixed problem with IntInf.fmt (sign would show up on the right instead
1244    of on the left for BIN, OCT, and HEX).
1245    
1246    ----------------------------------------------------------------------
1247    Name: Matthias Blume (blume (at) tti - c (dot) org)
1248    Date: 2004/03/04 11:25:00 CST
1249    Tag: blume-20040304-symlinks
1250    Description:
1251    
1252    Fixed problem with installer script (unix only) where bin/ml-yacc and
1253    friends pointed (via symlinks) to absolute locations instead of just
1254    .run-sml.  This was reported by Vesa A Norrman.
1255    
1256    ----------------------------------------------------------------------
1257    Name: Matthias Blume (blume (at) tti - c (dot) org)
1258    Date: 2004/02/13 14:50:00 CST
1259    Tag: Release_110_45
1260    Description:
1261    
1262    New working version (110.45). New bootfiles.
1263    
1264    ----------------------------------------------------------------------
1265    Name: Matthias Blume (blume (at) tti - c (dot) org)
1266    Date: 2004/01/26 15:15:15 CST
1267    Tag: blume-20040126-toplevel
1268    Description:
1269    
1270    Improved handling of exceptions at the interactive toplevel.
1271    
1272    ----------------------------------------------------------------------
1273    Name: Matthias Blume (blume (at) tti - c (dot) org)
1274    Date: 2004/01/26 11:25:00
1275    Tag: blume-20040126-app
1276    Description:
1277    
1278    Type of top-level "app" corrected.
1279    Added code for setting vp_limitPtrMask to Win32-specific runtime.
1280    
1281    ----------------------------------------------------------------------
1282    Name: Matthias Blume (blume (at) tti - c (dot) org)
1283    Date: 2003/11/18 17:10 CST
1284    Tag: blume-20031118-basis-fiddle
1285    Description:
1286    
1287    - changed Timer interface to what might become the spec
1288    - POSIX_FLAGS -> BIT_FLAGS according to spec
1289    - some other minor discrepancies wrt. spec eliminated
1290    
1291    ----------------------------------------------------------------------
1292    Name: Matthias Blume (blume (at) tti - c (dot) org)
1293    Date: 2003/11/06 12:00:00 CST
1294    Tag: Release_110_44
1295    Description:
1296    
1297    New working version (110.44). New bootfiles.
1298    
1299    ----------------------------------------------------------------------
1300    Name: Matthias Blume (blume (at) tti - c (dot) org)
1301    Date: 2003/11/04 11:50:00 CST
1302    Tag: blume-20031104-move-libraries
1303    Description:
1304    
1305    Eliminated the "dont_move_libraries" directive in config/targets.
1306    (The mechanism was broken and could not be fixed easily.  Moreover,
1307    there does not seem to be any reason not to move all libraries into
1308    lib during installation.  I originally implemented this directive as a
1309    backward-compatibility feature when I first introduced the new CM.
1310    Now that things have been stable for a long time and going back to the
1311    old CM is not an option, there is no reason to keep it around.)
1312    
1313    ----------------------------------------------------------------------
1314    Name: Matthias Blume (blume (at) tti - c (dot) org)
1315    Date: 2003/11/03 16:00:00 CST
1316    Tag: blume-20031103-installdir
1317    Description:
1318    
1319    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
1320    Richards for pointing out the problem and providing the solution.)
1321    
1322    ----------------------------------------------------------------------
1323    Name: Matthias Blume (blume (at) tti - c (dot) org)
1324    Date: 2003/10/01 17:05:00 CDT
1325    Tag: blume-20031001-lal-mlrisc
1326    Description:
1327    
1328    MLRISC bug fix from Lal.
1329    
1330    ----------------------------------------------------------------------
1331    Name: Matthias Blume (blume (at) tti - c (dot) org)
1332    Date: 2003/09/30 16:10:00 CDT
1333    Tag: blume-20030930-primio-bat
1334    Description:
1335    
1336    1. Added openVector, nullRd, and nullWr to PRIM_IO.
1337    2. Improved .bat files (for Win32 port) to make things work under Win95.
1338       (thanks to Aaron S. Hawley for this one)
1339    
1340    ----------------------------------------------------------------------
1341    Name: Matthias Blume (blume (at) tti - c (dot) org)
1342    Date: 2003/09/26 16:05:00 CDT
1343    Tag: blume-20030926-wrappriv
1344    Description:
1345    
1346    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
1347    
1348    ----------------------------------------------------------------------
1349    Name: Matthias Blume (blume (at) tti - c (dot) org)
1350    Date: 2003/09/26 15:00:00 CDT
1351    Tag: blume-20030926-110_43_3
1352    Description:
1353    
1354    - additional cleanup
1355    - version number bump, NEW BOOTFILES
1356    
1357    ----------------------------------------------------------------------
1358    Name: Matthias Blume (blume (at) tti - c (dot) org)
1359    Date: 2003/09/26 12:00:00 CDT
1360    Tag: blume-20030926-ppautoload
1361    Description:
1362    
1363    I modified the read-eval-print loop so that the autoloader gets
1364    invoked whenever the prettyprinter tries to look up a symbol that
1365    is not currently defined in the toplevel environment but which
1366    appears in CM's autoload registry.  As a result, we see far fewer of
1367    those ?.Foo.Bar.xxx names in the prettyprinter's output.
1368    
1369    In addition to this I tried to clean up some pieces of the Basis
1370    implementation (e.g., Socket, Word8Array) in order to prevent other
1371    instances of these ?.Foo.Bar.xxx names from being printed.
1372    
1373    The mechanism that picks names for types still needs some work, though.
1374    (Right now it seems that if there is a type A.t which is defined to
1375    be B.u, but B is unavailable at toplevel, then A.t gets printed as
1376    "?.B.u" although the perhaps more sensible solution would be to use
1377    "A.t" in this case.  In other words, the prettyprinter should follow
1378    a chain of DEFtycs not farther than there are corresponding toplevel
1379    names in the current environment.)
1380    
1381    ----------------------------------------------------------------------
1382    Name: Matthias Blume (blume (at) tti - c (dot) org)
1383    Date: 2003/09/24 16:31:00 CDT
1384    Tag: blume-20030924-installer
1385    Description:
1386    
1387    Another installer tweak:  All the ML code for the installer is now
1388    compiled during CMB.make and put into a little library called
1389    $smlnj/installer.cm.  The installation then simply invokes
1390    
1391       sml -m $smlnj/installer.cm
1392    
1393    and everything happens automagically.
1394    
1395    Win32:  ML code senses value of environment variable SMLNJ_HOME.
1396    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
1397            and BINDIR.
1398    
1399    The new scheme guarantees that the ML code responsible for the installation
1400    is in sync with the APIs of the main system.  Also, the installer is
1401    somewhat faster because the installer script is precompiled.
1402    
1403    ----------------------------------------------------------------------
1404    Name: Matthias Blume (blume (at) tti - c (dot) org)
1405    Date: 2003/09/24 15:35:00 CDT
1406    Tag: blume-20030924-synsock
1407    Description:
1408    
1409    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
1410    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
1411    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
1412    implementations of non-blocking operations from CML's Socket
1413    structure.
1414    
1415    ----------------------------------------------------------------------
1416    Name: Matthias Blume (blume (at) tti - c (dot) org)
1417    Date: 2003/09/24 15:10:05 CDT
1418    Tag: blume-20030924-sockets
1419    Description:
1420    
1421    1. Fixed SOCKET API and implementation to match Basis spec.
1422       This required changing the internal representation of sockets to one
1423       that remembers (for each socket file descriptor) whether it is currently
1424       blocking or non-blocking.  This state is maintained lazily (i.e., a system
1425       call is made only if the state actually needs to change).
1426    
1427    2. OS-specific details of sockets were moved into separate files, thus
1428       making it possible to unify the bulk of the socket implementations
1429       between Unix and Win32.
1430    
1431    3. CML's socket API changed accordingly.
1432       (Note that we need to remove non-blocking functions from this API
1433       since they are redundant in the case of CML!)
1434    
1435    4. CML's socket implementation now makes use of non-blocking functions
1436       provided by Basis, thus removing all OS-dependent code from this part
1437       of CML.
1438    
1439    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
1440    
1441    ----------------------------------------------------------------------
1442    Name: Matthias Blume (blume (at) tti - c (dot) org)
1443    Date: 2003/09/22 12:10:00 CDT
1444    Tag: blume-20030922-110_43_2
1445    Description:
1446    
1447    Made a new interim version and bootfiles for developer's bootstrapping
1448    convenience.
1449    
1450       110.43.2 -- NEW BOOTFILES
1451    
1452    ----------------------------------------------------------------------
1453    Name: Matthias Blume (blume (at) tti - c (dot) org)
1454    Date: 2003/09/19 15:55:00 CDT
1455    Tag: blume-20030919-cmdir
1456    Description:
1457    
1458    1. new-install.sh -> install.sh
1459    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
1460    3. tweaked installer so that another name instead of .cm can be chosen
1461       at install time (by setting the CM_DIR_ARC environment variable
1462       during installation); once installation is complete, the name is
1463       fixed
1464    
1465    ----------------------------------------------------------------------
1466    Name: Matthias Blume (blume (at) tti - c (dot) org)
1467    Date: 2003/09/18 16:00:00 CDT
1468    Tag: blume-20030918-110_43_1
1469    Description:
1470    
1471    Made a new interim version and bootfiles for developer's bootstrapping
1472    convenience.
1473    
1474       110.43.1 -- NEW BOOTFILES
1475    
1476    ----------------------------------------------------------------------
1477    Name: Matthias Blume (blume (at) tti - c (dot) org)
1478    Date: 2003/09/18 15:20:00 CDT
1479    Tag: blume-20030918-misc
1480    Description:
1481    
1482    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
1483       this seems to be controversial at the moment) and used those in
1484       Posix.ProcEnv.times.
1485    
1486    2. Added Time.{from,to}Nanoseconds to Time.
1487    
1488    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
1489       For example, fromLargeInt never needs to look at more than 3 "big
1490       digits" to get its 53 bits of precision.
1491    
1492    ----------------------------------------------------------------------
1493    Name: Matthias Blume (blume (at) tti - c (dot) org)
1494    Date: 2003/09/17 16:30:00 CDT
1495    Tag: blume-20030917-real32-slices
1496    Description:
1497    
1498    Added an entry to the primitive environment
1499    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
1500    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
1501    
1502    Removed some of the "magic" constants in real64.sml and replaced them
1503    with code that generates these values from their corresponding
1504    integer counterparts.
1505    
1506    Made all(?) the slice-related changes to the Basis and made everything
1507    compile again...
1508    
1509    ----------------------------------------------------------------------
1510    Name: Matthias Blume (blume (at) tti - c (dot) org)
1511    Date: 2003/09/15 17:45:00 CDT
1512    Tag: blume-20030915-rbase
1513    Description:
1514    
1515    Fixed bug in Real.fromLargeInt.
1516    
1517    ----------------------------------------------------------------------
1518    Name: Matthias Blume (blume (at) tti - c (dot) org)
1519    Date: 2003/09/13 18:11:00 CDT
1520    Tag: blume-20030913-libinstall
1521    Description:
1522    
1523    Minor bugfix in config/libinstall (set anchor with path to
1524    standalone tool after installing it, otherwise libraries that
1525    need ml-lex or ml-yacc won't compile the first time the installer
1526    runs).
1527    
1528    ----------------------------------------------------------------------
1529    Name: Matthias Blume (blume (at) tti - c (dot) org)
1530    Date: 2003/09/12 11:45:00 CDT
1531    Tag: blume-20030912-various
1532    Description:
1533    
1534     - fixed bug in Real.toLargeInt
1535     - fixed bug in Posix.ProcEnv.times
1536     - changed inputLine functions to return an option
1537     - minor installer improvements / bugfixes
1538     - changed default @SMLalloc parameter for x86/celeron to 64k
1539    
1540    ----------------------------------------------------------------------
1541    Name: Matthias Blume (blume (at) tti - c (dot) org)
1542    Date: 2003/09/09 22:00:00 CDT
1543    Tag: Release_110_43
1544    Description:
1545    
1546        New working release 110.43.  New bootfiles.
1547    
1548    ----------------------------------------------------------------------
1549    Name: Matthias Blume (blume (at) tti - c (dot) org)
1550    Date: 2003/09/09 19:20:00 CDT
1551    Tag: blume-20030909-installer
1552    Description:
1553    
1554    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
1555    Modified config/install.bat to take advantage of it.  Also modified
1556    config/install.sh (and called it config/new-install.sh) to take advantage
1557    of it on Unix systems.  (The SML code is (supposed to be) platform-
1558    independent.)
1559    
1560    The installer can now install everything under Win32
1561    as well as under *nix as long as it compiles.
1562    
1563    Other changes:
1564    
1565      - made CML compile again under Win32
1566      - made eXene compile under Win32 (by providing a fake structure UnixSock
1567        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
1568      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
1569        same as type int;  under Win32 it isn't
1570      - fixed some slice-related problems in the win32-specific parts of CML
1571      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
1572        (under Win32, the volume name is case-insensitive, and the
1573        OS.Path code compares volume names for equality)
1574    
1575    ----------------------------------------------------------------------
1576    Name: Matthias Blume (blume (at) tti - c (dot) org)
1577    Date: 2003/09/08 11:55:00 CDT
1578    Tag: blume-20030908-fullpath
1579    Description:
1580    
1581    Made Win32 version of OS.FileSys.fullPath return current directory
1582    when given an empty string.  This is what the spec says, and incidentally,
1583    CM depends on it.  (CM otherwise goes into an infinite loop in certain
1584    cases when presented with the name of a non-existing .cm file.)
1585    
1586    ----------------------------------------------------------------------
1587    Name: Matthias Blume (blume (at) tti - c (dot) org)
1588    Date: 2003/09/04 16:30:00 CDT
1589    Tag: blume-20030905-slices-etc
1590    Description:
1591    
1592      1. Changed interface to vectors and arrays in Basis to match
1593         (draft) Basis spec.
1594      2. Added signatures and implementations of slices according to
1595         Basis spec.
1596      3. Edited source code throughout the system to make it compile again
1597         under 1. and 2.  (In some cases code had to be added to have it
1598         match the new signatures.)
1599      4. MLRISC should be backward-compatible: the copies of the originals
1600         of files that needed to change under 3. were retained, the .cm files
1601         check the compiler version number and use old versions when
1602         appropriate.
1603      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
1604         dirstream -> string option (in accordance with Basis spec).
1605      6. When generating code that counts lines, ml-lex used function
1606         CharVector.foldli, taking advantage of its old interface.
1607         This has been replaced with the corresponding code from
1608         CharVectorSlice.  (html-lex must be re-lexed!)
1609      7. BitArray in smlnj-lib/Util has been extended/modified to match the
1610         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
1611      8. Removed temporary additions (fromInternal, toInternal) from the
1612         (now obsolete) IntInf in smlnj-lib/Util.
1613      9. Cleaned up structure Byte.
1614     10. Added localOffset, scan, and fromString to Date (according to spec).
1615         Cleaned/corrected implementation of Date.
1616         (Still need to check for correctness; implement better canonicalizeDate.)
1617     11. Added "scan" to signature IEEE_REAL.
1618     12. Some improvements to IntInf [in particular: efficiency-hack for
1619         mod and rem when second operand is 2 (for parity checks).]
1620     13. Changed representation of type Time.time, using a single IntInf.int
1621         value counting microseconds.  This considerably simplified the
1622         implementation of structure Time.  We now support negative time
1623         values; scan and fromString handle signs.
1624     14. Functor PrimIO now takes two additional arguments (VectorSlice and
1625         ArraySlice).
1626    
1627    ----------------------------------------------------------------------
1628    Name: Matthias Blume (blume (at) tti - c (dot) org)
1629    Date: 2003/08/28 17:00:00 CDT
1630    Tag: blume-20030828-intinf
1631    Description:
1632    
1633    This is a major update which comes with a version number bump
1634    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
1635    and an implementation of IntInf in the Basis.
1636    
1637    There are a fairly large number of related changes and updates throughout
1638    the system:
1639    
1640    Basis:
1641            - Implemented IntInf.
1642            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
1643            - Added some missing Real64 operations, most notably Real.toLargeInt.
1644            - Added FixedInt as a synonym for Int32.
1645    
1646    compiler:
1647            * Added support for a built-in intinf type.
1648              - literals
1649              - pattern matching
1650              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
1651              - overloading on literals and operations
1652    
1653            This required adding a primitive type intinf, some additional
1654            primops, and implementations for several non-trivial intinf
1655            operations in Core.  (The intinf type is completely abstract
1656            to the compiler; all operations get delegated back to the Core.)
1657    
1658            * Intinf equality is handled by polyequal.  However, the compiler
1659            does not print its usual warning in this case (since polyequal
1660            is the right thing to do there).
1661    
1662            * Improved the organization of structure InlineT.
1663    
1664            * A word about conversion primops:
1665            If conversions involving intinf do not cancel out during
1666            CPS contract, then the compiler must insert calls to Core functions.
1667            Since all core access must be resolved already during the FLINT
1668            translate phase, it would be too late a the time of CPS contract
1669            to add new Core calls.  For this reason, conversion primops
1670            for intinf carry two arguments:  1. the numeric argument that
1671            they are supposed to convert, and 2. the Core function that
1672            can help with this conversion if necessary.  If CPS contract
1673            eliminates a primop, then the associated Core function becomes
1674            dead and goes away.  Intinf conversion primops that do not get
1675            eliminated by CPS contract get rewritten into calls of their
1676            core functions by a separate, new phase.
1677    
1678    interactive system:
1679            - Control.Print.intinfDepth controls max length of intinf constants
1680            being printed. (Analogous to Control.Print.stringDepth.)
1681            - Cleanup in printutil and pputil: got rid of unused stuff and
1682            duplicates; replaced some of the code with code that makes better
1683            use of library functionality.
1684    
1685    CM:
1686            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
1687            are no longer silent.
1688    
1689    CKIT:
1690            Fixed mismatched uses of Int32 and LargeInt.  I always decided
1691            in favor of LargeInt -- which is now the same as IntInf.
1692            CKIT-knowledgable people should check whether this is what's
1693            intended and otherwise change things back to using Int32 or
1694            FixedInt.
1695    
1696    Throughout the code:
1697            Started using IntInf.int literals and built-in operations
1698            (e.g., comparison with 0) where this seems appropriate.
1699    
1700    
1701    ----------------------------------------------------------------------
1702    Name: Dave MacQueen (dbm@cs.uchicago.edu)
1703    Date: 2003/08/13 11:36:00 CDT
1704    Tag: dbm-20030813-mcz-merge1
1705    Description:
1706    
1707    Merging changes from the mcz-branch development branch into trunk.
1708    These changes involve replacement of the emulated old prettyprinter
1709    interface with direct use of the SML/NJ Lib PP library, and fixing
1710    of a couple of bugs (895, 1186) relating to error messages.  A new
1711    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
1712    has been added.
1713    
1714    ----------------------------------------------------------------------
1715    Name: Matthias Blume (blume (at) tti - c (dot) org)
1716    Date: 2003/08/11 15:45:00 CDT
1717    Tag: blume-20030811-windows
1718    Description:
1719    
1720    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
1721    
1722        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
1723    
1724    This patch restores SML/NJ's ability to run under win32.  There are a
1725    number of changes, including fixes for several bugs that had gone
1726    unnoticed until now:
1727    
1728      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
1729        trying to run the win32 version from within cygwin.)
1730    
1731      - There are a number of simple .bat scripts that substitute for their
1732        corresponding Unix shell-scripts.  (See below.)
1733    
1734      - The internals of ml-build have been modified slightly.  The main
1735        difference is that instead of calling ".link-sml" (or link-sml.bat)
1736        using OS.Process.system, the ML process delegates this task back
1737        to the script.  Otherwise problems arise in mixed environments such
1738        as Cygwin where scripts look and work like Unix scripts, but
1739        where OS.Process.system cannot run them.
1740    
1741      - In CM, the srcpath pickler used native pathname syntax -- which
1742        is incorrect in the case of cross-compilation.  The new pickle format
1743        is independent of platform-specific naming conventions.
1744    
1745      - Path configuration files (such as lib/pathconfig) can now choose
1746        between native and standard syntax.  Placing a line of the form
1747    
1748            standard!
1749    
1750        into the file causes all subsequent paths to be interpreted using
1751        CM standard pathname syntax (= Unix conventions); a line
1752    
1753            native!
1754    
1755        switches back to native style.  This was needed so that
1756        path config files can be written portably, see src/system/pathconfig.
1757    
1758      - Runtime system:
1759    
1760          - win32-filesys.c:  get_file_time and set_file_time now
1761            access modification time, not creation time.
1762    
1763          - I/O code made aware of new array representation.
1764    
1765          - Bug fixes in X86.prim.masm.
1766    
1767       - src/system/makeml made aware of win32. (For use under cygwin
1768            and other Unix-environments for windows.)
1769    
1770       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
1771         which caused BinIO.inputAll to fail consistently.
1772    
1773    .bat scripts:
1774    
1775       Windows .bat scripts assume that SMLNJ_HOME is defined.
1776    
1777       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
1778         applications (sml, ml-yacc, ml-lex).
1779       - ml-build.bat: analogous to ml-build.
1780       - config\install.bat:  Analogous to config/install.sh.  This requires
1781         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
1782         (nmake etc. must be on the path, and vcvars32 must have been run.)
1783         Moreover, sources for ml-lex and ml-yacc need to exist under src,
1784         and the bootfile hierarchy must have been unpacked under
1785         sml.boot.x86-win32.
1786         The script is very primitive and does a poor job at error checking.
1787         It only installs the base system, ml-lex, and ml-yacc.  No other
1788         libraries are being installed (i.e., you get only those that
1789         are part of the compiler.)
1790       - link-sml.bat:  analogous to .link-sml, but not currently used
1791    
1792    Unrelated bug fixes:
1793    
1794      - ml-nlffigen now exports structures ST_* corresponding to incomplete
1795        types.
1796      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
1797        otherwise.)
1798    
1799    ----------------------------------------------------------------------
1800    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
1801    Date: 2003/06/17
1802    Tag: macqueen-20030617-bug895
1803    Description:
1804    
1805    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
1806    Tag will be used for new development branch (mcz-branch) for
1807    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
1808    
1809    ----------------------------------------------------------------------
1810    Name: Matthias Blume (blume (at) tti - c (dot) org)
1811    Date: 2003/05/27 16:55:00 CDT
1812    Tag: blume-20030527-polyeq
1813    Description:
1814    
1815    Tried to eliminated most cases of polymorphic equality.
1816    
1817    ----------------------------------------------------------------------
1818    Name: Matthias Blume (blume (at) tti - c (dot) org)
1819    Date: 2003/05/21 17:45:00 CDT
1820    Tag: blume-20030517-complete
1821    Description:
1822    
1823    Two changes:
1824    
1825      1. Added a flag for controlling whether non-exhaustive bindings will
1826         be treated as errors (default is false).
1827      2. Cleaned up the *entire* source tree so that CMB.make goes through
1828         without a single non-exhaustive match- or bind warning.
1829    
1830    ----------------------------------------------------------------------
1831    Name: Matthias Blume (blume (at) tti - c (dot) org)
1832    Date: 2003/05/17 10:20:00 CDT
1833    Tag: blume-20030517-absyn
1834    Description:
1835    
1836    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
1837    
1838       This mainly affects the quality of error messages.  However, some
1839       of the code is now more straightforward than before. (Treatment of
1840       the above four constructs in translate.sml is much simpler than
1841       the "macro-expansion" that was going on before.  Plus, the mach-
1842       compiler no longer gets invoked just to be able to compile an
1843       if-expression.)
1844    
1845    2. The ErrorMsg.Error exception is now caught and absorbed by the
1846       interactive loop.
1847    
1848    ----------------------------------------------------------------------
1849    Name: Allen Leung
1850    Date: 2003/05/16 13:05:00 CDT
1851    Tag: leunga-20030516-cygwin-runtime
1852    Description:
1853    
1854        Ported the runtime system to cygwin, which uses the unix
1855    x86-unix bin files.  Missing/buggy features:
1856    
1857       o getnetbyname, getnetbyaddr: these functions seem to be missing in
1858         the Cygwin library.
1859       o Ctrl-C handling may be flaky.
1860       o Windows system calls and Windows I/O are not supported.
1861    
1862       A new set of binfiles is located at:
1863    
1864         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
1865    
1866       This is only needed for bootstrapping the cygwin version of smlnj.
1867       Other x86 versions can use the existing binfiles.
1868    
1869    ----------------------------------------------------------------------
1870    Name: Matthias Blume
1871    Date: 2003/04/08 15:42:00 CDT
1872    Tag: blume-20030408-listpair
1873    Description:
1874    
1875    1. Added a target 'mlrisc' to installer.
1876    
1877    2. Added missing elements to structure ListPair.
1878    
1879    ----------------------------------------------------------------------
1880    Name: Allen Leung
1881    Date: 2003/01/07 10:40:00 EST
1882    Tag: leunga-20030107-int-rem
1883    Description:
1884    
1885    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
1886    The arguments to the SUBL instruction were swapped.
1887    
1888    ----------------------------------------------------------------------
1889    Name: Matthias Blume
1890    Date: 2002/12/12 16:25:00 EST
1891    Tag: blume-20021212-risc-ra
1892    Description:
1893    
1894    Fixed a serious bug in the rewrite code for FP spilling/reloading that
1895    sent the RA into an infinite loop when floating point registers get
1896    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
1897    110.37 and 110.38.)
1898    There was another set of potential problems related to the handling of
1899    MLRISC annotations (but those did not yet cause real problems, apparently).
1900    
1901    ----------------------------------------------------------------------
1902    Name: Matthias Blume
1903    Date: 2002/12/06 22:40:00 EST
1904    Tag: blume-20021206-cm-fileid
1905    Description:
1906    
1907    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
1908    This fixes the problem of CM getting confused by files that suddenly
1909    change their identity (e.g., by getting unlinked and recreated by some
1910    text editor such as vi).  There might be a better/cheaper/cleaner way
1911    of doing this, but for now this will have to do.
1912    
1913    ----------------------------------------------------------------------
1914    Name: Matthias Blume
1915    Date: 2002/10/28 09:50:00 EST
1916    Tag: blume-20021028-typecheck
1917    Description:
1918    
1919    Exported structure Typecheck from $smlnj/viscomp/core.cm.
1920    
1921    ----------------------------------------------------------------------
1922    Name: Matthias Blume
1923    Date: 2002/10/17 09:10:00 EDT
1924    Tag: Release_110_42
1925    Description:
1926    
1927    In good old tradition, there has been a slight hiccup so that we have
1928    to patch 110.42 after the fact.   The old release tag has been replaced
1929    (see below).
1930    
1931    The change solves a problem with two competing approaches the
1932    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
1933    each other's way.
1934    
1935    This change only affects the runtime system code and the installer script.
1936    (No new bootfiles.)
1937    
1938    ----------------------------------------------------------------------
1939    Name: Matthias Blume
1940    Date: 2002/10/16 12:00:00 EDT
1941    Tag: Release_110_42_removed
1942    Description:
1943    
1944    New working release.  New bootfiles.
1945    
1946    ----------------------------------------------------------------------
1947    Name: Matthias Blume
1948    Date: 2002/10/10 13:10:00 EDT
1949    Tag: blume-20021010-ppc-divs
1950    Description:
1951    
1952    The mltree operator DIVS must be implemented with an overflow check on
1953    the PPC because the hardware indicates divide-by-zero using "overflow" as
1954    well.
1955    
1956    ----------------------------------------------------------------------
1957    Name: Matthias Blume
1958    Date: 2002/07/23 11:45:00
1959    Tag: blume-20020723-smlnj-home
1960    Description:
1961    
1962    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
1963    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
1964    CM_PATHCONFIG is also set), the path configuration file is assumed
1965    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
1966    the entire tree to some other place and everything will "just work".
1967    
1968    (Companion commands such as ml-build and ml-makedepend also sense this
1969    variable.)
1970    
1971    ----------------------------------------------------------------------
1972    Name: Matthias Blume
1973    Date: 2002/07/12 21:19:00 EDT
1974    Tag: blume-20020712-liveness
1975    Description:
1976    
1977    Exported two useful "step" functions from liveness module (MLRISC).
1978    
1979    ----------------------------------------------------------------------
1980    Name: Matthias Blume
1981    Date: 2002/07/05 16:00 EDT
1982    Tag: Release_110_41
1983    Description:
1984    
1985    New working release.  New bootfiles.
1986    
1987    ----------------------------------------------------------------------
1988    Name: Matthias Blume
1989    Date: 2002/07/05 10:25:00 EDT
1990    Tag: blume-20020705-btimp
1991    Description:
1992    
1993    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
1994    other clients can set up backtracing support.
1995    
1996    ----------------------------------------------------------------------
1997    Name: Matthias Blume
1998    Date: 2002/06/25 17:23:00 EDT
1999    Tag: blume-20020625-fpmax
2000    Description:
2001    
2002    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
2003    case.  (The sense of the isNaN test was reversed -- which made min and
2004    max always return their first argument.)
2005    
2006    ----------------------------------------------------------------------
2007    Name: Matthias Blume
2008    Date: 2002/06/11
2009    Tag: blume-20020611-unixpath
2010    Description:
2011    
2012    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
2013    
2014    ----------------------------------------------------------------------
2015    Name: Matthias Blume
2016    Date: 2002/06/10 16:35:00 EDT
2017    Tag: blume-20020610-ieeereal
2018    Description:
2019    
2020    I back-ported my implementation of IEEEReal.fromString from the
2021    idlbasis-devel branch so that we can test it.
2022    
2023    Another small change is that ppDec tries to give more information
2024    than just "<sig>" in the case of functors.  However, this code is
2025    broken in some mysterious way if the functor's body's signature
2026    has not been declared by ascription but gets inferred from the
2027    implementation.  This needs fixing...
2028    
2029    ----------------------------------------------------------------------
2030    Name: Matthias Blume
2031    Date: 2002/05/31
2032    Tag: blume-20020531-btrace-mode
2033    Description:
2034    
2035    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
2036    the wayside when I switched over to using Controls everywhere.)
2037    
2038    ----------------------------------------------------------------------
2039    Name: Lal George
2040    Date: 2002/05/23 12:21:40 EDT
2041    Tag: george-20020523-visual-labels
2042    Description:
2043    
2044    Labels are now displayed in the graphical output to make
2045    the fall-through and target blocks obvious.
2046    
2047    ----------------------------------------------------------------------
2048    Name: Matthias Blume
2049    Date: 2002/05/22 11:03:00 EDT
2050    Tag: blume-20020522-shrink
2051    Description:
2052    
2053    John tweaked yesterday's fix for 1131 to handle an out-of-memory
2054    situation that comes up when allocating huge arrays.
2055    
2056    ----------------------------------------------------------------------
2057    Name: Matthias Blume
2058    Date: 2002/05/21 16:00:00 EDT
2059    Tag: Release_110_40
2060    Description:
2061    
2062    New working release (110.40).  New bootfiles.
2063    
2064    [Also: John Reppy fixed GC bug 1131.]
2065    
2066    ----------------------------------------------------------------------
2067    Name: Matthias Blume
2068    Date: 2002/05/21 12:35:00 EDT
2069    Tag: blume-20020521-cmdoc
2070    Description:
2071    
2072    CM documentation update.
2073    
2074    ----------------------------------------------------------------------
2075    Name: Matthias Blume
2076    Date: 2002/05/21 10:55:00 EDT
2077    Tag: blume-20020521-misc
2078    Description:
2079    
2080    - John tweaked runtime to be silent on heap export (except when
2081      GC messages are on).
2082    - I added a few more things (cross-compiling versions of CMB) to
2083      config/preloads (as suggestions).
2084    
2085    ----------------------------------------------------------------------
2086    Name: Matthias Blume
2087    Date: 2002/05/20 22:25:00 EDT
2088    Tag: blume-20020520-controls
2089    Description:
2090    
2091    - Added ControlUtil structure to control-lib.cm.
2092    - Use it throughout.
2093    - Used Controls facility to define MLRISC controls (as opposed to
2094      registering MLRISC control ref cells with Controls after the fact)
2095    - Fixed messed-up controls priorities.
2096    
2097    * Removed again all the stuff from config/preloads that one wouldn't
2098      be able to preload at the time the initial heap image is built.
2099      (Many libraries, e.g., CML, do not exist yet at this time.  The
2100       only libraries that can be preloaded via config/preloads are those
2101       that come bundled with the bootfiles.)
2102    
2103    ----------------------------------------------------------------------
2104    Name: Matthias Blume
2105    Date: 2002/05/20 10:59:00 EDT
2106    Tag: blume-20020520-preloads
2107    Description:
2108    
2109    Added a lot of commented-out suggestions for things to be included
2110    in config/preloads.
2111    
2112    ----------------------------------------------------------------------
2113    Name: Allen Leung
2114    Date: 2002/05/18 14:20:00 EDT
2115    Tag: leunga-20020518-mdl
2116    Description:
2117    
2118    o Made the mdl tool stuff compile and run again.
2119    o I've disabled all the stuff that depends on RTL specifications; they
2120      are all badly broken anyway.
2121    
2122    ----------------------------------------------------------------------
2123    Name: Matthias Blume
2124    Date: 2002/05/17 16:49:00 EDT
2125    Tag: blume-20020517-controls
2126    Description:
2127    
2128    0. John Reppy made several modifications to the SML/NJ library.
2129       In particular, there is a shiny new controls-lib.cm.
2130    
2131    1. Pushed new controls interface through compiler so that everything
2132       compiles again.
2133    
2134    2. Added FormatComb and FORMAT_COMB to the CML version of the
2135       SML/NJ library (so that CML compiles again).
2136    
2137    3. Modified init scripts because XXX_DEFAULT environment variables
2138       are no longer with us.  (Boot-time initialization is now done
2139       using the same environment variables that are also used for
2140       startup-time initialization of controls.)
2141    
2142    ----------------------------------------------------------------------
2143    Name: Lal George
2144    Date: 2002/05/15 09:20:10 EDT
2145    Tag: george-20020515-pseudo-op-decls
2146    Description:
2147    
2148            All pseudo-ops emitted before the first segment declaration
2149    such as TEXT, DATA, and BSS directives are assumed to be global
2150    declarations and are emitted first in the assembly file. This is
2151    useful in a number of situations where one has pseudo-ops that are not
2152    specific to any segment, and also works around the constraint that one
2153    cannot have client pseudo-ops in the TEXT segment.
2154    
2155            Because no segment is associated with these declarations it is
2156    an error to allocate any space or objects before the first segment
2157    directive and an exception will be raised. However, we cannot make
2158    this check for client pseudo-ops.
2159    
2160            These top level declarations are a field in the CFG graph_info.
2161    In theory you can continue to add to this field after the CFG has been
2162    built -- provided you know what you are doing;-)
2163    
2164    ----------------------------------------------------------------------
2165    Name: Matthias Blume
2166    Date: 2002/05/13 16:40:00 EDT
2167    Tag: blume-20020513-pp-etc
2168    Description:
2169    
2170    A few minor bugfixes:
2171    
2172      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
2173        (Bogus printouts for redefined bindings still occur.  Compiler
2174        bug should no longer occur now.  We need to redo the prettyprinter
2175        from scratch.)
2176    
2177      - CM pathname printer now also adds escape sequences for ( and )
2178    
2179      - commend and docu fixes for ml-nlffi
2180    
2181    ----------------------------------------------------------------------
2182    Name: Matthias Blume
2183    Date: 2002/05/10 16:40:00 EDT
2184    Tag: blume-20020510-erg-textio
2185    Description:
2186    
2187    Applied the following bugfix provided by Emden Gansner:
2188    
2189        Output is corrupted when outputSubstr is used rather than output.
2190    
2191        The problem occurs when a substring
2192    
2193            ss = (s, dataStart, dataLen)
2194    
2195        where dataStart > 0, fills a stream buffer with avail bytes left.
2196        avail bytes of s, starting at index dataStart, are copied into the
2197        buffer, the buffer is flushed, and then the remaining dataLen-avail
2198        bytes of ss are copied into the beginning of the buffer. Instead of
2199        starting this copy at index dataStart+avail in s, the current code
2200        starts the copy at index avail.
2201    
2202        Fix:
2203        In text-io-fn.sml, change line 695 from
2204             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
2205        to
2206             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
2207    
2208    ----------------------------------------------------------------------
2209    Name: Matthias Blume
2210    Date: 2002/04/12 13:55:00 EDT
2211    Tag: blume-20020412-assyntax
2212    Description:
2213    
2214    1. Grabbed newer assyntax.h from the XFree86 project.
2215    2. Fiddled with how to compile X86.prim.asm without warnings.
2216    3. (Very) Minor cleanup in CM.
2217    
2218    ----------------------------------------------------------------------
2219    Name: Matthias Blume
2220    Date: 2002/04/01 (no joke!) 17:07:00 EST
2221    Tag: blume-20020401-x86div
2222    Description:
2223    
2224    Added full support for div/mod/rem/quot on the x86, using the machine
2225    instruction's two results (without clumsily recomputing the remainder)
2226    directly where appropriate.
2227    
2228    Some more extensive power-of-two support was added to the x86 instruction
2229    selector (avoiding expensive divs, mods, and muls where they can be
2230    replaced with cheaper shifts and masks).  However, this sort of thing
2231    ought to be done earlier, e.g., within the CPS optimizer so that
2232    all architectures benefit from it.
2233    
2234    The compiler compiles to a fixed point, but changes might be somewhat
2235    fragile nevertheless.  Please, report any strange things that you might
2236    see wrt. div/mod/quot/rem...
2237    
2238    ----------------------------------------------------------------------
2239    Name: Matthias Blume
2240    Date: 2002/03/29 17:22:00
2241    Tag: blume-20020329-div
2242    Description:
2243    
2244    Fixed my broken div/mod logic.  Unfortunately, this means that the
2245    inline code for div/mod now has one more comparison than before.
2246    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
2247    The problem was with quotient = 0, because that alone does not tell
2248    us which way the rounding went.  One then has to look at whether
2249    remainder and divisor have the same sign...  :(
2250    
2251    Anyway, I replaced the bootfiles with fresh ones...
2252    
2253    ----------------------------------------------------------------------
2254    Name: Matthias Blume
2255    Date: 2002/03/29 14:10:00 EST
2256    Tag: blume-20020329-inlprims
2257    Description:
2258    
2259    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
2260    
2261    Primops have changed. This means that the bin/boot-file formats have
2262    changed as well.
2263    
2264    To make sure that there is no confusion, I made a new version.
2265    
2266    
2267    CHANGES:
2268    
2269    * removed REMT from mltree (remainder should never overflow).
2270    
2271    * added primops to deal with divisions of all flavors to the frontend
2272    
2273    * handled these primops all the way through so they map to their respective
2274      MLRISC support
2275    
2276    * used these primops in the implementation of Int, Int32, Word, Word32
2277    
2278    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
2279    
2280    * parameterized INLMIN, INLMAX, and INLABS by a numkind
2281    
2282    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
2283      floating point
2284    
2285    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
2286      and Real (but Real.abs maps to a separate floating-point-only primop)
2287    
2288    
2289    TODO items:
2290    
2291    * Hacked Alpha32 instruction selection, disabling the selection of REMx
2292      instructions because the machine instruction encoder cannot handle
2293      them.  (Hppa, PPC, and Sparc instruction selection did not handle
2294      REM in the first place, and REM is supported by the x86 machine coder.)
2295    
2296    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
2297      selection phase.  (The two can be streamlined because the hardware
2298      delivers both quotient and remainder at the same time anyway.)
2299    
2300    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
2301      (Currently the behavior is inconsistent both across architectures and
2302      wrt. the draft Basis spec.)
2303    
2304    * Word8 should eventually be handled natively, too.
2305    
2306    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
2307      as if there currently is no execution path that could trigger it in
2308      SML/NJ.  (The assumptions underlying functions arith and promotable do not
2309      hold for things like multiplication and division.)
2310    
2311    ----------------------------------------------------------------------
2312  Name: Matthias Blume  Name: Matthias Blume
2313  Date: 2002/03/27 16:27:00 EST  Date: 2002/03/27 16:27:00 EST
2314  Tag: blume-20020327-mlrisc-divisions  Tag: blume-20020327-mlrisc-divisions

Legend:
Removed from v.1181  
changed lines
  Added in v.1741

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