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

Legend:
Removed from v.1133  
changed lines
  Added in v.1447

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