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

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

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