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

Legend:
Removed from v.1179  
changed lines
  Added in v.1595

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