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 952, Tue Oct 9 14:00:40 2001 UTC revision 1031, Mon Jan 21 22:15:18 2002 UTC
# Line 8  Line 8 
8  The form of an entry should be:  The form of an entry should be:
9    
10  Name:  Name:
11  Date:  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/01/21
18    Tag: blume-20020121-ff
19    Description:
20    
21    Another day of fiddling with the FFI...
22    
23    1. Bug fix/workaround:  CKIT does not complain about negative array
24       dimensions, so ml-nlffigen has to guard itself against this possibility.
25       (Otherwise a negative dimension would send it into an infinite loop.)
26    
27    2. Some of the abstract types (light objects, light pointers, most "base"
28       types) in structure C are now eqtypes.
29    
30    3. Added constructors and test functions for NULL function pointers.
31    
32    ----------------------------------------------------------------------
33    Name: Matthias Blume
34    Date: 2002/01/18
35    Tag: blume-20020118-ready-for-new-release
36    Description:
37    
38    Made config/srcarchiveurl point to a new place.  (Will provide boot
39    files shortly.)
40    
41    Maybe we christen this to be 110.38?
42    
43    ----------------------------------------------------------------------
44    Name: Matthias Blume
45    Date: 2002/01/18
46    Tag: blume-20020118-more-ffifiddle
47    Description:
48    
49    Today's FFI fiddling:
50    
51      - Provided a structure CGetSet with "convenient" versions of C.Get.* and
52        C.Set.* that use concrete (MLRep.*) arguments and results instead
53        of abstract ones.
54    
55      - Provided word-style bit operations etc. for "int" representation
56        types in MLRep.S<Foo>Bitops where <Foo> ranges over Char, Int, Short,
57        and Long.
58    
59    ----------------------------------------------------------------------
60    Name: Matthias Blume
61    Date: 2002/01/18
62    Tag: blume-20020118-use-x86-fp
63    Description:
64    
65    Now that x86-fast-fp seems to be working, I turned it back on again
66    by default.  (Seems to work fine now, even with the FFI.)
67    
68    Other than that, I added some documentation about the FFI to
69    src/ml-nlffigen/README and updated the FFI test examples in
70    src/ml-nlffi-lib/Tests/*.
71    
72    ----------------------------------------------------------------------
73    Name: Allen Leung
74    Date: 2002/01/17
75    Tag: leunga-20020117-x86-fast-fp-call
76    Description:
77    
78       1. Fixed a problem with handling return fp values when x86's fast fp
79          mode is turned on.
80    
81       2. Minor pretty printing fix for cellset.  Print %st(0) as %st(0) instead
82          of %f32.
83    
84       3. Added a constructor INT32lit to the ast of MLRISC tools.
85    
86    ----------------------------------------------------------------------
87    Name: Matthias Blume
88    Date: 2002/01/16
89    Tag: blume-20020116-ffifiddle
90    Description:
91    
92    More fiddling with the FFI interface:
93    
94     - Make constness 'c instead of rw wherever possible.  This eliminates
95       the need for certain explicit coercions.  (However, due to ML's
96       value polymorphism, there will still be many cases where explicit
97       coercions are necessary.  Phantom types are not the whole answer
98       to modeling a subtyping relationship in ML.)
99    
100     - ro/rw coersions for pointers added.  (Avoids the detour through */&.)
101    
102     - "printf" test example added to src/ml-nlffi-lib/Tests.  (Demonstrates
103       clumsy workaround for varargs problem.)
104    
105    ----------------------------------------------------------------------
106    Name: Lal George
107    Date: 2002/01/15
108    Tag: <none>
109    Description:
110    
111    1. Since COPY instructions are no longer native to the architecture,
112       a generic functor can be used to implement the expandCopies function.
113    
114    2. Allowed EXPORT and IMPORT pseudo-op declarations to appear inside a
115       TEXT segment.
116    
117    ----------------------------------------------------------------------
118    Name: Matthias Blume
119    Date: 2002/01/15
120    Tag: blume-20020115-ffiupdates
121    Description:
122    
123    1. Fix for bug resulting in single-precision float values being returned
124       incorrectly from FFI calls.
125    
126    2. Small modifications to C FFI API:
127    
128        - memory-allocation routines return straight objects (no options)
129          and raise an exception in out-of-memory situations
130        - unsafe extensions to cast between function pointers and pointers
131          from/to ints
132        - added structure C_Debug as an alternative to structure C where
133          pointer-dereferencing (|*| and |*!) always check for null-pointers
134        - added open_lib' to DynLinkage;  open_lib' works like open_lib
135          but also takes a (possibly empty) list of existing library handles
136          that the current library depends on
137    
138    ----------------------------------------------------------------------
139    Name: Matthias Blume
140    Date: 2002/01/10
141    Tag: blume-20020110-newffigen
142    Description:
143    
144    1. Updates to portable graph code.
145    
146    2. Major update to ml-nlffigen and ml-nlffi-lib.  Things are much
147       more scalable now so that even huge interfaces such as the one
148       for GTK compile in finite time and space. :-)
149       See src/ml-nlffigen/README for details on what's new.
150    
151    ----------------------------------------------------------------------
152    Name: Lal George
153    Date: 2001/01/09 14:31:35 EST 2002
154    Tag: george-20011206-rm-native-copy
155    Description:
156    
157            Removed the native COPY and FCOPY instructions
158            from all the architectures and replaced it with the
159            explicit COPY instruction from the previous commit.
160    
161            It is now possible to simplify many of the optimizations
162            modules that manipulate copies. This has not been
163            done in this change.
164    
165    ----------------------------------------------------------------------
166    Name: Lal George
167    Date: 2001/12/06 16:50:13 EST 2001
168    Tag: george-20011206-mlrisc-instruction
169    Description:
170    
171    Changed the representation of instructions from being fully abstract
172    to being partially concrete. That is to say:
173    
174      from
175            type instruction
176    
177      to
178            type instr                              (* machine instruction *)
179    
180            datatype instruction =
181                LIVE of {regs: C.cellset, spilled: C.cellset}
182              | KILL of {regs: C.cellset, spilled: C.cellset}
183              | COPYXXX of {k: CB.cellkind, dst: CB.cell list, src: CB.cell list}
184              | ANNOTATION of {i: instruction, a: Annotations.annotation}
185              | INSTR of instr
186    
187    This makes the handling of certain special instructions that appear on
188    all architectures easier and uniform.
189    
190    LIVE and KILL say that a list of registers are live or killed at the
191    program point where they appear. No spill code is generated when an
192    element of the 'regs' field is spilled, but the register is moved to
193    the 'spilled' (which is present, more for debugging than anything else).
194    
195    LIVE replaces the (now deprecated) DEFFREG instruction on the alpha.
196    We used to generate:
197    
198            DEFFREG f1
199            f1 := f2 + f3
200            trapb
201    
202    but now generate:
203    
204            f1 := f2 + f3
205            trapb
206            LIVE {regs=[f1,f2,f3], spilled=[]}
207    
208    Furthermore, the DEFFREG (hack) required that all floating point instruction
209    use all registers mentioned in the instruction. Therefore f1 := f2 + f3,
210    defines f1 and uses [f1,f2,f3]! This hack is no longer required resulting
211    in a cleaner alpha implementation. (Hopefully, intel will not get rid of
212    this architecture).
213    
214    COPYXXX is intended to replace the parallel COPY and FCOPY  available on
215    all the architectures. This will result in further simplification of the
216    register allocator that must be aware of them for coalescing purposes, and
217    will also simplify certain aspects of the machine description that provides
218    callbacks related to parallel copies.
219    
220    ANNOTATION should be obvious, and now INSTR represents the honest to God
221    machine instruction set!
222    
223    The <arch>/instructions/<arch>Instr.sml files define certain utility
224    functions for making porting easier -- essentially converting upper case
225    to lower case. All machine instructions (of type instr) are in upper case,
226    and the lower case form generates an MLRISC instruction. For example on
227    the alpha we have:
228    
229      datatype instr =
230         LDA of {r:cell, b:cell, d:operand}
231       | ...
232    
233      val lda : {r:cell, b:cell, d:operand} -> instruction
234        ...
235    
236    where lda is just (INSTR o LDA), etc.
237    
238    ----------------------------------------------------------------------
239    Name: Matthias Blume
240    Date: 2001/11/22 21:40:00 EST
241    Tag: Release_110_37
242    Description:
243    
244    Release 110.37.  This time for real.
245    
246    ----------------------------------------------------------------------
247    Name: Matthias Blume
248    Date: 2001/11/21 16:35:00 EST
249    Tag: blume-20011121-foot-in-mouth
250    Description:
251    
252    Removed the "Release_110_37" tag because of a serious bug.
253    This will be re-tagged once the bug is fixed.
254    
255    ----------------------------------------------------------------------
256    Name: Matthias Blume
257    Date: 2001/11/21 16:14:00 EST
258    Tag: blume-20011121-forgottenfile
259    Description:
260    
261    Forgot to add a file.  (Just a .tex-file -- part of
262    the CM manual source.)
263    
264    ----------------------------------------------------------------------
265    Name: Matthias Blume
266    Date: 2001/11/21 16:10:00 EST
267    Tag: blume-20011121-invalid_110_37
268    Description:
269    
270    Note: I removed the original tag "Release_110_37" from this commit
271          because we found a serious bug in all non-x86 backends.
272          - Matthias
273    
274    1. Modifications to the SML/NJ code generator and to the runtime system
275       so that code object name strings are directly inserted into code
276       objects at code generation time.  The only business the runtime system
277       has with this is now to read the name strings on occasions.
278       (The encoding of the name string has also changed somewhat.)
279    
280    2. CM now implements a simple "set calculus" for specifying export lists.
281       In particular, it is now possible to refer to the export lists of
282       other libraries/groups/sources and form unions as well as differences.
283       See the latest CM manual for details.
284    
285    3. An separate notion of "proxy" libraries has again be eliminated from
286       CM's model.  (Proxy libraries are now simply a special case of using
287       the export list calculus.)
288    
289    4. Some of the existing libraries now take advantage of the new set
290       calculus.
291       (Notice that not all libraries have been converted because some
292       of the existing .cm-files are supposed to be backward compatible
293       with 110.0.x.)
294    
295    5. Some cleanup in stand-alone programs.  (Don't use "exnMessage" -- use
296       "General.exnMessage"!  The former relies on a certain hook to be
297       initialized, and that often does not happen in the stand-alone case.)
298    
299    ----------------------------------------------------------------------
300    Name: Lal George
301    Date: 2001/11/21  13:56:18 EST
302    Tag: george-2001121-pseudo-ops
303    Description:
304    
305      Implemented a complete redesign of MLRISC pseudo-ops. Now there
306      ought to never be any question of incompatabilities with
307      pseudo-op syntax expected by host assemblers.
308    
309      For now, only modules supporting GAS syntax are implemented
310      but more should follow, such as MASM, and vendor assembler
311      syntax, e.g. IBM as, Sun as, etc.
312    
313    ----------------------------------------------------------------------
314    Name: Matthias Blume
315    Date: 2001/11/14 11:52:00 EST
316    Tag: blume-20011114-srcname
317    Description:
318    
319    1. Routed the name of the current source file to mlriscgen where it
320       should be directly emitted into the code object.  (This last part
321       is yet to be done.)
322    
323    2. Some cleanup of the pgraph code to make it match the proposal that
324       I put out the other day.  (The proposal notwithstanding, things are
325       still in flux here.)
326    
327    ----------------------------------------------------------------------
328    Name: Lal George
329    Date: 2001/11/14 09:44:04 EST
330    Tag:
331    Description:
332    
333      Fix for a backpatching bug reported by Allen.
334    
335      Because the boundary between short and long span-dependent
336      instructions is +/- 128, there are an astounding number of
337      span-dependent instructions whose size is over estimated.
338    
339      Allen came up with the idea of letting the size of span
340      dependent instructions be non-monotonic, for a maxIter
341      number of times, after which the size must be monotonically
342      increasing.
343    
344      This table shows the number of span-dependent instructions
345      whose size was over-estimated as a function of maxIter, for the
346      file Parse/parse/ml.grm.sml:
347    
348         maxIter            # of instructions:
349            10                      687
350            20                      438
351            30                      198
352            40                        0
353    
354      In compiling the compiler, there is no significant difference in
355      compilation speed between maxIter=10 and maxIter=40. Actually,
356      my measurements showed that maxIter=40 was a tad faster than
357      maxIter=10! Also 96% of the  files in the compiler reach a fix
358      point within 13 iterations, so fixing maxIter at 40, while high,
359      is okay.
360    
361    ----------------------------------------------------------------------
362    Name: Matthias Blume
363    Date: 2001/10/31 15:25:00 EST
364    Tag: blume-20011031-pgraph
365    Description:
366    
367    CKIT:
368    * Changed the "Function" constructor of type Ast.ctype to carry optional
369      argument identifiers.
370    * Changed the return type of TypeUtil.getFunction accordingly.
371    * Type equality ignores the argument names.
372    * TypeUtil.composite tries to preserve argument names but gives up quickly
373      if there is a mismatch.
374    
375    installation script:
376    * attempts to use "curl" if available (unless "wget" is available as well)
377    
378    CM:
379    * has an experimental implementation of "portable graphs" which I will
380      soon propose as an implementation-independent library format
381    * there are also new libraries $/pgraph.cm and $/pgraph-util.cm
382    
383    NLFFI-LIB:
384    * some cleanup (all cosmetic)
385    
386    NLFFIGEN:
387    * temporarily disabled the mechanism that suppresses ML output for
388      C definitions whose identifiers start with an underscore character
389    * generate val bindings for enum constants
390    * user can request that only one style (light or heavy) is being used;
391      default is to use both (command-line arguments: -heavy and -light)
392    * fixed bug in handling of function types involving incomplete pointers
393    * generate ML entry points that take record arguments (i.e., using
394      named arguments) for C functions that have a prototype with named
395      arguments
396      (see changes to CKIT)
397    
398    ----------------------------------------------------------------------
399    Name: Allen Leung
400    Date: 2001/10/27 20:34:00 EDT
401    Tag: leunga-20011027-x86-fast-fp-call
402    Description:
403    
404       Fixed the bug described in blume-20010920-slowfp.
405    
406       The fix involves
407          1. generating FCOPYs in FSTP in ia32-svid
408          2. marking a CALL with the appropriate annotation
409    
410    ----------------------------------------------------------------------
411    Name: Matthias Blume
412    Date: 2001/10/16 11:32:00 EDT
413    Tag: blume-20011016-netbsd
414    Description:
415    
416    Underscore patch from Chris Richards (fixing problem with compiling
417    runtime system under recent NetBSD).
418    
419    ----------------------------------------------------------------------
420    Name: Allen Leung
421    Date: 2001/10/12 17:18:32 EDT 2001
422    Tag: leung-20011012-x86-printflowgraph
423    Description:
424    
425    X86RA now uses a valid (instead of dummy) PrintFlowgraph module.
426    
427    ----------------------------------------------------------------------
428    Name: Lal George
429    Date: 2001/10/11 23:51:34 EDT
430    Tag: george-20011011-too-many-instrs
431    Description:
432    
433    The representation of a program point never expected to see more
434    than 65536 instructions in a basic block!
435    
436    ----------------------------------------------------------------------
437  Name: Lal George  Name: Lal George
438  Date: 2001/10/09 09:41:37 EDT  Date: 2001/10/09 09:41:37 EDT
439  Tag: george-20011008-mlrisc-labels  Tag: george-20011008-mlrisc-labels

Legend:
Removed from v.952  
changed lines
  Added in v.1031

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