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/HISTORY
ViewVC logotype

Diff of /sml/trunk/HISTORY

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

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

Legend:
Removed from v.1137  
changed lines
  Added in v.1702

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