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

Legend:
Removed from v.1136  
changed lines
  Added in v.1354

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