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

Legend:
Removed from v.1148  
changed lines
  Added in v.1356

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