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 1011, Thu Jan 10 20:22:04 2002 UTC revision 1078, Tue Feb 19 21:26:48 2002 UTC
# Line 11  Line 11 
11  Date: yyyy/mm/dd  Date: yyyy/mm/dd
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    
15    ----------------------------------------------------------------------
16    Name: Matthias Blume
17    Date: 2002/02/19 16:20:00 EST
18    Tag: blume-20020219-cmffi
19    Description:
20    
21    A wild mix of changes, some minor, some major:
22    
23    * All C FFI-related libraries are now anchored under $c:
24        $/c.cm      --> $c/c.cm
25        $/c-int.cm  --> $c/internals/c-int.cm
26        $/memory.cm --> $c/memory/memory.cm
27    
28    * "make" tool (in CM) now treats its argument pathname slightly
29      differently:
30        1. If the native expansion is an absolute name, then before invoking
31           the "make" command on it, CM will apply OS.Path.mkRelative
32           (with relativeTo = OS.FileSys.getDir()) to it.
33        2. The argument will be passed through to subsequent phases of CM
34           processing without "going native".  In particular, if the argument
35           was an anchored path, then "make" will not lose track of that anchor.
36    
37    * Compiler backends now "know" their respective C calling conventions
38      instead of having to be told about it by ml-nlffigen.  This relieves
39      ml-nlffigen from one of its burdens.
40    
41    * The X86Backend has been split into X86CCallBackend and X86StdCallBackend.
42    
43    * Export C_DEBUG and C_Debug from $c/c.cm.
44    
45    * C type encoding in ml-nlffi-lib has been improved to model the conceptual
46      subtyping relationship between incomplete pointers and their complete
47      counterparts.  For this, ('t, 'c) ptr has been changed to 'o ptr --
48      with the convention of instantiating 'o with ('t, 'c) obj whenever
49      the pointer target type is complete.  In the incomplete case, 'o
50      will be instantiated with some "'c iobj" -- a type obtained by
51      using one of the functors PointerToIncompleteType or PointerToCompleteType.
52    
53      Operations that work on both incomplete and complete pointer types are
54      typed as taking an 'o ptr while operations that require the target to
55      be known are typed as taking some ('t, 'c) obj ptr.
56    
57      voidptr is now a bit "more concrete", namely "type voidptr = void ptr'"
58      where void is an eqtype without any values.  This makes it possible
59      to work on voidptr values using functions meant to operate on light
60      incomplete pointers.
61    
62    * As a result of the above, signature POINTER_TO_INCOMPLETE_TYPE has
63      been vastly simplified.
64    
65    ----------------------------------------------------------------------
66    Name: Matthias Blume
67    Date: 2002/02/19 10:48:00 EST
68    Tag: blume-20020219-pqfix
69    Description:
70    
71    Applied Chris Okasaki's bug fix for priority queues.
72    
73    ----------------------------------------------------------------------
74    Name: Matthias Blume
75    Date: 2002/02/15 17:05:00
76    Tag: Release_110_39
77    Description:
78    
79    Last-minute retagging is becoming a tradition... :-(
80    
81    This is the working release 110.39.
82    
83    ----------------------------------------------------------------------
84    Name: Matthias Blume
85    Date: 2002/02/15 16:00:00 EST
86    Tag: Release_110_39-orig
87    Description:
88    
89    Working release 110.39.  New bootfiles.
90    
91    (Update: There was a small bug in the installer so it wouldn't work
92    with all shells.  So I retagged. -Matthias)
93    
94    ----------------------------------------------------------------------
95    Name: Matthias Blume
96    Date: 2002/02/15 14:17:00 EST
97    Tag: blume-20020215-showbindings
98    Description:
99    
100    Added EnvRef.listBoundSymbols and CM.State.showBindings.  Especially
101    the latter can be useful for exploring what bindings are available at
102    the interactive prompt.  (The first function returns only the list
103    of symbols that are really bound, the second prints those but also the
104    ones that CM's autoloading mechanism knows about.)
105    
106    ----------------------------------------------------------------------
107    Name: Matthias Blume
108    Date: 2002/02/15 12:08:00 EST
109    Tag: blume-20020215-iptrs
110    Description:
111    
112    Two improvements to ml-nlffigen:
113    
114      1. Write files only if they do not exist or if their current contents
115         do not coincide with what's being written.  (That is, avoid messing
116         with the time stamps unless absolutely necessary.)
117    
118      2. Implement a "repository" mechanism for generated files related
119         to "incomplete pointer types".   See the README file for details.
120    
121    ----------------------------------------------------------------------
122    Name: Matthias Blume
123    Date: 2002/02/14 11:50:00 EST
124    Tag: blume-20020214-quote
125    Description:
126    
127    Added a type 't t_' to tag.sml (in ml-nlffi-lib.cm).  This is required
128    because of the new and improved tag generation scheme.  (Thanks to Allen
129    Leung for pointing it out.)
130    
131    ----------------------------------------------------------------------
132    Name: Lal George
133    Date: 2002/02/14 09:55:27 EST 2002
134    Tag: george-20020214-isabelle-bug
135    Description:
136    
137    Fixed the MLRISC bug sent by Markus Wenzel regarding the compilation
138    of Isabelle on the x86.
139    
140    From Allen:
141    -----------
142     I've found the problem:
143    
144         in ra-core.sml, I use the counter "blocked" to keep track of the
145         true number of elements in the freeze queue.  When the counter goes
146         to zero, I skip examining the queue.  But I've messed up the
147         bookkeeping in combine():
148    
149             else ();
150             case !ucol of
151               PSEUDO => (if !cntv > 0 then
152                     (if !cntu > 0 then blocked := !blocked - 1 else ();
153                                        ^^^^^^^^^^^^^^^^^^^^^^^
154                      moveu := mergeMoveList(!movev, !moveu)
155                     )
156                  else ();
157    
158         combine() is called to coalesce two nodes u and v.
159         I think I was thinking that if the move counts of u and v are both
160         greater than zero then after they are coalesced then one node is
161         removed from the freeze queue.  Apparently I was thinking that
162         both u and v are of low degree, but that's clearly not necessarily true.
163    
164    
165    02/12/2002:
166        Here's the patch.  HOL now compiles.
167    
168        I don't know how this impact on performance (compile
169        time or runtime).  This bug caused the RA (especially on the x86)
170        to go thru the potential spill phase when there are still nodes on the
171        freeze queue.
172    
173    
174    
175    
176    ----------------------------------------------------------------------
177    Name: Matthias Blume
178    Date: 2002/02/13 22:40:00 EST
179    Tag: blume-20020213-fptr-rtti
180    Description:
181    
182    Fixed a bug in ml-nlffigen that was introduced with one of the previous
183    updates.
184    
185    ----------------------------------------------------------------------
186    Name: Matthias Blume
187    Date: 2002/02/13 16:41:00 EST
188    Tag: blume-20020213-cmlpq
189    Description:
190    
191    Added new priority queue export symbols (which have just been added to
192    smlnj-lib.cm) to CML's version of smlnj-lib.cm.  (Otherwise CML would
193    not compile and the installer would choke.)
194    
195    ----------------------------------------------------------------------
196    Name: Matthias Blume
197    Date: 2002/02/13 16:15:00 EST
198    Tag: blume-20020213-various
199    Description:
200    
201    1. More tweaks to ml-nlffigen:
202    
203       - better internal datastructures (resulting in slight speedup)
204       - "-match" option requires exact match
205       - "localized" gensym counters (untagged structs/unions nested within
206         other structs/unions or within typedefs get a fresh counter; their
207         tag will be prefixed by a concatenation of their parents' tags)
208       - bug fixes (related to calculation of transitive closure of types
209         to be included in the output)
210    
211    2. Minor Basis updates:
212    
213       - added implementations for List.collate and Option.app
214    
215    ----------------------------------------------------------------------
216    Name: Matthias Blume
217    Date: 2002/02/11 15:55:00 EST
218    Tag: blume-20020211-gensym
219    Description:
220    
221    Added a "-gensym" option to command line of ml-nlffigen.  This can be
222    used to specify a "stem" -- a string that is inserted in all "gensym'd"
223    names (ML structure names that correspond to unnamed C structs, unions,
224    and enums), so that separate runs of ml-nlffigen do not clash.
225    
226    ----------------------------------------------------------------------
227    Name: Matthias Blume
228    Date: 2002/02/11 12:05:00 EST
229    Tag: blume-20020211-gensml
230    Description:
231    
232    A quick fix for a problem with GenSML (in the pgraph-util library):
233    Make generation of toplevel "local" optional.  (Strictly speaking,
234    signature definitions within "local" are not legal SML.)
235    
236    Other than that: updates to INSTALL and cm/TODO.
237    
238    ----------------------------------------------------------------------
239    Name: Matthias Blume
240    Date: 2002/02/08 15:00:00 EST
241    Tag: blume-20020208-uniquepid
242    Description:
243    
244    0. Version number has been bumped to 110.38.1.  NEW BOOTFILES!!!
245    
246    1. The installer (config/install.sh) has gotten smarter:
247    
248         - Configuration options are a bit easier to specify now
249           (in config/targets).
250         - Bug in recognizing .tar.bz2 files fixed.
251         - Installer automatically resolves dependencies between
252           configuration options (e.g., if you ask for eXene, you will
253           also get cml -- regardless whether you asked for it or not).
254         - Installer can run in "quieter mode" by setting the environment
255           variable INSTALL_QUIETLY to "true".  "Quieter" does not mean
256           "completely silent", though.
257         - Build HashCons library as part of smlnj-lib.
258    
259    2. A new scheme for assigning persistent identifiers to compilation
260       units (and, by extension, to types etc.) has been put into place.
261       This fixes a long-standing bug where types and even dynamic values
262       can get internally confused, thereby compromising type safety
263       (abstraction) and dynamic correctness.  See
264    
265         http://cm.bell-labs.com/cm/cs/who/blume/pid-confusion.tgz
266    
267       for an example of how things could go wrong until now.
268    
269       The downside of the new scheme is that pids are not quite as
270       persistent as they used to be: CM will generate a fresh pid
271       for every compilation unit that it thinks it sees for the first
272       time.  That means that if you compile starting from a clean, fresh
273       source tree at two different times, you end up with different
274       binaries.
275    
276       Cutoff recompilation, however, has not been compromised because
277       CM keeps pid information in special caches between runs.
278    
279    ----------------------------------------------------------------------
280    Name: Lal George
281    Date: 2002/02/07 15:34:13 EST 2002
282    Tag: <none>
283    Description:
284    
285    Compilers that generate assembly code may produce  global labels
286    whose value is resolved at link time. The various peephole optimization
287    modules did not take this in account.
288    
289    TODO. The Labels.addrOf function should really return an option
290    type so that clients are forced to deal with this issue, rather
291    than an exception being raised.
292    
293    ----------------------------------------------------------------------
294    Name: Lal George
295    Date: 2002/02/06 13:55:02 EST
296    Tag: george-20020206-ra-breakup
297    Description:
298    
299    1. A bug fix from Allen.
300    
301        A typo causes extra fstp %st(0)'s to be generated at compensation
302        edges, which might cause stack underflow traps at runtime.  This
303        occurs in fft where there are extraneous fstps right before the 'into'
304        trap instruction (in this case they are harmless since none of the
305        integers overflow.)
306    
307    2. Pulled out various utility modules that were embedded in the modules
308       of the register allocator. I need these modules for other purposes, but
309       they are not complete enough to put into a library (just yet).
310    ----------------------------------------------------------------------
311    Name: Matthias Blume
312    Date: 2002/01/31 16:05:00 EST
313    Tag: blume-20020131-sparc-ccalls
314    Description:
315    
316    1. C-calls on Sparc needlessly allocated a huge chunk (96 bytes)
317       of extra stack space by mistake.  Fixed.
318    
319    2. Bug in logic of handling of command-line options in ml-nlffigen fixed.
320    
321    ----------------------------------------------------------------------
322    Name: Allen Leung
323    Date: 2002/01/30
324    Tag: leunga-20020130-nowhere-bug-fix
325    Description:
326    
327       MLRISC bug fixes:
328       1. Fixed a bindings computation bug in the 'nowhere' program generator tool.
329       2. MachineInt.fromString was negating its value.
330    
331    ----------------------------------------------------------------------
332    Name: Matthias Blume
333    Date: 2002/01/29
334    Tag: blume-20020129-INSTALL
335    Description:
336    
337    - Added somewhat detailed installation instructions (file INSTALL).
338    - Fixed curl-detection bug in config/install.sh.
339    - It is now possible to select the URL getter using the URLGETTER
340      environment variable:
341    
342          not set / "unknown"      --> automatic detection (script tries wget,
343                                       curl, and lynx)
344          "wget" / "curl" / "lynx" --> use the specified program (script "knows"
345                                       how to properly invoke them)
346          other                    --> use $URLGETTER directly, it must take
347                                       precisely two command-line arguments
348                                       (source URL and destination file name)
349    
350    ----------------------------------------------------------------------
351    Name: Matthias Blume
352    Date: 2002/01/28
353    Tag: blume-20020128-sparc-ccalls
354    Description:
355    
356    - Fixed problem with calculation of "used" registers in sparc-c-calls.
357    - Make use of the allocParam argument in sparc-c-calls.
358    
359    ----------------------------------------------------------------------
360    Name: Matthias Blume
361    Date: 2002/01/28
362    Tag: blume-20020128-allocParam
363    Description:
364    
365    John Reppy:  Changes c-calls API to accept client-callback for
366    allocating extra stack space.
367    me: Corresponding changes to mlriscGen (using a dummy argument that
368        does not change the current behavior).
369    
370    ----------------------------------------------------------------------
371    Name: Matthias Blume
372    Date: 2002/01/28 12:00:00
373    Tag: Release_110_38
374    Description:
375    
376    This time for real!!!
377    
378    ----------------------------------------------------------------------
379    Name: Matthias Blume
380    Date: 2002/01/28 10:56:00 EST
381    Tag: blume-20020128-retraction
382    Description:
383    
384    0. Retracted earlier 110.38.  (The Release_110_38 tag has been replaced
385       with blume-Release_110_38-retracted.)
386    
387    1. Fixed a problem with incorrect rounding modes in real64.sml.
388       (Thanks to Andrew Mccreight <andrew.mccreight@yale.edu>.)
389    
390    2. A bug in ml-nlffigen related to the handling of unnamed structs, unions,
391       and enums fixed.  The naming of corresponding ML identifiers should
392       now be consistent again.
393    
394    ----------------------------------------------------------------------
395    Name: Allen Leung
396    Date: 2002/01/27
397    Tag: leunga-20020127-nowhere
398    Description:
399    
400       Added a target called nowhere in the configuration scripts.
401       Enabling this will build the MLRISC 'nowhere' tool (for translating
402       programs with where-clauses into legal SML code) during installation.
403    
404    ----------------------------------------------------------------------
405    Name: Matthias Blume
406    Date: 2002/01/25 21:27:00 EST
407    Tag: blume-Release_110_38-retracted
408    Description:
409    
410    Call it a (working) release!  Version is 110.38. Bootfiles are ready.
411    
412    README will be added later.
413    
414    !!! NOTE:  Re-tagged as blume-Release_110_38-retracted. Original tag
415    (Release_110_38) removed.  Reason: Last-minute bug fixes.
416    
417    ----------------------------------------------------------------------
418    Name: Matthias Blume
419    Date: 2002/01/25
420    Tag: blume-20020125-ffi
421    Description:
422    
423    A large number of tweaks and improvements to ml-nlffi-lib and
424    ml-nlffigen:
425    
426       - ML represenation types have been streamlined
427       - getter and setter functions work with concrete values, not abstract
428         ones where possible
429       - ml-nlffigen command line more flexible (see README file there)
430       - some bugs have been fixed (hopefully)
431    
432    ----------------------------------------------------------------------
433    Name: Lal George
434    Date: 2002/01/24
435    Tag: george-20020124-risc-ra-interface
436    Description:
437    
438       There is a dramatic simplification in the interface to the
439       register allocator for RISC architectures as a result of making
440       parallel copy instructions explicit.
441    
442    ----------------------------------------------------------------------
443    Name: Matthias Blume
444    Date: 2002/01/22
445    Tag: blume-20020122-x86-ccalls
446    Description:
447    
448    Bug fix for c-calls on x86 (having to do with how char- and
449    short-arguments are being handled).
450    
451    ----------------------------------------------------------------------
452    Name: Matthias Blume
453    Date: 2002/01/21
454    Tag: blume-20020121-ff
455    Description:
456    
457    Another day of fiddling with the FFI...
458    
459    1. Bug fix/workaround:  CKIT does not complain about negative array
460       dimensions, so ml-nlffigen has to guard itself against this possibility.
461       (Otherwise a negative dimension would send it into an infinite loop.)
462    
463    2. Some of the abstract types (light objects, light pointers, most "base"
464       types) in structure C are now eqtypes.
465    
466    3. Added constructors and test functions for NULL function pointers.
467    
468    ----------------------------------------------------------------------
469    Name: Matthias Blume
470    Date: 2002/01/18
471    Tag: blume-20020118-ready-for-new-release
472    Description:
473    
474    Made config/srcarchiveurl point to a new place.  (Will provide boot
475    files shortly.)
476    
477    Maybe we christen this to be 110.38?
478    
479    ----------------------------------------------------------------------
480    Name: Matthias Blume
481    Date: 2002/01/18
482    Tag: blume-20020118-more-ffifiddle
483    Description:
484    
485    Today's FFI fiddling:
486    
487      - Provided a structure CGetSet with "convenient" versions of C.Get.* and
488        C.Set.* that use concrete (MLRep.*) arguments and results instead
489        of abstract ones.
490    
491      - Provided word-style bit operations etc. for "int" representation
492        types in MLRep.S<Foo>Bitops where <Foo> ranges over Char, Int, Short,
493        and Long.
494    
495    ----------------------------------------------------------------------
496    Name: Matthias Blume
497    Date: 2002/01/18
498    Tag: blume-20020118-use-x86-fp
499    Description:
500    
501    Now that x86-fast-fp seems to be working, I turned it back on again
502    by default.  (Seems to work fine now, even with the FFI.)
503    
504    Other than that, I added some documentation about the FFI to
505    src/ml-nlffigen/README and updated the FFI test examples in
506    src/ml-nlffi-lib/Tests/*.
507    
508    ----------------------------------------------------------------------
509    Name: Allen Leung
510    Date: 2002/01/17
511    Tag: leunga-20020117-x86-fast-fp-call
512    Description:
513    
514       1. Fixed a problem with handling return fp values when x86's fast fp
515          mode is turned on.
516    
517       2. Minor pretty printing fix for cellset.  Print %st(0) as %st(0) instead
518          of %f32.
519    
520       3. Added a constructor INT32lit to the ast of MLRISC tools.
521    
522    ----------------------------------------------------------------------
523    Name: Matthias Blume
524    Date: 2002/01/16
525    Tag: blume-20020116-ffifiddle
526    Description:
527    
528    More fiddling with the FFI interface:
529    
530     - Make constness 'c instead of rw wherever possible.  This eliminates
531       the need for certain explicit coercions.  (However, due to ML's
532       value polymorphism, there will still be many cases where explicit
533       coercions are necessary.  Phantom types are not the whole answer
534       to modeling a subtyping relationship in ML.)
535    
536     - ro/rw coersions for pointers added.  (Avoids the detour through */&.)
537    
538     - "printf" test example added to src/ml-nlffi-lib/Tests.  (Demonstrates
539       clumsy workaround for varargs problem.)
540    
541    ----------------------------------------------------------------------
542    Name: Lal George
543    Date: 2002/01/15
544    Tag: <none>
545    Description:
546    
547    1. Since COPY instructions are no longer native to the architecture,
548       a generic functor can be used to implement the expandCopies function.
549    
550    2. Allowed EXPORT and IMPORT pseudo-op declarations to appear inside a
551       TEXT segment.
552    
553    ----------------------------------------------------------------------
554    Name: Matthias Blume
555    Date: 2002/01/15
556    Tag: blume-20020115-ffiupdates
557    Description:
558    
559    1. Fix for bug resulting in single-precision float values being returned
560       incorrectly from FFI calls.
561    
562    2. Small modifications to C FFI API:
563    
564        - memory-allocation routines return straight objects (no options)
565          and raise an exception in out-of-memory situations
566        - unsafe extensions to cast between function pointers and pointers
567          from/to ints
568        - added structure C_Debug as an alternative to structure C where
569          pointer-dereferencing (|*| and |*!) always check for null-pointers
570        - added open_lib' to DynLinkage;  open_lib' works like open_lib
571          but also takes a (possibly empty) list of existing library handles
572          that the current library depends on
573    
574  ----------------------------------------------------------------------  ----------------------------------------------------------------------
575  Name: Matthias Blume  Name: Matthias Blume
576  Date: 2002/01/10  Date: 2002/01/10
# Line 368  Line 928 
928    
929  ----------------------------------------------------------------------  ----------------------------------------------------------------------
930  Name: Matthias Blume  Name: Matthias Blume
 >>>>>>> 1.169  
931  Date: 2001/09/18 15:35:00 EDT  Date: 2001/09/18 15:35:00 EDT
932  Tag: blume-20010918-readme11036  Tag: blume-20010918-readme11036
933  Description:  Description:

Legend:
Removed from v.1011  
changed lines
  Added in v.1078

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