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

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

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