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

Legend:
Removed from v.1142  
changed lines
  Added in v.1384

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