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

Legend:
Removed from v.1204  
changed lines
  Added in v.1669

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