Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/NOTES/HISTORY
ViewVC logotype

Diff of /sml/trunk/NOTES/HISTORY

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

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

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

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