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 1389, Wed Sep 24 20:09:40 2003 UTC revision 1686, Thu Nov 11 23:26:27 2004 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Date: 2004/11/11 17:30:00 CST
17    Tag: blume-20041111-more64
18    Description:
19    
20    All the pieces of Word64 are now there, with the exception of the
21    conversions from and to LargeWord. (Eventually these need to be identities,
22    but for the time being they don't even make sense because LargeWord is
23    32-bit wide.)
24    
25    Also started to add similar support for Int64, but major pieces of that
26    are still missing.
27    
28    ----------------------------------------------------------------------
29    Name: Matthias Blume (blume (at) tti - c (dot) org)
30    Date: 2004/11/11 00:15:00 CST
31    Tag: blume-20041111-word64
32    Description:
33    
34    Structure Word64 is now (almost) complete, word literals and patterns
35    seem to work.  There are a few odd pieces missing.  In particular,
36    I didn't do the {from,to}LargeWord parts because LargeWord is still Word32
37    at the moment.
38    
39    Making Word64 official would mean that LargeWord becomes Word64.  But
40    this requires extreme care because most word-word conversions have to
41    go through LargeWord, so making a mistake means loss of efficiency or
42    worse.  Eventually there will be a solution similar to (but actually
43    simpler than) what I did with IntInf.
44    
45    ----------------------------------------------------------------------
46    Name: Matthias Blume (blume (at) tti - c (dot) org)
47    Date: 2004/11/10 18:12:00 CST
48    Tag: blume-20041110-64bit
49    Description:
50    
51    More 64-bit hacking (but still not even half-way there yet).
52    Also, some assorted improvements to the handling of 8-bit words.
53    
54    ----------------------------------------------------------------------
55    Name: Matthias Blume (blume (at) tti - c (dot) org)
56    Date: 2004/11/09 17:50:00 CST
57    Tag: <none>
58    Description:
59    
60    Started adding some infrastructure for supporting 64-bit int- and
61    word-types.  (Still in its very early stages.)
62    
63    ----------------------------------------------------------------------
64    Name: Matthias Blume (blume (at) tti - c (dot) org)
65    Date: 2004/10/28 10:45:00 CDT
66    Tag: Release_110_50
67    Description:
68    
69    New working version (110.50).  NEW BOOTFILES!
70    
71                 =====================
72    
73    Also:
74    
75      - Changend config/srcarchiveurl from a file just
76        containing the URL string into a file containing
77        shell script code.  The code has access to the $VERSION variable.
78      - Made corresponding changes to config/install.sh and config/unpack.
79      - Default contents of config/srcarchiveurl uses $VERSION and
80        normally does not have to be edited to reflect a version change.
81    
82      (As a result, a version change can be done by just editing
83       config/version, the rest is now automatic.)
84    
85    ----------------------------------------------------------------------
86    Name: Matthias Blume (blume (at) tti - c (dot) org)
87    Date: 2004/10/27 17:50:00 CDT
88    Tag: blume-20041027-btrace-msg
89    Description:
90    
91    BackTrace.monitor now also reports the source of the exception that
92    triggered the trace.
93    
94    ----------------------------------------------------------------------
95    Name: Matthias Blume (blume (at) tti - c (dot) org)
96    Date: 2004/10/27 17:20:00 CDT
97    Tag: blume-20041027-x86-c-calls
98    Description:
99    
100    This is the HISTORY entry for two earlier commits, both concerning
101    the x86 c-calls code in MLRISC:
102    
103      - added a missing LOAD in the code that deals with struct arguments
104      - made sure the caller does not add the wrong number of bytes to the
105        stack pointer after a call of a function returning a struct
106        (the callee already pops the implicit argument which points to
107         the space reserved for the result)
108    
109    ----------------------------------------------------------------------
110    Name: Allen Leung (leunga (at) reservoir (dot) com)
111    Date: 2004/10/24 14:00:00 EST
112    Tag: leunga-20041024-x86-gas-fucomip
113    Description:
114    
115       John discovered a bug in the syntax of fucomip.
116       The opcodes FU?COMIP? have been changed to
117    
118           fu?comip? %st(i), %st
119    
120    ----------------------------------------------------------------------
121    Name: Matthias Blume (blume (at) tti - c (dot) org)
122    Date: 2004/10/20 15:06:00 CDT
123    Tag: blume-20041020-standalone-backtrace
124    Description:
125    
126    Added a mechanism for getting back-trace information from standalone
127    programs.  Here is how it works:
128    
129       1. The part of the program from which you want to get backtrace
130          information (usually the whole program) should be wrapped with
131          BackTrace.monitor.  This is a (unit->'a)->'a function, and your
132          main program could be modified from something like
133    
134             fun main (pgm, args) = ...
135    
136         to
137    
138            fun main (pgm, args) = BackTrace.monitor (fn () => ...)
139    
140       2. To be able to access BackTrace.monitor, you have to add
141          library $smlnj-tdp/plugins.cm to the .cm file that contains your
142          main function.
143    
144       3. Remove all compiled code (i.e., all the .cm/ subdirectories that
145          CM might have created in the past for your project).
146    
147       4. Build the system using this command line:
148    
149             ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm \
150                      myprog.cm MyProg.main myprog
151    
152          instead of the usual
153    
154             ml-build myprog.cm MyProg.main myprog
155    
156    I changed a library name:
157    
158       $/trace-debug-profile.cm --> $smlnj-tdp/plugins.cm
159    
160    New libraries:
161    
162       $smlnj-tdp/back-trace.cm
163          -- when loaded causes the back-trace plugin to be installed
164       $smlnj-tdp/coverage.cm
165          -- when loaded causes the coverage plugin to be installed
166    
167    ----------------------------------------------------------------------
168    Name: Matthias Blume (blume (at) tti - c (dot) org)
169    Date: 2004/10/18 16:45:00 CDT
170    Tag: blume-20041018-groupowner
171    Description:
172    
173    Added an "obsolete" warning for the "group owner" syntax to CM's parser.
174    
175    Eliminated group owner specs from .cm files throughout the source tree.
176    
177    ----------------------------------------------------------------------
178    Name: Matthias Blume (blume (at) tti - c (dot) org)
179    Date: 2004/10/15 15:45:00 CDT
180    Tag: blume-20041015-coverage
181    Description:
182    
183    * Test coverage tool added!
184    * Further reorganization of tracing-, debugging-, and profiling support:
185    
186        - moved original BTImp -- now called BackTrace -- into a separate
187          library called $/trace-debug-profile.cm
188        - eliminated all mentions of BTrace from SMLofNJ.Internals
189        - only the instrumentation mechanism is now left in the compiler proper
190        - BackTrace module is a plugin which is NOT plugged in by default
191        - Coverage module is another such plugin
192    
193    To get the benefits of any of these plugin modules, the code in
194    question must be compiled with tdp instrumentation turned on.  This
195    can be done by setting SMLofNJ.Internals.TDP.mode to true.
196    (The ref cell is also controlled via the -Ctdp.instrument=... switch.)
197    
198    Plugins are selected at link time.  (Pre-compiled instrumented code
199    can be re-loaded with different plugins in effect.)  When an
200    instrumented module is linked, whatever plugins are at that time
201    enabled will come into effect for that module.
202    
203    To enable the back-trace plugin, load library $/trace-debug-profile.cm
204    and invoke BackTrace.install() (e.g., from the interactive prompt).
205    To enable the coverage plugin, load the same library and invoke
206    Coverage.install().
207    
208    Back-traces are generated automatically on uncaught exceptions and
209    when the code in question explicitly invokes BackTrace.trigger().
210    
211    Coverage (and execution frequency-) information must be queried
212    explicitly by calling Coverage.not_covered and Coverage.hot_spots.
213    
214    ----------------------------------------------------------------------
215    Name: Matthias Blume (blume (at) tti - c (dot) org)
216    Date: 2004/10/14 17:40:00 CDT
217    Tag: blume-20041014-tdp-core
218    Description:
219    
220    Snapshot of a significant overhaul of how the trace/debug/profile support
221    is hooked into the system (specifically: Core and SMLofNJ.Internals).
222    
223    ----------------------------------------------------------------------
224    Name: Matthias Blume (blume (at) tti - c (dot) org)
225    Date: 2004/10/13 16:34:00 CDT
226    Tag: blume-20041013-tdp
227    Description:
228    
229    Some rationalization of names:
230    
231       structure BTrace -> structure TDPInstrument
232       etc.
233    
234    This is is preparation of using the original back-trace
235    instrumentation for other purposes.  "TDP" stands for
236    Trace/Debug/Profile.
237    
238    The control flag controlling whether instrumentation is on or off is now
239    registered under a different name, so instead of running sml as
240    
241     sml -Cinstrument.btrace-mode=true
242    
243    one has to say
244    
245     sml -Ctdp.instrument=true
246    
247    ----------------------------------------------------------------------
248    Name: Matthias Blume (blume (at) tti - c (dot) org)
249    Date: 2004/10/11 16:37:00 CDT
250    Tag: blume-20041011-regions
251    Description:
252    
253    Made some minor modifications to elabcore.sml to have source regions
254    be propagated more tightly -- resulting in better (i.e., smaller)
255    regions being reported in error- and debug messages.
256    
257    ----------------------------------------------------------------------
258    Name: Matthias Blume (blume (at) tti - c (dot) org)
259    Date: 2004/10/08 22:50:00 CDT
260    Tag: blume-20041008-cmkw
261    Description:
262    
263    Fixed handling of keywords in .cm files: After seeing "is" the lexer
264    treats subsequent occurrences of "group", "library", "source", "is",
265    "*", and "-" as ordinary identifiers rather than keywords.
266    
267    Most seriously, this fixes a problem with CM's "shell" tool.  The tool
268    is supposed to accept a tool argument called "source", but this did
269    not work because of the clash with the keyword.
270    
271    ----------------------------------------------------------------------
272    Name: Matthias Blume (blume (at) tti - c (dot) org)
273    Date: 2004/10/07 16:00:00 CDT
274    Tag: blume-20041007-cleanup
275    Description:
276    
277    Assorted cleanup work:
278    
279      - got rid of intstrmap in favor of using the library's
280        hash table implementation
281      - threw out most of the pathnames stuff, as it was not used anyway
282      - simplified tokentable implementation
283      - fixed some minor spelling errors
284    
285    ----------------------------------------------------------------------
286    Name: Matthias Blume (blume (at) tti - c (dot) org)
287    Date: 2004/10/06 15:15:15 CDT
288    Tag: blume-20041006-handler
289    Description:
290    
291    Cleaned up the absyn to reflect the invariant that HANDLE always
292    carries a FNexp as part of the type definition.  This eliminates some
293    superfluous sanity checks at runtime down the road.
294    
295    Some minor cleanup of the btrace code.
296    
297    ----------------------------------------------------------------------
298    Name: Matthias Blume (blume (at) tti - c (dot) org)
299    Date: 2004/10/01 10:20:30 CDT
300    Tag: blume-20041001-slave
301    Description:
302    
303    Added hack to make slave mode work in the presence of the version
304    tool.  (Still, since the master does two passes over the code for
305    CMB.make, the release number gets bumped twice when slaves are
306    attached.  I don't know if this is worth fixing...)
307    
308    ----------------------------------------------------------------------
309    Name: Matthias Blume (blume (at) tti - c (dot) org)
310    Date: 2004/09/30 10:55:00 CDT
311    Tag: blume-20040930-version
312    Description:
313    
314    * Moved the "version" magic into its own little library under
315      src/system/smlnj/internal.  This avoids expensive reconstruction of
316      a stable src/compiler/core.cm.
317    
318    * At the same time, structure CompilerVersion is now known as
319      structure SMLNJVersion.
320    
321    * Arranged for the version tool to NOT kick in when rebuilding the system
322      (makeml -rebuild, fixpt).  Otherwise one would never reach a fixpoint.
323      Also, loading the versiontool does not work when rebuilding the system
324      because CM is not properly initialized at that time.
325    
326    ----------------------------------------------------------------------
327    Name: Matthias Blume (blume (at) tti - c (dot) org)
328    Date: 2004/09/29 14:00:00 CDT
329    Tag: blume-20040929-autoversion
330    Description:
331    
332    Implemented some CM magic to have
333        file src/compiler/TopLevel/main/version.sml
334    generated automagically.
335    The version is taken from two files: config/version and config/release.
336    The first is expected to contain a two-part version number such as 110.49.
337    The second should contain a single number, but it may be missing.
338    
339    If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
340    time the version tool is loaded (which is the first time you say CMB.make),
341    then the tool will increment the value stored in config/release every
342    time CMB.make is invoked.
343    
344    The binfile format is now insensitive to anything beyond the first
345    two components of a version number, so bumping the release does not render
346    binfiles incompatible.  Auto-bumping can be used to keep track of versions
347    during development without invalidating existing binfiles.
348    
349    In any case, every CMB.make updates the date information in version.sml.
350    (This is the date that is printed in the banner.)
351    
352    ----------------------------------------------------------------------
353    Name: Matthias Blume (blume (at) tti - c (dot) org)
354    Date: 2004/09/28 10:53:00 CDT
355    Tag: blume-20040928-controls
356    Description:
357    
358    Some cleanup of the controls code.
359    
360    ----------------------------------------------------------------------
361    Name: Matthias Blume (blume (at) tti - c (dot) org)
362    Date: 2004/09/27 22:08:00 CDT
363    Tag: blume-20040927-controls
364    Description:
365    
366    Added two pieces of functionality to the Controls interface:
367    
368    1.   val save'restore: 'a control -> unit -> unit
369    
370       grabs the current value of the control in stage 1 and restores it
371       in stage 2.
372    
373    2.   val set' : 'a control * 'a -> unit -> unit
374    
375       stores the given value into the control in stage 2 (i.e., delayed)
376       but does all error checking in stage 1.
377       (This is for string controls that need to do parse their argument --
378        something that might fail.  In some cases, notably in CM, one
379        already knows the intended argument but wants to delay the actual
380        assignment until a time when error recovery would be more difficult.)
381    
382    Changed the handling of controls in tool arguments to classes "sml" and
383    "lazysml":
384       - use Controls.save'restore as a more robust way of restoring the
385         old value (in particular: without having to re-parse the string)
386       - use controls to handle the "overload" keyword in the init group
387         (I believe this change actually fixes a long-standing obscure bug.)
388    
389    ----------------------------------------------------------------------
390    Name: Matthias Blume (blume (at) tti - c (dot) org)
391    Date: 2004/09/27 17:00:00 CDT
392    Tag: blume-20040927-lazysml
393    Description:
394    
395    Added a new tool class called "lazysml" to CM's tool chest.  The only
396    difference to "sml" is that compilation is done with Control.lazysml
397    set to true.  A source of class "lazysml" is automatically recognized
398    by a file name suffix of ".lml".
399    
400    In addition to the above feature, the original class "sml" now also
401    supports a tool argument "lazy" which has the same effect.  As a
402    result, the following three lines are equivalent:
403    
404        foo.sml : lazysml
405        foo.sml : sml (lazy)
406        foo.sml (lazy)
407    
408    The setting goes into effect both during parsing and during
409    compilation.  The original setting is restored right after parsing and
410    after compilation, respectively.
411    
412    In addition to all the above, there is also a general mechanism to set
413    ANY of the "controls" that are available at the command line via
414    "-C..." on a per-sml-file basis.  The same rules that apply for "lazy"
415    apply as well. (In fact, "lazy" is implemented as a special case of
416    the general mechanism.)
417    
418    The .cm file syntax uses a new keyword tool argument called "with".
419    There are several ways of indicating the desired settings:
420    
421        foo.sml (with:parser.quotations=true)
422        foo.sml (with:(name:parser.quotations value:true))
423        foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
424        foo.sml (with:(name1=value1 name2=value2 ...))
425        foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
426    
427        etc.
428    
429    Another possible abbreviation is to leave out the =v or value:v part
430    if the name refers to a boolean control (in which case the value is
431    taken to be true).  Thus, one could get lazy sml also by saying:
432    
433        foo.sml (with:parser.lazy-keyword=true)
434        foo.sml (with:parser.lazy-keyword)
435        foo.sml (with:(name:parser.lazy-keyword value:true))
436        foo.sml (with:(name:parser.lazy-keyword))
437    
438    ----------------------------------------------------------------------
439    Name: Matthias Blume (blume (at) tti - c (dot) org)
440    Date: 2004/09/24 16:22:00 CDT
441    Tag: blume-20040924-ppc-long-branch
442    Description:
443    
444    Turned message about "emiting long form of branch" off by default.
445    Added a control flag to turn it back on when desired.
446    
447    ----------------------------------------------------------------------
448    Name: Matthias Blume (blume (at) tti - c (dot) org)
449    Date: 2004/09/24 16:05:00 CDT
450    Tag: blume-20040924-rounding
451    Description:
452    
453    Applied patch for setting rounding modes under Mac OS X.  Thanks to
454    Melissa O'Neill for providing the code!
455    
456    ----------------------------------------------------------------------
457    Name: Matthias Blume (blume (at) tti - c (dot) org)
458    Date: 2004/09/23 17:30:00 CDT
459    Tag: blume-20040923-envvars
460    Description:
461    
462    1. Changed definition of type ControlRegistry.registry_tree to
463       include control_info (i.e., the name of the controlling environment
464       variable).
465    
466    2. Added command-line flags -e and -E to print the names of environment
467       variables that can be used to control internal settings.
468       (This uses the new API mentioned in 1.)
469    
470    ----------------------------------------------------------------------
471    Name: Matthias Blume (blume (at) tti - c (dot) org)
472    Date: 2004/09/13 16:50:00 CDT
473    Tag: Release_110_49
474    Description:
475    
476    New working version (110.49).  NEW BOOTFILES!
477    
478    ----------------------------------------------------------------------
479    Name: Matthias Blume
480    Date: 2004/09/13 16:20:00 CDT
481    Tag: blume-20040913-config-mlrisc
482    Description:
483    
484    Put target "mlrisc" back into the default list.
485    (There is no harm in having it, and some users have expressed their
486    wish to have "mlrisc" included by default.)
487    
488    ----------------------------------------------------------------------
489    Name: John Reppy
490    Date: 2004/09/13
491    Tag: jhr-20040913-signals
492    Description:
493    
494    Fixed the signal masking code to properly nest mask/unmask operations
495    on a per-signal basis.
496    
497    ----------------------------------------------------------------------
498    Name: Matthias Blume (blume (at) tti - c (dot) org)
499    Date: 2004/09/08 13:20:00 CDT
500    Tag: blume-20040908-heap-magic
501    Description:
502    
503    Bumped the heap macig number to 0x09082004 to account for the changed
504    layout of the ML frame under MacOS X.
505    
506    ----------------------------------------------------------------------
507    Name: Allen Leung (leunga (at) reservoir (dot) com)
508    Date: 2004/09/03 11:26:00 EST
509    Tag: leunga-20040903-cygwin-install
510    Description:
511    
512       Added a patch to _arch-n-opsys to enable the Cygwin runtime.
513    The Cygwin runtime is turned on by setting the environment
514    variable SMLNJ_CYGWIN_RUNTIME to 1.
515    
516    ----------------------------------------------------------------------
517    Name: Matthias Blume (blume (at) tti - c (dot) org)
518    Date: 2004/08/31 17:15:00 CDT
519    Tag: blume-20040831-core
520    Description:
521    
522    Added some exports to src/compiler/core.cm upon request by J. Joemann.
523    
524    ----------------------------------------------------------------------
525    Name: Matthias Blume (blume (at) tti - c (dot) org)
526    Date: 2004/08/30 17:55:00 CDT
527    Tag: blume-20040830-installer
528    Description:
529    
530    Upon request by Johannes Joemann:
531    
532    - improved ML code of installer to fall back to coping when renaming
533      fails (i.e., when source and target are on different file systems);
534      the code compiles but has yet to be tested in anger
535    - removed mlrisc from list of default targets (config/targets)
536    
537    ----------------------------------------------------------------------
538    Name: Matthias Blume (blume (at) tti - c (dot) org)
539    Date: 2004/08/27 17:20:00 CDT
540    Tag: blume-20040827-ptreql
541    Description:
542    
543    Added ptreql primop to structure InlineT (upon request from Larry
544    Paulson).
545    
546    ----------------------------------------------------------------------
547    Name: Allen Leung (leunga (at) reservoir (dot) com)
548    Date: 2004/08/15 21:21:00 EST
549    Tag: leunga-110_48-udgraph
550    Description:
551    
552    Another bug fix from Carl Hauser:
553    
554    diff /net/niflab/smlnj48/src/MLRISC/graphs/udgraph.sml udgraph.sml
555    > 48c48
556    > <              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then es else
557    > e::L)
558    > ---
559    > >              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then L else e::L)
560    > Without this, any deletion of an edge in an undirected graph does severe
561    > violence to the graph.
562    
563    ----------------------------------------------------------------------
564    Name: Allen Leung (leunga (at) reservoir (dot) com)
565    Date: 2004/08/10 23:35:00 EST
566    Tag: leunga-110_48-ppc
567    Description:
568    
569       The IBM/MacOS syntax switch on PPC was incorrectly swapped.
570    
571    ----------------------------------------------------------------------
572    Name: Matthias Blume (blume (at) tti - c (dot) org)
573    Date: 2004/08/10 12:00:00 CDT
574    Tag: Release_110_48
575    Description:
576    
577    New working version (110.48).  NEW BOOTFILES!
578    
579    ----------------------------------------------------------------------
580    Name: Allen Leung (leunga (at) reservoir (dot) com)
581    Date: 2004/08/09 12:21:00 EST
582    Tag: leunga-110_47-dijsktra
583    Description:
584    
585    Bug fix from Carl Hauser:
586    
587    single_source_shortest_paths in dijkstra.sml was observed to get wrong
588    answers (by comparing to single_source_shortest_paths in bellman-ford.sml).
589    
590    The problem is that following the expression A.update(dist,s,Num.zero)
591    it is necessary to update the priority queue using Q.decreaseWeight(Q,s).
592    
593    ----------------------------------------------------------------------
594    Name: Matthias Blume (blume (at) tti - c (dot) org)
595    Date: 2004/08/06 18:10:00 CDT
596    Tag: blume-20040806-cmdline
597    Description:
598    
599    Fiddled with handling of command-line options:
600    
601      * sml now quits after processing the command line
602        if -H, -S, -h<n>, or -s<n> appears as the last
603        command-line argument
604      * a new option -q terminates the session when encountered on
605        the command line; subsequent arguments will be ignored
606      * bug fixes: short (erroneous) arguments are no longer ignored
607        completely
608    
609    ----------------------------------------------------------------------
610    Name: Allen Leung (leunga (at) reservoir (dot) com)
611    Date: 2004/08/04 18:17:00 EST
612    Tag: leunga-110_47-ppc-ibm-asm
613    Description:
614    
615      - Added minimal IBM assembly syntax support for PowerPC.
616    
617      - Cygwin: manually changed the file cygwin.def.  Some exported symbols have
618        been altered in the runtime.  We need an automatic way to keep the file
619        in sync.
620    
621    ----------------------------------------------------------------------
622    Name: Matthias Blume (blume (at) tti - c (dot) org)
623    Date: 2004/08/04 14:00:00 CDT
624    Tag: Release_110_47
625    Description:
626    
627    New working version (110.47).  NEW BOOTFILES!
628    
629    ----------------------------------------------------------------------
630    Name: Matthias Blume (blume (at) tti - c (dot) org)
631    Date: 2004/08/03 14:25:00 CDT
632    Tag: blume-20040803-callingconv
633    Description:
634    
635    Added low-level support for choosing C calling conventions by
636    twiddling the type of rawccall.  (See
637    src/compiler/Semant/types/cproto.sml for details.)
638    
639    ----------------------------------------------------------------------
640    Name: Matthias Blume (blume (at) tti - c (dot) org)
641    Date: 2004/08/02 15:55:00 CDT
642    Tag: blume-20040802-backout
643    Description:
644    
645    Backed out of change to win32-filesys.c.  The earlier patch to
646    get_file_time caused CM to produce files with the wrong time stamp.
647    
648    ----------------------------------------------------------------------
649    Name: Matthias Blume (blume (at) tti - c (dot) org)
650    Date: 2004/08/02 14:45:00 CDT
651    Tag: blume-20040802-nlffi-win32
652    Description:
653    
654    Added NLFFI support for Win32, adapted from a patch provided by David
655    Hansel.  This is currently completely untested.  Also, the issue
656    concerning stdcall vs. ccall is still unresolved.
657    
658    ----------------------------------------------------------------------
659    Name: Matthias Blume (blume (at) tti - c (dot) org)
660    Date: 2004/07/30 17:55:00 CDT
661    Tag: blume-20040730-various
662    Description:
663    
664    Gearing up towards 110.47...
665    
666    - various minor bugfixes to ml-nlffigen
667    - a beginning of a manual for nlffi
668    
669    - eliminated 'export name=value' in config/install.sh as this does
670      not work with certain versions of /bin/sh
671      (Thanks to David King at Motorola for catching this.)
672    
673    - several bugfixes provided or suggested by David Hansel at Reactive Systems:
674      - added a test for tm==NULL to gmtime.c and localtime.c
675      - applied patch for incorrect GetFileTime under win32
676      - toSeconds -> toMilliseconds in Win32/win32-process.sml
677    
678    ----------------------------------------------------------------------
679    Name: Matthias Blume (blume (at) tti - c (dot) org)
680    Date: 2004/07/21 18:20:00 CDT
681    Tag: blume-20040721-nlffigen
682    Description:
683    
684    - Fixed minor issue in ml-nlffigen: Now generate structure T_foo
685      for a typedef to an incomplete type, but leave out the "typ" member.
686      (This is just for consistency.)
687    - Started to produce what is supposed to become better (i.e., comprehensive)
688      documentation of what ml-nlffigen does and produces.
689    
690    ----------------------------------------------------------------------
691    Name: Matthias Blume (blume (at) tti - c (dot) org)
692    Date: 2004/07/14 16:25:00 CDT
693    Tag: blume-20040714-union
694    Description:
695    
696    Added C_UNION to c-calls/c-types.sml and updated the machinery
697    (ml-nlffigen, cproto.sml) that conveys C function interface
698    information to the code generator.
699    
700    However, the actual architecture-specific implementation of function
701    arguments and results that are C unions is still not implemented.
702    
703    ----------------------------------------------------------------------
704    Name: Allen Leung (leunga (at) reservoir (dot) com)
705    Date: 2004/07/14 14:38:00 EST
706    Tag: leunga-110_46_1-ppc-lwzu
707    Description:
708    
709        Added these instructions to the PowerPC architecture:
710        LBZU(X), LHZU(X), LWZU(X),
711        STWU(X), STFDU, STFSU
712    
713        etc...
714    
715        Note: I haven't added their instruction encoding into the description.
716    
717    ----------------------------------------------------------------------
718    Name: Allen Leung (leunga (at) reservoir (dot) com)
719    Date: 2004/07/13 15:04:00 EST
720    Tag: leunga-110_46_1-ppc-lwarx
721    Description:
722    
723       Added the two instructions LWARX and STWCX to the PowerPC
724    instruction set.
725    
726       A (untested) rewrite of loop-structure.sml.  The old version
727    is completely broken.
728    
729    ----------------------------------------------------------------------
730    Name: Matthias Blume (blume (at) tti - c (dot) org)
731    Date: 2004/07/13 13:50:00 CDT
732    Tag: blume-20040713-nlffi
733    Description:
734    
735    - use paramAlloc to report c-calls with too many arguments
736      (for PPC version where parameter area is pre-allocated)
737    - added ccall_maxargspace to machspec (to implement the above)
738    - made "make" commend in CM's "make" tool configurable
739    - added option (default: on) for passing the name of the SML/NJ's "bin"
740      directory to "make"; the call looks like this:
741    
742         make <options> SMLNJ_BINDIR=<dir> <target>
743    
744      This can be used by the Makefile to, e.g., pick the "right" version
745      of ml-nlffigen.
746    - minor code tweaks
747    
748    ----------------------------------------------------------------------
749    Name: Matthias Blume (blume (at) tti - c (dot) org)
750    Date: 2004/07/12 22:50:00 CDT
751    Tag: blume-110_46_1-macosx-nlffi
752    Description:
753    
754    NLFFI under Mac OS X now working (sort of).  This is largely untested,
755    though.
756    
757    Note:  1. You have to make a new, clean build of the runtime system.
758           2. There are new BOOTFILES, you have to use them!
759              (Doing the bootstrap process yourself would be *very* painful!
760               If you absolutely have to do it, build the system under
761               a different architecture and then cross-compile.)
762    
763    Version bumped to 110.46.1 to account for runtime data format changes.
764    
765    ----------------------------------------------------------------------
766    Name: Matthias Blume (blume (at) tti - c (dot) org)
767    Date: 2004/06/18 14:30:00 CDT
768    Tag: blume-20040618-unix
769    Description:
770    
771    Changed the implementation of structure Unix so that the same stream
772    is returned every time one of the {text,bin}{In,Out}streamOf functions
773    is invoked on the same proc.  This is not what the spec currently
774    says -- although IMO it arguably should.  (See discussion below.)
775    
776    ----------------------------------------------------------------------
777    Name: Matthias Blume (blume (at) tti - c (dot) org)
778    Date: 2004/06/17 18:15:00 CDT
779    Tag: Release_110_46
780    Description:
781    
782    New working version (110.46).  NEW BOOTFILES!
783    
784    ----------------------------------------------------------------------
785    Name: Matthias Blume (blume (at) tti - c (dot) org)
786    Date: 2004/06/17 17:20:00 CDT
787    Tag: blume-20040617-timer-unix
788    Description:
789    
790    Changed the interface of structures Timer and Unix to match the most
791    recent Basis spec.
792    
793    In the case of Unix there still seems to be an open/weird issue:
794    
795       The {text,bin}{In,Out}streamOf functions are supposed to create
796       fresh streams whenever they are called -- as opposed to have them
797       return the same stream every time.  This design is supposed to
798       prevent space leaks caused by proc values hanging on to streams.
799    
800       The reap function, on the other hand, is supposed to close the
801       streams.  This cannot be done without having a handle on the
802       stream in proc after all...
803    
804    I took the liberty to implement the following stopgap solution:
805    
806      The proc value hangs on to the most recently created stream(s).
807      Reap closes those.  If either or both of the two streams hadn't
808      been created at all yet, then reap will close the corresponding
809      file descriptors directly.
810    
811    PS: I don't understand the original space leak argument anymore.  If
812    a proc hangs on to the imperative stream, then I/O operations on those
813    will advance the state of the cached stream and avoid the space leak.
814    
815    ----------------------------------------------------------------------
816    Name: Matthias Blume (blume (at) tti - c (dot) org)
817    Date: 2004/05/28 16:45:00 CDT
818    Tag: blume-20040528-basis
819    Description:
820    
821    Added signature PACK_REAL and exported functor PrimIO.
822    
823    ----------------------------------------------------------------------
824    Name: Matthias Blume (blume (at) tti - c (dot) org)
825    Date: 2004/05/25 16:00:00 CDT
826    Tag: blume-20040525-group-owner
827    Description:
828    
829    CM now ignores (but still accepts) the "owner" information in group
830    descriptions.  The owner of a group is its next enclosing
831    library. Each group must have a unique owner.  (There is a virtual
832    "toplevel" library that owns groups which are not nested within a real
833    library.)  Previously, each group had to explicitly declare its owner,
834    and CM would check that such a declaration is correct.  The new scheme
835    is to have CM check that for each group there is precisely one owning
836    library.
837    
838    The advantage of the new scheme is that the programmer no longer needs
839    to maintain the somewhat annoying owner information.  The downside is
840    that CM cannot enforce the ownership rule across multiple runs of
841    CM.make.  Fortunately, enclosing the same group in two different
842    libraries A and B which are not part of the same program does not
843    cause real problems.
844    
845    ----------------------------------------------------------------------
846    Name: Matthias Blume (blume (at) tti - c (dot) org)
847    Date: 2004/05/20 16:00:00 CDT
848    Tag: blume-20040520-win32
849    Description:
850    
851    Made the win32 version work again.  (Strangely, a misplaced comma had
852    slipped into win32-process.c which prevented the runtime from being
853    compiled correctly.)
854    
855    Also, included a minor addition to ml-build.bat analogous to what was
856    done in blume-20040519-ml-build.
857    
858    ----------------------------------------------------------------------
859    Name: Matthias Blume (blume (at) tti - c (dot) org)
860    Date: 2004/05/19 22:10:00 CDT
861    Tag: blume-20040519-ml-build
862    Description:
863    
864    Arranged for ml-build to clean up after itself a little bit better.
865    The script generates a temporary SML source file and compiles it using
866    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
867    gets rid of those at the end, so they don't accumulate under .cm.
868    
869    This required a minor change to install.sh because the name of the
870    metadata directory (default: .cm) is actually configurable at
871    installation time.
872    
873    ----------------------------------------------------------------------
874    Name: Matthias Blume (blume (at) tti - c (dot) org)
875    Date: 2004/05/18 15:50:00 CDT
876    Tag: blume-20040518-mkreader
877    Description:
878    
879    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
880    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
881    
882    ----------------------------------------------------------------------
883    Name: Matthias Blume (blume (at) tti - c (dot) org)
884    Date: 2004/05/11 14:35:00 CDT
885    Tag: blume-20040511-win32sock
886    Description:
887    
888    Added previously missing support for many socket-related functions
889    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
890    for the voluminous patch!
891    
892    (I have not tested this patch under win32 yet.)
893    
894    Here is David's e-mail:
895    
896    Hi,
897    
898    Attached to this email you find a diff against sml/nj 110.45
899    that will enable socket support under Windows.
900    
901    To apply the patch (using unix or cygwin)
902    1) gunzip runtime.diff.gz
903    2) "cd" into "src/runtime" in the source tree of a fresh
904       110.45 installation.
905    3) patch -p 1 < [your/path/to]runtime.diff
906    
907    The code compiles fine but has NOT yet been extensively tested.
908    I only ran a few tests for basic socket client functionality
909    (which worked fine).  Especially the functions that use ioctl
910    are not tested at all and might not work (see below).
911    
912    I implemented this since we want to move to a newer version of sml/nj
913    but need socket support in order to use it.  This is the first time I
914    even had a look at the sml/nj source,  so please review my changes
915    before making this part of the distribution!  Here are a few issues
916    that I think might be better for someone to solve who is more
917    familiar with the sml/nj source (and socket programming):
918    
919    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
920      exception since I could not figure out what the windows equivalent
921      of these functions is
922    
923    - In sockets-osdep.h there are a some #include statements that are
924      only used in a few files that include sockets-osdep.h
925    
926    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
927      does not process its return value since I don't know how to
928      report an error upwards.
929    
930    - It would probably be good to have a call to WSACleanup() when
931      the library is unloaded (if there is such a possibility).
932      Otherwise I think Windows will take care of this automatically
933      when the process finishes.
934    
935    - I used ioctlsocket() as a replacement for ioctl() but I have
936      no idea if that is actually the proper replacement on Windows.
937    
938    - All these issues are marked in the code by "FIXME" comments.
939    
940    We use sml/nj extensively in our products and are quite happy
941    with it.  I hope this contribution will help you.
942    
943    Keep up the good work!
944    
945    David
946    
947    ----------------------------------------------------------------------
948    Name: Matthias Blume (blume (at) tti - c (dot) org)
949    Date: 2004/05/11 14:20:00 CDT
950    Tag: blume-20040511-installml
951    Description:
952    
953    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
954    the patch.)
955    
956    ----------------------------------------------------------------------
957    Name: Matthias Blume (blume (at) tti - c (dot) org)
958    Date: 2004/05/11 14:05:00 CDT
959    Tag: blume-20040511-nlffi-netbsd
960    Description:
961    
962    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
963    the patch.)
964    
965    ----------------------------------------------------------------------
966    Name: Matthias Blume (blume (at) tti - c (dot) org)
967    Date: 2004/05/11 12:05:00 CDT
968    Tag: blume-20040511-exports
969    Description:
970    
971    As per request by Adam Chlipala <adam@hcoop.net>, extended various
972    export lists in compiler-related .cm-files.
973    
974    ----------------------------------------------------------------------
975    Name: Matthias Blume (blume (at) tti - c (dot) org)
976    Date: 2004/05/11 11:35:00 CDT
977    Tag: blume-20040511-allsource
978    Description:
979    
980    The installer now honors the "src-smlnj" target again, although its meaning
981    has changed from "all sources required for the compiler" to "all sources
982    the installer knows about".  In other words, if you enable "src-smlnj"
983    in the "targets" file, then the installer will pull in sources for
984    everything.  (Notice that this refers to source code only.  Compiled
985    code is still only installed for modules that were requested explicitly
986    or which are required for other modules that were requested explicitly.)
987    
988    ----------------------------------------------------------------------
989    Name: Matthias Blume (blume (at) tti - c (dot) org)
990    Date: 2004/04/23 17:40:00 CDT
991    Tag: blume-20040423-ieee-scan
992    Description:
993    
994    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
995    in the exponent calculation we get INF or ZERO (depending on the mantissa
996    and the sign of the exponent).
997    
998    ----------------------------------------------------------------------
999    Name: Matthias Blume (blume (at) tti - c (dot) org)
1000    Date: 2004/04/23 10:40:00 CDT
1001    Tag: blume-20040423-ml-build
1002    Description:
1003    
1004    The ml-build script now terminates with a non-0 status when something
1005    goes wrong.
1006    
1007    ----------------------------------------------------------------------
1008    Name: Matthias Blume (blume (at) tti - c (dot) org)
1009    Date: 2004/04/22 16:35:00 CDT
1010    Tag: blume-20040422-Option
1011    Description:
1012    
1013    Made exception Option to be the same as exception Option.Option
1014    (as it should be).
1015    
1016    ----------------------------------------------------------------------
1017    Name: Allen Leung (leunga (at) reservoir (dot) com)
1018    Date: 2004/03/19 14:40:00 EST
1019    Tag: leunga-20040319-cygwin-nlffi
1020    Description:
1021    
1022    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
1023    of SML/NJ.  The problem is that
1024    
1025       lib = dlopen(NULL, ...)
1026       f   = dlsym(lib, "malloc");
1027    
1028    does not work on Windows unless we explicitly export symbols
1029    such as 'malloc' during linking.  We fixed this by explicitly
1030    exporting the required symbols with the magic gcc incantation:
1031    
1032        -Wl,--export-all cygwin.def
1033    
1034    where cygwin.def is a file containing all the symbols that
1035    we wish to export.
1036    
1037    I suspect this is a Windows problem and we'll have to
1038    do the same (somehow with windows compilers) when
1039    we build the native win32 version with the system
1040    calls LoadLibrary/GetProcAddress.
1041    
1042    ----------------------------------------------------------------------
1043    Name: Matthias Blume (blume (at) tti - c (dot) org)
1044    Date: 2004/03/04 16:35:00 CST
1045    Tag: blume-20040304-intinf-fmt
1046    Description:
1047    
1048    Fixed problem with IntInf.fmt (sign would show up on the right instead
1049    of on the left for BIN, OCT, and HEX).
1050    
1051    ----------------------------------------------------------------------
1052    Name: Matthias Blume (blume (at) tti - c (dot) org)
1053    Date: 2004/03/04 11:25:00 CST
1054    Tag: blume-20040304-symlinks
1055    Description:
1056    
1057    Fixed problem with installer script (unix only) where bin/ml-yacc and
1058    friends pointed (via symlinks) to absolute locations instead of just
1059    .run-sml.  This was reported by Vesa A Norrman.
1060    
1061    ----------------------------------------------------------------------
1062    Name: Matthias Blume (blume (at) tti - c (dot) org)
1063    Date: 2004/02/13 14:50:00 CST
1064    Tag: Release_110_45
1065    Description:
1066    
1067    New working version (110.45). New bootfiles.
1068    
1069    ----------------------------------------------------------------------
1070    Name: Matthias Blume (blume (at) tti - c (dot) org)
1071    Date: 2004/01/26 15:15:15 CST
1072    Tag: blume-20040126-toplevel
1073    Description:
1074    
1075    Improved handling of exceptions at the interactive toplevel.
1076    
1077    ----------------------------------------------------------------------
1078    Name: Matthias Blume (blume (at) tti - c (dot) org)
1079    Date: 2004/01/26 11:25:00
1080    Tag: blume-20040126-app
1081    Description:
1082    
1083    Type of top-level "app" corrected.
1084    Added code for setting vp_limitPtrMask to Win32-specific runtime.
1085    
1086    ----------------------------------------------------------------------
1087    Name: Matthias Blume (blume (at) tti - c (dot) org)
1088    Date: 2003/11/18 17:10 CST
1089    Tag: blume-20031118-basis-fiddle
1090    Description:
1091    
1092    - changed Timer interface to what might become the spec
1093    - POSIX_FLAGS -> BIT_FLAGS according to spec
1094    - some other minor discrepancies wrt. spec eliminated
1095    
1096    ----------------------------------------------------------------------
1097    Name: Matthias Blume (blume (at) tti - c (dot) org)
1098    Date: 2003/11/06 12:00:00 CST
1099    Tag: Release_110_44
1100    Description:
1101    
1102    New working version (110.44). New bootfiles.
1103    
1104    ----------------------------------------------------------------------
1105    Name: Matthias Blume (blume (at) tti - c (dot) org)
1106    Date: 2003/11/04 11:50:00 CST
1107    Tag: blume-20031104-move-libraries
1108    Description:
1109    
1110    Eliminated the "dont_move_libraries" directive in config/targets.
1111    (The mechanism was broken and could not be fixed easily.  Moreover,
1112    there does not seem to be any reason not to move all libraries into
1113    lib during installation.  I originally implemented this directive as a
1114    backward-compatibility feature when I first introduced the new CM.
1115    Now that things have been stable for a long time and going back to the
1116    old CM is not an option, there is no reason to keep it around.)
1117    
1118    ----------------------------------------------------------------------
1119    Name: Matthias Blume (blume (at) tti - c (dot) org)
1120    Date: 2003/11/03 16:00:00 CST
1121    Tag: blume-20031103-installdir
1122    Description:
1123    
1124    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
1125    Richards for pointing out the problem and providing the solution.)
1126    
1127    ----------------------------------------------------------------------
1128    Name: Matthias Blume (blume (at) tti - c (dot) org)
1129    Date: 2003/10/01 17:05:00 CDT
1130    Tag: blume-20031001-lal-mlrisc
1131    Description:
1132    
1133    MLRISC bug fix from Lal.
1134    
1135    ----------------------------------------------------------------------
1136    Name: Matthias Blume (blume (at) tti - c (dot) org)
1137    Date: 2003/09/30 16:10:00 CDT
1138    Tag: blume-20030930-primio-bat
1139    Description:
1140    
1141    1. Added openVector, nullRd, and nullWr to PRIM_IO.
1142    2. Improved .bat files (for Win32 port) to make things work under Win95.
1143       (thanks to Aaron S. Hawley for this one)
1144    
1145    ----------------------------------------------------------------------
1146    Name: Matthias Blume (blume (at) tti - c (dot) org)
1147    Date: 2003/09/26 16:05:00 CDT
1148    Tag: blume-20030926-wrappriv
1149    Description:
1150    
1151    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
1152    
1153    ----------------------------------------------------------------------
1154    Name: Matthias Blume (blume (at) tti - c (dot) org)
1155    Date: 2003/09/26 15:00:00 CDT
1156    Tag: blume-20030926-110_43_3
1157    Description:
1158    
1159    - additional cleanup
1160    - version number bump, NEW BOOTFILES
1161    
1162    ----------------------------------------------------------------------
1163    Name: Matthias Blume (blume (at) tti - c (dot) org)
1164    Date: 2003/09/26 12:00:00 CDT
1165    Tag: blume-20030926-ppautoload
1166    Description:
1167    
1168    I modified the read-eval-print loop so that the autoloader gets
1169    invoked whenever the prettyprinter tries to look up a symbol that
1170    is not currently defined in the toplevel environment but which
1171    appears in CM's autoload registry.  As a result, we see far fewer of
1172    those ?.Foo.Bar.xxx names in the prettyprinter's output.
1173    
1174    In addition to this I tried to clean up some pieces of the Basis
1175    implementation (e.g., Socket, Word8Array) in order to prevent other
1176    instances of these ?.Foo.Bar.xxx names from being printed.
1177    
1178    The mechanism that picks names for types still needs some work, though.
1179    (Right now it seems that if there is a type A.t which is defined to
1180    be B.u, but B is unavailable at toplevel, then A.t gets printed as
1181    "?.B.u" although the perhaps more sensible solution would be to use
1182    "A.t" in this case.  In other words, the prettyprinter should follow
1183    a chain of DEFtycs not farther than there are corresponding toplevel
1184    names in the current environment.)
1185    
1186    ----------------------------------------------------------------------
1187    Name: Matthias Blume (blume (at) tti - c (dot) org)
1188    Date: 2003/09/24 16:31:00 CDT
1189    Tag: blume-20030924-installer
1190    Description:
1191    
1192    Another installer tweak:  All the ML code for the installer is now
1193    compiled during CMB.make and put into a little library called
1194    $smlnj/installer.cm.  The installation then simply invokes
1195    
1196       sml -m $smlnj/installer.cm
1197    
1198    and everything happens automagically.
1199    
1200    Win32:  ML code senses value of environment variable SMLNJ_HOME.
1201    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
1202            and BINDIR.
1203    
1204    The new scheme guarantees that the ML code responsible for the installation
1205    is in sync with the APIs of the main system.  Also, the installer is
1206    somewhat faster because the installer script is precompiled.
1207    
1208    ----------------------------------------------------------------------
1209    Name: Matthias Blume (blume (at) tti - c (dot) org)
1210    Date: 2003/09/24 15:35:00 CDT
1211    Tag: blume-20030924-synsock
1212    Description:
1213    
1214    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
1215    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
1216    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
1217    implementations of non-blocking operations from CML's Socket
1218    structure.
1219    
1220    ----------------------------------------------------------------------
1221  Name: Matthias Blume (blume (at) tti - c (dot) org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
1222  Date: 2003/09/24 15:10:05 CDT  Date: 2003/09/24 15:10:05 CDT
1223  Tag: blume-20030924-sockets  Tag: blume-20030924-sockets

Legend:
Removed from v.1389  
changed lines
  Added in v.1686

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