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 1145, Fri Mar 15 02:30:53 2002 UTC revision 1414, Thu Nov 6 17:54:56 2003 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Matthias Blume (blume (at) tti - c (dot) org)
17    Date: 2003/11/06 12:00:00 CST
18    Tag: Release_110_44
19    Description:
20    
21    New working version (110.44). New bootfiles.
22    
23    ----------------------------------------------------------------------
24    Name: Matthias Blume (blume (at) tti - c (dot) org)
25    Date: 2003/11/04 11:50:00 CST
26    Tag: blume-20031104-move-libraries
27    Description:
28    
29    Eliminated the "dont_move_libraries" directive in config/targets.
30    (The mechanism was broken and could not be fixed easily.  Moreover,
31    there does not seem to be any reason not to move all libraries into
32    lib during installation.  I originally implemented this directive as a
33    backward-compatibility feature when I first introduced the new CM.
34    Now that things have been stable for a long time and going back to the
35    old CM is not an option, there is no reason to keep it around.)
36    
37    ----------------------------------------------------------------------
38    Name: Matthias Blume (blume (at) tti - c (dot) org)
39    Date: 2003/11/03 16:00:00 CST
40    Tag: blume-20031103-installdir
41    Description:
42    
43    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
44    Richards for pointing out the problem and providing the solution.)
45    
46    ----------------------------------------------------------------------
47    Name: Matthias Blume (blume (at) tti - c (dot) org)
48    Date: 2003/10/01 17:05:00 CDT
49    Tag: blume-20031001-lal-mlrisc
50    Description:
51    
52    MLRISC bug fix from Lal.
53    
54    ----------------------------------------------------------------------
55    Name: Matthias Blume (blume (at) tti - c (dot) org)
56    Date: 2003/09/30 16:10:00 CDT
57    Tag: blume-20030930-primio-bat
58    Description:
59    
60    1. Added openVector, nullRd, and nullWr to PRIM_IO.
61    2. Improved .bat files (for Win32 port) to make things work under Win95.
62       (thanks to Aaron S. Hawley for this one)
63    
64    ----------------------------------------------------------------------
65    Name: Matthias Blume (blume (at) tti - c (dot) org)
66    Date: 2003/09/26 16:05:00 CDT
67    Tag: blume-20030926-wrappriv
68    Description:
69    
70    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
71    
72    ----------------------------------------------------------------------
73    Name: Matthias Blume (blume (at) tti - c (dot) org)
74    Date: 2003/09/26 15:00:00 CDT
75    Tag: blume-20030926-110_43_3
76    Description:
77    
78    - additional cleanup
79    - version number bump, NEW BOOTFILES
80    
81    ----------------------------------------------------------------------
82    Name: Matthias Blume (blume (at) tti - c (dot) org)
83    Date: 2003/09/26 12:00:00 CDT
84    Tag: blume-20030926-ppautoload
85    Description:
86    
87    I modified the read-eval-print loop so that the autoloader gets
88    invoked whenever the prettyprinter tries to look up a symbol that
89    is not currently defined in the toplevel environment but which
90    appears in CM's autoload registry.  As a result, we see far fewer of
91    those ?.Foo.Bar.xxx names in the prettyprinter's output.
92    
93    In addition to this I tried to clean up some pieces of the Basis
94    implementation (e.g., Socket, Word8Array) in order to prevent other
95    instances of these ?.Foo.Bar.xxx names from being printed.
96    
97    The mechanism that picks names for types still needs some work, though.
98    (Right now it seems that if there is a type A.t which is defined to
99    be B.u, but B is unavailable at toplevel, then A.t gets printed as
100    "?.B.u" although the perhaps more sensible solution would be to use
101    "A.t" in this case.  In other words, the prettyprinter should follow
102    a chain of DEFtycs not farther than there are corresponding toplevel
103    names in the current environment.)
104    
105    ----------------------------------------------------------------------
106    Name: Matthias Blume (blume (at) tti - c (dot) org)
107    Date: 2003/09/24 16:31:00 CDT
108    Tag: blume-20030924-installer
109    Description:
110    
111    Another installer tweak:  All the ML code for the installer is now
112    compiled during CMB.make and put into a little library called
113    $smlnj/installer.cm.  The installation then simply invokes
114    
115       sml -m $smlnj/installer.cm
116    
117    and everything happens automagically.
118    
119    Win32:  ML code senses value of environment variable SMLNJ_HOME.
120    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
121            and BINDIR.
122    
123    The new scheme guarantees that the ML code responsible for the installation
124    is in sync with the APIs of the main system.  Also, the installer is
125    somewhat faster because the installer script is precompiled.
126    
127    ----------------------------------------------------------------------
128    Name: Matthias Blume (blume (at) tti - c (dot) org)
129    Date: 2003/09/24 15:35:00 CDT
130    Tag: blume-20030924-synsock
131    Description:
132    
133    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
134    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
135    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
136    implementations of non-blocking operations from CML's Socket
137    structure.
138    
139    ----------------------------------------------------------------------
140    Name: Matthias Blume (blume (at) tti - c (dot) org)
141    Date: 2003/09/24 15:10:05 CDT
142    Tag: blume-20030924-sockets
143    Description:
144    
145    1. Fixed SOCKET API and implementation to match Basis spec.
146       This required changing the internal representation of sockets to one
147       that remembers (for each socket file descriptor) whether it is currently
148       blocking or non-blocking.  This state is maintained lazily (i.e., a system
149       call is made only if the state actually needs to change).
150    
151    2. OS-specific details of sockets were moved into separate files, thus
152       making it possible to unify the bulk of the socket implementations
153       between Unix and Win32.
154    
155    3. CML's socket API changed accordingly.
156       (Note that we need to remove non-blocking functions from this API
157       since they are redundant in the case of CML!)
158    
159    4. CML's socket implementation now makes use of non-blocking functions
160       provided by Basis, thus removing all OS-dependent code from this part
161       of CML.
162    
163    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
164    
165    ----------------------------------------------------------------------
166    Name: Matthias Blume (blume (at) tti - c (dot) org)
167    Date: 2003/09/22 12:10:00 CDT
168    Tag: blume-20030922-110_43_2
169    Description:
170    
171    Made a new interim version and bootfiles for developer's bootstrapping
172    convenience.
173    
174       110.43.2 -- NEW BOOTFILES
175    
176    ----------------------------------------------------------------------
177    Name: Matthias Blume (blume (at) tti - c (dot) org)
178    Date: 2003/09/19 15:55:00 CDT
179    Tag: blume-20030919-cmdir
180    Description:
181    
182    1. new-install.sh -> install.sh
183    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
184    3. tweaked installer so that another name instead of .cm can be chosen
185       at install time (by setting the CM_DIR_ARC environment variable
186       during installation); once installation is complete, the name is
187       fixed
188    
189    ----------------------------------------------------------------------
190    Name: Matthias Blume (blume (at) tti - c (dot) org)
191    Date: 2003/09/18 16:00:00 CDT
192    Tag: blume-20030918-110_43_1
193    Description:
194    
195    Made a new interim version and bootfiles for developer's bootstrapping
196    convenience.
197    
198       110.43.1 -- NEW BOOTFILES
199    
200    ----------------------------------------------------------------------
201    Name: Matthias Blume (blume (at) tti - c (dot) org)
202    Date: 2003/09/18 15:20:00 CDT
203    Tag: blume-20030918-misc
204    Description:
205    
206    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
207       this seems to be controversial at the moment) and used those in
208       Posix.ProcEnv.times.
209    
210    2. Added Time.{from,to}Nanoseconds to Time.
211    
212    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
213       For example, fromLargeInt never needs to look at more than 3 "big
214       digits" to get its 53 bits of precision.
215    
216    ----------------------------------------------------------------------
217    Name: Matthias Blume (blume (at) tti - c (dot) org)
218    Date: 2003/09/17 16:30:00 CDT
219    Tag: blume-20030917-real32-slices
220    Description:
221    
222    Added an entry to the primitive environment
223    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
224    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
225    
226    Removed some of the "magic" constants in real64.sml and replaced them
227    with code that generates these values from their corresponding
228    integer counterparts.
229    
230    Made all(?) the slice-related changes to the Basis and made everything
231    compile again...
232    
233    ----------------------------------------------------------------------
234    Name: Matthias Blume (blume (at) tti - c (dot) org)
235    Date: 2003/09/15 17:45:00 CDT
236    Tag: blume-20030915-rbase
237    Description:
238    
239    Fixed bug in Real.fromLargeInt.
240    
241    ----------------------------------------------------------------------
242    Name: Matthias Blume (blume (at) tti - c (dot) org)
243    Date: 2003/09/13 18:11:00 CDT
244    Tag: blume-20030913-libinstall
245    Description:
246    
247    Minor bugfix in config/libinstall (set anchor with path to
248    standalone tool after installing it, otherwise libraries that
249    need ml-lex or ml-yacc won't compile the first time the installer
250    runs).
251    
252    ----------------------------------------------------------------------
253    Name: Matthias Blume (blume (at) tti - c (dot) org)
254    Date: 2003/09/12 11:45:00 CDT
255    Tag: blume-20030912-various
256    Description:
257    
258     - fixed bug in Real.toLargeInt
259     - fixed bug in Posix.ProcEnv.times
260     - changed inputLine functions to return an option
261     - minor installer improvements / bugfixes
262     - changed default @SMLalloc parameter for x86/celeron to 64k
263    
264    ----------------------------------------------------------------------
265    Name: Matthias Blume (blume (at) tti - c (dot) org)
266    Date: 2003/09/09 22:00:00 CDT
267    Tag: Release_110_43
268    Description:
269    
270        New working release 110.43.  New bootfiles.
271    
272    ----------------------------------------------------------------------
273    Name: Matthias Blume (blume (at) tti - c (dot) org)
274    Date: 2003/09/09 19:20:00 CDT
275    Tag: blume-20030909-installer
276    Description:
277    
278    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
279    Modified config/install.bat to take advantage of it.  Also modified
280    config/install.sh (and called it config/new-install.sh) to take advantage
281    of it on Unix systems.  (The SML code is (supposed to be) platform-
282    independent.)
283    
284    The installer can now install everything under Win32
285    as well as under *nix as long as it compiles.
286    
287    Other changes:
288    
289      - made CML compile again under Win32
290      - made eXene compile under Win32 (by providing a fake structure UnixSock
291        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
292      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
293        same as type int;  under Win32 it isn't
294      - fixed some slice-related problems in the win32-specific parts of CML
295      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
296        (under Win32, the volume name is case-insensitive, and the
297        OS.Path code compares volume names for equality)
298    
299    ----------------------------------------------------------------------
300    Name: Matthias Blume (blume (at) tti - c (dot) org)
301    Date: 2003/09/08 11:55:00 CDT
302    Tag: blume-20030908-fullpath
303    Description:
304    
305    Made Win32 version of OS.FileSys.fullPath return current directory
306    when given an empty string.  This is what the spec says, and incidentally,
307    CM depends on it.  (CM otherwise goes into an infinite loop in certain
308    cases when presented with the name of a non-existing .cm file.)
309    
310    ----------------------------------------------------------------------
311    Name: Matthias Blume (blume (at) tti - c (dot) org)
312    Date: 2003/09/04 16:30:00 CDT
313    Tag: blume-20030905-slices-etc
314    Description:
315    
316      1. Changed interface to vectors and arrays in Basis to match
317         (draft) Basis spec.
318      2. Added signatures and implementations of slices according to
319         Basis spec.
320      3. Edited source code throughout the system to make it compile again
321         under 1. and 2.  (In some cases code had to be added to have it
322         match the new signatures.)
323      4. MLRISC should be backward-compatible: the copies of the originals
324         of files that needed to change under 3. were retained, the .cm files
325         check the compiler version number and use old versions when
326         appropriate.
327      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
328         dirstream -> string option (in accordance with Basis spec).
329      6. When generating code that counts lines, ml-lex used function
330         CharVector.foldli, taking advantage of its old interface.
331         This has been replaced with the corresponding code from
332         CharVectorSlice.  (html-lex must be re-lexed!)
333      7. BitArray in smlnj-lib/Util has been extended/modified to match the
334         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
335      8. Removed temporary additions (fromInternal, toInternal) from the
336         (now obsolete) IntInf in smlnj-lib/Util.
337      9. Cleaned up structure Byte.
338     10. Added localOffset, scan, and fromString to Date (according to spec).
339         Cleaned/corrected implementation of Date.
340         (Still need to check for correctness; implement better canonicalizeDate.)
341     11. Added "scan" to signature IEEE_REAL.
342     12. Some improvements to IntInf [in particular: efficiency-hack for
343         mod and rem when second operand is 2 (for parity checks).]
344     13. Changed representation of type Time.time, using a single IntInf.int
345         value counting microseconds.  This considerably simplified the
346         implementation of structure Time.  We now support negative time
347         values; scan and fromString handle signs.
348     14. Functor PrimIO now takes two additional arguments (VectorSlice and
349         ArraySlice).
350    
351    ----------------------------------------------------------------------
352    Name: Matthias Blume (blume (at) tti - c (dot) org)
353    Date: 2003/08/28 17:00:00 CDT
354    Tag: blume-20030828-intinf
355    Description:
356    
357    This is a major update which comes with a version number bump
358    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
359    and an implementation of IntInf in the Basis.
360    
361    There are a fairly large number of related changes and updates throughout
362    the system:
363    
364    Basis:
365            - Implemented IntInf.
366            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
367            - Added some missing Real64 operations, most notably Real.toLargeInt.
368            - Added FixedInt as a synonym for Int32.
369    
370    compiler:
371            * Added support for a built-in intinf type.
372              - literals
373              - pattern matching
374              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
375              - overloading on literals and operations
376    
377            This required adding a primitive type intinf, some additional
378            primops, and implementations for several non-trivial intinf
379            operations in Core.  (The intinf type is completely abstract
380            to the compiler; all operations get delegated back to the Core.)
381    
382            * Intinf equality is handled by polyequal.  However, the compiler
383            does not print its usual warning in this case (since polyequal
384            is the right thing to do there).
385    
386            * Improved the organization of structure InlineT.
387    
388            * A word about conversion primops:
389            If conversions involving intinf do not cancel out during
390            CPS contract, then the compiler must insert calls to Core functions.
391            Since all core access must be resolved already during the FLINT
392            translate phase, it would be too late a the time of CPS contract
393            to add new Core calls.  For this reason, conversion primops
394            for intinf carry two arguments:  1. the numeric argument that
395            they are supposed to convert, and 2. the Core function that
396            can help with this conversion if necessary.  If CPS contract
397            eliminates a primop, then the associated Core function becomes
398            dead and goes away.  Intinf conversion primops that do not get
399            eliminated by CPS contract get rewritten into calls of their
400            core functions by a separate, new phase.
401    
402    interactive system:
403            - Control.Print.intinfDepth controls max length of intinf constants
404            being printed. (Analogous to Control.Print.stringDepth.)
405            - Cleanup in printutil and pputil: got rid of unused stuff and
406            duplicates; replaced some of the code with code that makes better
407            use of library functionality.
408    
409    CM:
410            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
411            are no longer silent.
412    
413    CKIT:
414            Fixed mismatched uses of Int32 and LargeInt.  I always decided
415            in favor of LargeInt -- which is now the same as IntInf.
416            CKIT-knowledgable people should check whether this is what's
417            intended and otherwise change things back to using Int32 or
418            FixedInt.
419    
420    Throughout the code:
421            Started using IntInf.int literals and built-in operations
422            (e.g., comparison with 0) where this seems appropriate.
423    
424    
425    ----------------------------------------------------------------------
426    Name: Dave MacQueen (dbm@cs.uchicago.edu)
427    Date: 2003/08/13 11:36:00 CDT
428    Tag: dbm-20030813-mcz-merge1
429    Description:
430    
431    Merging changes from the mcz-branch development branch into trunk.
432    These changes involve replacement of the emulated old prettyprinter
433    interface with direct use of the SML/NJ Lib PP library, and fixing
434    of a couple of bugs (895, 1186) relating to error messages.  A new
435    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
436    has been added.
437    
438    ----------------------------------------------------------------------
439    Name: Matthias Blume (blume (at) tti - c (dot) org)
440    Date: 2003/08/11 15:45:00 CDT
441    Tag: blume-20030811-windows
442    Description:
443    
444    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
445    
446        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
447    
448    This patch restores SML/NJ's ability to run under win32.  There are a
449    number of changes, including fixes for several bugs that had gone
450    unnoticed until now:
451    
452      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
453        trying to run the win32 version from within cygwin.)
454    
455      - There are a number of simple .bat scripts that substitute for their
456        corresponding Unix shell-scripts.  (See below.)
457    
458      - The internals of ml-build have been modified slightly.  The main
459        difference is that instead of calling ".link-sml" (or link-sml.bat)
460        using OS.Process.system, the ML process delegates this task back
461        to the script.  Otherwise problems arise in mixed environments such
462        as Cygwin where scripts look and work like Unix scripts, but
463        where OS.Process.system cannot run them.
464    
465      - In CM, the srcpath pickler used native pathname syntax -- which
466        is incorrect in the case of cross-compilation.  The new pickle format
467        is independent of platform-specific naming conventions.
468    
469      - Path configuration files (such as lib/pathconfig) can now choose
470        between native and standard syntax.  Placing a line of the form
471    
472            standard!
473    
474        into the file causes all subsequent paths to be interpreted using
475        CM standard pathname syntax (= Unix conventions); a line
476    
477            native!
478    
479        switches back to native style.  This was needed so that
480        path config files can be written portably, see src/system/pathconfig.
481    
482      - Runtime system:
483    
484          - win32-filesys.c:  get_file_time and set_file_time now
485            access modification time, not creation time.
486    
487          - I/O code made aware of new array representation.
488    
489          - Bug fixes in X86.prim.masm.
490    
491       - src/system/makeml made aware of win32. (For use under cygwin
492            and other Unix-environments for windows.)
493    
494       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
495         which caused BinIO.inputAll to fail consistently.
496    
497    .bat scripts:
498    
499       Windows .bat scripts assume that SMLNJ_HOME is defined.
500    
501       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
502         applications (sml, ml-yacc, ml-lex).
503       - ml-build.bat: analogous to ml-build.
504       - config\install.bat:  Analogous to config/install.sh.  This requires
505         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
506         (nmake etc. must be on the path, and vcvars32 must have been run.)
507         Moreover, sources for ml-lex and ml-yacc need to exist under src,
508         and the bootfile hierarchy must have been unpacked under
509         sml.boot.x86-win32.
510         The script is very primitive and does a poor job at error checking.
511         It only installs the base system, ml-lex, and ml-yacc.  No other
512         libraries are being installed (i.e., you get only those that
513         are part of the compiler.)
514       - link-sml.bat:  analogous to .link-sml, but not currently used
515    
516    Unrelated bug fixes:
517    
518      - ml-nlffigen now exports structures ST_* corresponding to incomplete
519        types.
520      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
521        otherwise.)
522    
523    ----------------------------------------------------------------------
524    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
525    Date: 2003/06/17
526    Tag: macqueen-20030617-bug895
527    Description:
528    
529    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
530    Tag will be used for new development branch (mcz-branch) for
531    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
532    
533    ----------------------------------------------------------------------
534    Name: Matthias Blume (blume (at) tti - c (dot) org)
535    Date: 2003/05/27 16:55:00 CDT
536    Tag: blume-20030527-polyeq
537    Description:
538    
539    Tried to eliminated most cases of polymorphic equality.
540    
541    ----------------------------------------------------------------------
542    Name: Matthias Blume (blume (at) tti - c (dot) org)
543    Date: 2003/05/21 17:45:00 CDT
544    Tag: blume-20030517-complete
545    Description:
546    
547    Two changes:
548    
549      1. Added a flag for controlling whether non-exhaustive bindings will
550         be treated as errors (default is false).
551      2. Cleaned up the *entire* source tree so that CMB.make goes through
552         without a single non-exhaustive match- or bind warning.
553    
554    ----------------------------------------------------------------------
555    Name: Matthias Blume (blume (at) tti - c (dot) org)
556    Date: 2003/05/17 10:20:00 CDT
557    Tag: blume-20030517-absyn
558    Description:
559    
560    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
561    
562       This mainly affects the quality of error messages.  However, some
563       of the code is now more straightforward than before. (Treatment of
564       the above four constructs in translate.sml is much simpler than
565       the "macro-expansion" that was going on before.  Plus, the mach-
566       compiler no longer gets invoked just to be able to compile an
567       if-expression.)
568    
569    2. The ErrorMsg.Error exception is now caught and absorbed by the
570       interactive loop.
571    
572    ----------------------------------------------------------------------
573    Name: Allen Leung
574    Date: 2003/05/16 13:05:00 CDT
575    Tag: leunga-20030516-cygwin-runtime
576    Description:
577    
578        Ported the runtime system to cygwin, which uses the unix
579    x86-unix bin files.  Missing/buggy features:
580    
581       o getnetbyname, getnetbyaddr: these functions seem to be missing in
582         the Cygwin library.
583       o Ctrl-C handling may be flaky.
584       o Windows system calls and Windows I/O are not supported.
585    
586       A new set of binfiles is located at:
587    
588         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
589    
590       This is only needed for bootstrapping the cygwin version of smlnj.
591       Other x86 versions can use the existing binfiles.
592    
593    ----------------------------------------------------------------------
594    Name: Matthias Blume
595    Date: 2003/04/08 15:42:00 CDT
596    Tag: blume-20030408-listpair
597    Description:
598    
599    1. Added a target 'mlrisc' to installer.
600    
601    2. Added missing elements to structure ListPair.
602    
603    ----------------------------------------------------------------------
604    Name: Allen Leung
605    Date: 2003/01/07 10:40:00 EST
606    Tag: leunga-20030107-int-rem
607    Description:
608    
609    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
610    The arguments to the SUBL instruction were swapped.
611    
612    ----------------------------------------------------------------------
613    Name: Matthias Blume
614    Date: 2002/12/12 16:25:00 EST
615    Tag: blume-20021212-risc-ra
616    Description:
617    
618    Fixed a serious bug in the rewrite code for FP spilling/reloading that
619    sent the RA into an infinite loop when floating point registers get
620    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
621    110.37 and 110.38.)
622    There was another set of potential problems related to the handling of
623    MLRISC annotations (but those did not yet cause real problems, apparently).
624    
625    ----------------------------------------------------------------------
626    Name: Matthias Blume
627    Date: 2002/12/06 22:40:00 EST
628    Tag: blume-20021206-cm-fileid
629    Description:
630    
631    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
632    This fixes the problem of CM getting confused by files that suddenly
633    change their identity (e.g., by getting unlinked and recreated by some
634    text editor such as vi).  There might be a better/cheaper/cleaner way
635    of doing this, but for now this will have to do.
636    
637    ----------------------------------------------------------------------
638    Name: Matthias Blume
639    Date: 2002/10/28 09:50:00 EST
640    Tag: blume-20021028-typecheck
641    Description:
642    
643    Exported structure Typecheck from $smlnj/viscomp/core.cm.
644    
645    ----------------------------------------------------------------------
646    Name: Matthias Blume
647    Date: 2002/10/17 09:10:00 EDT
648    Tag: Release_110_42
649    Description:
650    
651    In good old tradition, there has been a slight hiccup so that we have
652    to patch 110.42 after the fact.   The old release tag has been replaced
653    (see below).
654    
655    The change solves a problem with two competing approaches the
656    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
657    each other's way.
658    
659    This change only affects the runtime system code and the installer script.
660    (No new bootfiles.)
661    
662    ----------------------------------------------------------------------
663    Name: Matthias Blume
664    Date: 2002/10/16 12:00:00 EDT
665    Tag: Release_110_42_removed
666    Description:
667    
668    New working release.  New bootfiles.
669    
670    ----------------------------------------------------------------------
671    Name: Matthias Blume
672    Date: 2002/10/10 13:10:00 EDT
673    Tag: blume-20021010-ppc-divs
674    Description:
675    
676    The mltree operator DIVS must be implemented with an overflow check on
677    the PPC because the hardware indicates divide-by-zero using "overflow" as
678    well.
679    
680    ----------------------------------------------------------------------
681    Name: Matthias Blume
682    Date: 2002/07/23 11:45:00
683    Tag: blume-20020723-smlnj-home
684    Description:
685    
686    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
687    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
688    CM_PATHCONFIG is also set), the path configuration file is assumed
689    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
690    the entire tree to some other place and everything will "just work".
691    
692    (Companion commands such as ml-build and ml-makedepend also sense this
693    variable.)
694    
695    ----------------------------------------------------------------------
696    Name: Matthias Blume
697    Date: 2002/07/12 21:19:00 EDT
698    Tag: blume-20020712-liveness
699    Description:
700    
701    Exported two useful "step" functions from liveness module (MLRISC).
702    
703    ----------------------------------------------------------------------
704    Name: Matthias Blume
705    Date: 2002/07/05 16:00 EDT
706    Tag: Release_110_41
707    Description:
708    
709    New working release.  New bootfiles.
710    
711    ----------------------------------------------------------------------
712    Name: Matthias Blume
713    Date: 2002/07/05 10:25:00 EDT
714    Tag: blume-20020705-btimp
715    Description:
716    
717    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
718    other clients can set up backtracing support.
719    
720    ----------------------------------------------------------------------
721    Name: Matthias Blume
722    Date: 2002/06/25 17:23:00 EDT
723    Tag: blume-20020625-fpmax
724    Description:
725    
726    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
727    case.  (The sense of the isNaN test was reversed -- which made min and
728    max always return their first argument.)
729    
730    ----------------------------------------------------------------------
731    Name: Matthias Blume
732    Date: 2002/06/11
733    Tag: blume-20020611-unixpath
734    Description:
735    
736    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
737    
738    ----------------------------------------------------------------------
739    Name: Matthias Blume
740    Date: 2002/06/10 16:35:00 EDT
741    Tag: blume-20020610-ieeereal
742    Description:
743    
744    I back-ported my implementation of IEEEReal.fromString from the
745    idlbasis-devel branch so that we can test it.
746    
747    Another small change is that ppDec tries to give more information
748    than just "<sig>" in the case of functors.  However, this code is
749    broken in some mysterious way if the functor's body's signature
750    has not been declared by ascription but gets inferred from the
751    implementation.  This needs fixing...
752    
753    ----------------------------------------------------------------------
754    Name: Matthias Blume
755    Date: 2002/05/31
756    Tag: blume-20020531-btrace-mode
757    Description:
758    
759    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
760    the wayside when I switched over to using Controls everywhere.)
761    
762    ----------------------------------------------------------------------
763    Name: Lal George
764    Date: 2002/05/23 12:21:40 EDT
765    Tag: george-20020523-visual-labels
766    Description:
767    
768    Labels are now displayed in the graphical output to make
769    the fall-through and target blocks obvious.
770    
771    ----------------------------------------------------------------------
772    Name: Matthias Blume
773    Date: 2002/05/22 11:03:00 EDT
774    Tag: blume-20020522-shrink
775    Description:
776    
777    John tweaked yesterday's fix for 1131 to handle an out-of-memory
778    situation that comes up when allocating huge arrays.
779    
780    ----------------------------------------------------------------------
781    Name: Matthias Blume
782    Date: 2002/05/21 16:00:00 EDT
783    Tag: Release_110_40
784    Description:
785    
786    New working release (110.40).  New bootfiles.
787    
788    [Also: John Reppy fixed GC bug 1131.]
789    
790    ----------------------------------------------------------------------
791    Name: Matthias Blume
792    Date: 2002/05/21 12:35:00 EDT
793    Tag: blume-20020521-cmdoc
794    Description:
795    
796    CM documentation update.
797    
798    ----------------------------------------------------------------------
799    Name: Matthias Blume
800    Date: 2002/05/21 10:55:00 EDT
801    Tag: blume-20020521-misc
802    Description:
803    
804    - John tweaked runtime to be silent on heap export (except when
805      GC messages are on).
806    - I added a few more things (cross-compiling versions of CMB) to
807      config/preloads (as suggestions).
808    
809    ----------------------------------------------------------------------
810    Name: Matthias Blume
811    Date: 2002/05/20 22:25:00 EDT
812    Tag: blume-20020520-controls
813    Description:
814    
815    - Added ControlUtil structure to control-lib.cm.
816    - Use it throughout.
817    - Used Controls facility to define MLRISC controls (as opposed to
818      registering MLRISC control ref cells with Controls after the fact)
819    - Fixed messed-up controls priorities.
820    
821    * Removed again all the stuff from config/preloads that one wouldn't
822      be able to preload at the time the initial heap image is built.
823      (Many libraries, e.g., CML, do not exist yet at this time.  The
824       only libraries that can be preloaded via config/preloads are those
825       that come bundled with the bootfiles.)
826    
827    ----------------------------------------------------------------------
828    Name: Matthias Blume
829    Date: 2002/05/20 10:59:00 EDT
830    Tag: blume-20020520-preloads
831    Description:
832    
833    Added a lot of commented-out suggestions for things to be included
834    in config/preloads.
835    
836    ----------------------------------------------------------------------
837    Name: Allen Leung
838    Date: 2002/05/18 14:20:00 EDT
839    Tag: leunga-20020518-mdl
840    Description:
841    
842    o Made the mdl tool stuff compile and run again.
843    o I've disabled all the stuff that depends on RTL specifications; they
844      are all badly broken anyway.
845    
846    ----------------------------------------------------------------------
847    Name: Matthias Blume
848    Date: 2002/05/17 16:49:00 EDT
849    Tag: blume-20020517-controls
850    Description:
851    
852    0. John Reppy made several modifications to the SML/NJ library.
853       In particular, there is a shiny new controls-lib.cm.
854    
855    1. Pushed new controls interface through compiler so that everything
856       compiles again.
857    
858    2. Added FormatComb and FORMAT_COMB to the CML version of the
859       SML/NJ library (so that CML compiles again).
860    
861    3. Modified init scripts because XXX_DEFAULT environment variables
862       are no longer with us.  (Boot-time initialization is now done
863       using the same environment variables that are also used for
864       startup-time initialization of controls.)
865    
866    ----------------------------------------------------------------------
867    Name: Lal George
868    Date: 2002/05/15 09:20:10 EDT
869    Tag: george-20020515-pseudo-op-decls
870    Description:
871    
872            All pseudo-ops emitted before the first segment declaration
873    such as TEXT, DATA, and BSS directives are assumed to be global
874    declarations and are emitted first in the assembly file. This is
875    useful in a number of situations where one has pseudo-ops that are not
876    specific to any segment, and also works around the constraint that one
877    cannot have client pseudo-ops in the TEXT segment.
878    
879            Because no segment is associated with these declarations it is
880    an error to allocate any space or objects before the first segment
881    directive and an exception will be raised. However, we cannot make
882    this check for client pseudo-ops.
883    
884            These top level declarations are a field in the CFG graph_info.
885    In theory you can continue to add to this field after the CFG has been
886    built -- provided you know what you are doing;-)
887    
888    ----------------------------------------------------------------------
889    Name: Matthias Blume
890    Date: 2002/05/13 16:40:00 EDT
891    Tag: blume-20020513-pp-etc
892    Description:
893    
894    A few minor bugfixes:
895    
896      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
897        (Bogus printouts for redefined bindings still occur.  Compiler
898        bug should no longer occur now.  We need to redo the prettyprinter
899        from scratch.)
900    
901      - CM pathname printer now also adds escape sequences for ( and )
902    
903      - commend and docu fixes for ml-nlffi
904    
905    ----------------------------------------------------------------------
906    Name: Matthias Blume
907    Date: 2002/05/10 16:40:00 EDT
908    Tag: blume-20020510-erg-textio
909    Description:
910    
911    Applied the following bugfix provided by Emden Gansner:
912    
913        Output is corrupted when outputSubstr is used rather than output.
914    
915        The problem occurs when a substring
916    
917            ss = (s, dataStart, dataLen)
918    
919        where dataStart > 0, fills a stream buffer with avail bytes left.
920        avail bytes of s, starting at index dataStart, are copied into the
921        buffer, the buffer is flushed, and then the remaining dataLen-avail
922        bytes of ss are copied into the beginning of the buffer. Instead of
923        starting this copy at index dataStart+avail in s, the current code
924        starts the copy at index avail.
925    
926        Fix:
927        In text-io-fn.sml, change line 695 from
928             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
929        to
930             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
931    
932    ----------------------------------------------------------------------
933    Name: Matthias Blume
934    Date: 2002/04/12 13:55:00 EDT
935    Tag: blume-20020412-assyntax
936    Description:
937    
938    1. Grabbed newer assyntax.h from the XFree86 project.
939    2. Fiddled with how to compile X86.prim.asm without warnings.
940    3. (Very) Minor cleanup in CM.
941    
942    ----------------------------------------------------------------------
943    Name: Matthias Blume
944    Date: 2002/04/01 (no joke!) 17:07:00 EST
945    Tag: blume-20020401-x86div
946    Description:
947    
948    Added full support for div/mod/rem/quot on the x86, using the machine
949    instruction's two results (without clumsily recomputing the remainder)
950    directly where appropriate.
951    
952    Some more extensive power-of-two support was added to the x86 instruction
953    selector (avoiding expensive divs, mods, and muls where they can be
954    replaced with cheaper shifts and masks).  However, this sort of thing
955    ought to be done earlier, e.g., within the CPS optimizer so that
956    all architectures benefit from it.
957    
958    The compiler compiles to a fixed point, but changes might be somewhat
959    fragile nevertheless.  Please, report any strange things that you might
960    see wrt. div/mod/quot/rem...
961    
962    ----------------------------------------------------------------------
963    Name: Matthias Blume
964    Date: 2002/03/29 17:22:00
965    Tag: blume-20020329-div
966    Description:
967    
968    Fixed my broken div/mod logic.  Unfortunately, this means that the
969    inline code for div/mod now has one more comparison than before.
970    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
971    The problem was with quotient = 0, because that alone does not tell
972    us which way the rounding went.  One then has to look at whether
973    remainder and divisor have the same sign...  :(
974    
975    Anyway, I replaced the bootfiles with fresh ones...
976    
977    ----------------------------------------------------------------------
978    Name: Matthias Blume
979    Date: 2002/03/29 14:10:00 EST
980    Tag: blume-20020329-inlprims
981    Description:
982    
983    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
984    
985    Primops have changed. This means that the bin/boot-file formats have
986    changed as well.
987    
988    To make sure that there is no confusion, I made a new version.
989    
990    
991    CHANGES:
992    
993    * removed REMT from mltree (remainder should never overflow).
994    
995    * added primops to deal with divisions of all flavors to the frontend
996    
997    * handled these primops all the way through so they map to their respective
998      MLRISC support
999    
1000    * used these primops in the implementation of Int, Int32, Word, Word32
1001    
1002    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
1003    
1004    * parameterized INLMIN, INLMAX, and INLABS by a numkind
1005    
1006    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
1007      floating point
1008    
1009    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
1010      and Real (but Real.abs maps to a separate floating-point-only primop)
1011    
1012    
1013    TODO items:
1014    
1015    * Hacked Alpha32 instruction selection, disabling the selection of REMx
1016      instructions because the machine instruction encoder cannot handle
1017      them.  (Hppa, PPC, and Sparc instruction selection did not handle
1018      REM in the first place, and REM is supported by the x86 machine coder.)
1019    
1020    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
1021      selection phase.  (The two can be streamlined because the hardware
1022      delivers both quotient and remainder at the same time anyway.)
1023    
1024    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
1025      (Currently the behavior is inconsistent both across architectures and
1026      wrt. the draft Basis spec.)
1027    
1028    * Word8 should eventually be handled natively, too.
1029    
1030    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
1031      as if there currently is no execution path that could trigger it in
1032      SML/NJ.  (The assumptions underlying functions arith and promotable do not
1033      hold for things like multiplication and division.)
1034    
1035    ----------------------------------------------------------------------
1036    Name: Matthias Blume
1037    Date: 2002/03/27 16:27:00 EST
1038    Tag: blume-20020327-mlrisc-divisions
1039    Description:
1040    
1041    Added support for all four division operations (ML's div, mod, quot,
1042    and rem) to MLRISC.  In the course of doing so, I also rationalized
1043    the naming (no more annoying switch-around of DIV and QUOT), by
1044    parameterizing the operation by div_rounding_mode (which can be either
1045    DIV_TO_ZERO or DIV_TO_NEGINF).
1046    
1047    The generic MLTreeGen functor takes care of compiling all four
1048    operations down to only round-to-zero div.
1049    
1050    Missing pieces:
1051    
1052      * Doing something smarter than relying on MLTreeGen on architectures
1053        like, e.g., the x86 where hardware division delivers both quotient and
1054        remainder at the same time.  With this, the implementation of the
1055        round-to-neginf operations could be further streamlined.
1056    
1057      * Remove inlining support for div/mod/rem from the frontend and replace it
1058        with primops that get carried through to the backend.  Do this for all
1059        int and word types.
1060    
1061    ----------------------------------------------------------------------
1062    Name: Matthias Blume
1063    Date: 2002/03/25 17:25:00 EST
1064    Tag: blume-20020325-divmod
1065    Description:
1066    
1067    I improved (hopefully without breaking them) the implementation of Int.div,
1068    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
1069    advantage of the following observations:
1070    
1071      Let  q = x quot y      r = x rem y
1072           d = x div  y      m = x mod y
1073    
1074    where "quot" is the round-to-zero version of integer division that
1075    hardware usually provides.  Then we have:
1076    
1077         r = x - q * y        where neither the * nor the - will overflow
1078         d = if q >= 0 orelse x = q * y then q else q - 1
1079                              where neither the * nor the - will overflow
1080         m = if q >= 0 orelse r = 0 then r else r + y
1081                              where the + will not overflow
1082    
1083    This results in substantial simplification of the generated code.
1084    The following table shows the number of CFG nodes and edges generated
1085    for
1086            fun f (x, y) = x OPER y
1087            (* with OPER \in div, mod, quot, rem *)
1088    
1089    
1090        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
1091        --------------------------------------------------------
1092         div |         24 |         39 |         12 |         16
1093         mod |         41 |         71 |         12 |         16
1094        quot |          8 |         10 |          8 |         10
1095         rem |         10 |         14 |          8 |         10
1096    
1097    
1098    ----------------------------------------------------------------------
1099    Name: Matthias Blume
1100    Date: 2002/03/25 22:06:00 EST
1101    Tag: blume-20020325-cprotobug
1102    Description:
1103    
1104    Fixed a bug in cproto (c prototype decoder).
1105    
1106    ----------------------------------------------------------------------
1107    Name: Matthias Blume
1108    Date: 2002/03/25 16:00:00 EST
1109    Tag: blume-20020325-raw-primops
1110    Description:
1111    
1112    I did some cleanup to Allen's new primop code and
1113    replaced yesterday's bootfiles with new ones.
1114    (But they are stored in the same place.)
1115    
1116    ----------------------------------------------------------------------
1117    Name: Matthias Blume
1118    Date: 2002/03/24 22:40:00 EST
1119    Tag: blume-20020324-bootfiles
1120    Description:
1121    
1122    Made the bootfiles that Allen asked for.
1123    
1124    ----------------------------------------------------------------------
1125    Name: Allen Leung
1126    Date: 2002/03/23 15:50:00 EST
1127    Tag: leunga-20020323-flint-cps-rcc-primops
1128    Description:
1129    
1130      1. Changes to FLINT primops:
1131    
1132        (* make a call to a C-function;
1133         * The primop carries C function prototype information and specifies
1134         * which of its (ML-) arguments are floating point. C prototype
1135         * information is for use by the backend, ML information is for
1136         * use by the CPS converter. *)
1137      | RAW_CCALL of { c_proto: CTypes.c_proto,
1138                       ml_args: ccall_type list,
1139                       ml_res_opt: ccall_type option,
1140                       reentrant : bool
1141                     } option
1142       (* Allocate uninitialized storage on the heap.
1143        * The record is meant to hold short-lived C objects, i.e., they
1144        * are not ML pointers.  With the tag, the representation is
1145        * the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8)
1146        *)
1147      | RAW_RECORD of {tag:bool,sz:int}
1148      and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR
1149    
1150      2.  These CPS primops are now overloaded:
1151    
1152           rawload of {kind:numkind}
1153           rawstore of {kind:numkind}
1154    
1155          The one argument form is:
1156    
1157             rawload {kind} address
1158    
1159          The two argument form is:
1160    
1161             rawload {kind} [ml object, byte-offset]
1162    
1163      3. RAW_CCALL/RCC now takes two extra arguments:
1164    
1165         a. The first is whether the C call is reentrant, i.e., whether
1166            ML state should be saved and restored.
1167         b. The second argument is a string argument specifying the name of
1168            library and the C function.
1169    
1170         These things are currently not handled in the code generator, yet.
1171    
1172      4. In CProto,
1173    
1174         An encoding type of "bool" means "ml object" and is mapped into
1175         C prototype of PTR.  Note that "bool" is different than "string",
1176         even though "string" is also mapped into PTR, because "bool"
1177         is assigned an CPS type of BOGt, while "string" is assigned INT32t.
1178    
1179      5. Pickler/unpicker
1180    
1181         Changed to handle RAW_RECORD and newest RAW_CCALL
1182    
1183      6. MLRiscGen,
1184    
1185         1. Changed to handle the new rawload/rawstore/rawrecord operators.
1186         2. Code for handling C Calls has been moved to a new module CPSCCalls,
1187            in the file CodeGen/cpscompile/cps-c-calls.sml
1188    
1189      7. Added the conditional move operator
1190    
1191             condmove of branch
1192    
1193         to cps.  Generation of this is still buggy so it is currently
1194         disabled.
1195    
1196    ----------------------------------------------------------------------
1197    Name: Lal George
1198    Date: 2002/03/22 14:18:25 EST
1199    Tag: george-20020322-cps-branch-prob
1200    Description:
1201    
1202    Implemented the Ball-Larus branch prediction-heuristics, and
1203    incorporated graphical viewers for control flow graphs.
1204    
1205    Ball-Larus Heuristics:
1206    ---------------------
1207    See the file compiler/CodeGen/cpscompile/cpsBranchProb.sml.
1208    
1209    By design it uses the Dempster-Shafer theory for combining
1210    probabilities.  For example, in the function:
1211    
1212        fun f(n,acc) = if n = 0 then acc else f(n-1, n*acc)
1213    
1214    the ball-larus heuristics predicts that the n=0 is unlikely
1215    (OH-heuristic), and the 'then' branch is unlikely because of the
1216    RH-heuristic -- giving the 'then' branch an even lower combined
1217    probability using the Dempster-Shafer theory.
1218    
1219    Finally, John Reppy's loop analysis in MLRISC, further lowers the
1220    probability of the 'then' branch because of the loop in the else
1221    branch.
1222    
1223    
1224    Graphical Viewing:
1225    ------------------
1226    I merely plugged in Allen's graphical viewers into the compiler. The
1227    additional code is not much. At the top level, saying:
1228    
1229            Control.MLRISC.getFlag "cfg-graphical-view" := true;
1230    
1231    will display the graphical view of the control flow graph just before
1232    back-patching.  daVinci must be in your path for this to work. If
1233    daVinci is not available, then the default viewer can be changed
1234    using:
1235    
1236            Control.MLRISC.getString "viewer"
1237    
1238    which can be set to "dot" or "vcg" for the corresponding viewers. Of
1239    course, these viewers must be in your path.
1240    
1241    The above will display the compilation unit at the level of clusters,
1242    many of which are small, boring, and un-interesting. Also setting:
1243    
1244            Control.MLRISC.getInt "cfg-graphical-view_size"
1245    
1246    will display clusters that are larger than the value set by the above.
1247    
1248    
1249    ----------------------------------------------------------------------
1250    Name: Matthias Blume
1251    Date: 2002/03/21 22:20:00 EST
1252    Tag: blume-20020321-kmp-bugfix
1253    Description:
1254    
1255    Changed the interface to the KMP routine in PreString and fixed
1256    a minor bug in one place where it was used.
1257    
1258    ----------------------------------------------------------------------
1259    Name: Allen Leung
1260    Date: 2002/03/21 20:30:00 EST
1261    Tag: leunga-20020321-cfg
1262    Description:
1263    
1264      Fixed a potential problem in cfg edge splitting.
1265    
1266    ----------------------------------------------------------------------
1267    Name: Allen Leung
1268    Date: 2002/03/21 17:15:00 EST
1269    Tag: leunga-20020321-x86-fp-cfg
1270    Description:
1271    
1272      1. Recoded the buggy parts of x86-fp.
1273    
1274         a. All the block reordering code has been removed.
1275            We now depend on the block placement phases to do this work.
1276    
1277         b. Critical edge splitting code has been simplified and moved into the
1278            CFG modules, as where they belong.
1279    
1280         Both of these were quite buggy and complex.  The code is now much, much
1281         simpler.
1282    
1283      2. X86 backend.
1284    
1285         a. Added instructions for 64-bit support.  Instruction selection for
1286            64-bit has not been committed, however, since that
1287            requires changes to MLTREE which haven't been approved by
1288            Lal and John.
1289    
1290         b. Added support for FUCOMI and FUCOMIP when generating code for
1291            PentiumPro and above.  We only generate these instructions in
1292            the fast-fp mode.
1293    
1294         c. Added cases for JP and JNP in X86FreqProps.
1295    
1296      3. CFG
1297    
1298         CFG now has a bunch of methods for edge splitting and merging.
1299    
1300      4. Machine description.
1301    
1302         John's simplification of MLTREE_BASIS.fcond broke a few machine
1303         description things:
1304    
1305         rtl-build.{sig,sml} and hppa.mdl fixed.
1306    
1307         NOTE: the machine description stuff in the repository is still broken.
1308               Again, I can't put my fixes in because that involves
1309               changes to MLTREE.
1310    
1311    ----------------------------------------------------------------------
1312    Name: Matthias Blume
1313    Date: 2002/03/20 15:55:00 EST
1314    Tag: blume-20020320-kmp
1315    Description:
1316    
1317    Implemented Knuth-Morris-Pratt string matching in PreString and used
1318    it for String.isSubstring, Substring.isSubstring, and
1319    Substring.position.
1320    
1321    (Might need some stress-testing.  Simple examples worked fine.)
1322    
1323    ----------------------------------------------------------------------
1324    Name: Matthias Blume
1325    Date: 2002/03/19 16:37:00 EST
1326    Tag: blume-20020319-witnesses
1327    Description:
1328    
1329    Added a structure C.W and functions convert/Ptr.convert to ml-nlffi-lib.
1330    
1331    This implements a generic mechanism for changing constness qualifiers
1332    anywhere within big C types without resorting to outright "casts".
1333    (So far, functions such as C.rw/C.ro or C.Ptr.rw/C.Ptr.ro only let you
1334    modify the constness at the outermost level.)
1335    The implementation of "convert" is based on the idea of "witness"
1336    values -- values that are not used by the operation but whose types
1337    "testify" to their applicability.  On the implementation side, "convert"
1338    is simply a projection (returning its second curried argument).  With
1339    cross-module inlining, it should not result in any machine code being
1340    generated.
1341    
1342    ----------------------------------------------------------------------
1343    Name: Matthias Blume
1344    Date: 2002/03/15 16:40:00 EST
1345    Tag: blume-20020315-basis
1346    Description:
1347    
1348    Provided (preliminary?) implementations for
1349    
1350      {String,Substring}.{concatWith,isSuffix,isSubstring}
1351    
1352    and
1353    
1354      Substring.full
1355    
1356    Those are in the Basis spec but they were missing in SML/NJ.
1357    
1358    ----------------------------------------------------------------------
1359  Name: Matthias Blume  Name: Matthias Blume
1360  Date: 2002/03/14 21:30:00 EST  Date: 2002/03/14 21:30:00 EST
1361  Tag: blume-20020314-controls  Tag: blume-20020314-controls

Legend:
Removed from v.1145  
changed lines
  Added in v.1414

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