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

Legend:
Removed from v.1158  
changed lines
  Added in v.1391

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