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 806, Thu Mar 22 21:22:21 2001 UTC revision 841, Fri Jun 15 21:38:20 2001 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume  Name: Matthias Blume
17    Date: 2001/06/15 15:05:00 EDT
18    Tag: blume-20010615-moresparc
19    Description:
20    
21    Here is a short late-hour update related to Sparc c-calls:
22    
23     -- made handling of double-word arguments a bit smarter
24    
25     -- instruction selection phase tries to collapse certain clumsily
26        constructed ML-Trees; typical example:
27    
28            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
29    
30        This currently has no further impact on SML/NJ since mlriscGen does
31        not seem to generate such patterns in the first place, and c-calls
32        (which did generate them in the beginning) has meanwhile been fixed
33        so as to avoid them as well.
34    
35    ----------------------------------------------------------------------
36    Name: Matthias Blume
37    Date: 2001/06/15 15:05:00 EDT
38    Tag: blume-20010615-sparc
39    Description:
40    
41    The purpose of this update is to provide an implementation of NLFFI
42    on Sparc machines.
43    
44    Here are the changes in detail:
45    
46       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
47       the Sparc implementation of the c-calls API.
48       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
49       for accessing the ML frame.  Thus, we have a real frame pointer and
50       can freely modify %sp without need for an omit-frame-ptr phase.
51       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
52       this case.
53       * ml-nlffigen has been taught to produce code for different architectures
54       and calling conventions.
55       * In a way similar to what was done in the x86 case, the Sparc
56       backend uses its own specific extension to mltree.  (For example,
57       it needs to be able to generate UNIMP instructions which are part
58       of the calling convention.)
59       * ml-nlffi-lib was reorganized to make it more modular (in particular,
60       to make it easier to plug in new machine- and os-dependent parts).
61    
62    There are some other fairly unrelated bug fixes and cleanups as well:
63    
64       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
65       that they properly share their libraries with existing SML/NJ libraries.
66       * I fixed a minor cosmetic bug in CM, supressing certain spurious
67       follow-up error messages.
68       * Updates to CM/CMB documentation.
69    
70    TODO items:
71    
72       * MLRISC should use a different register as its asmTemp on the Sparc.
73         (The current %o2 is a really bad choice because it is part of the
74         calling conventions, so things might interfere in unexpected ways.)
75    
76    ----------------------------------------------------------------------
77    Name: Matthias Blume
78    Date: 2001/06/07
79    Tag: blume-20010607-calls
80    Description:
81    
82    A number of internal changes related to C calls and calling conventions:
83    
84    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
85       number of bytes popped implicitly (by the callee).  In most cases
86       this field is 0 but on x86/win32 it is some non-zero value.  This
87       is information provided for the benefit of the "omit-frameptr" pass.
88    2. The CALL instruction on the x86 carries a similar "pops" field.
89       The instruction selection phase copies its value from the ML-Tree
90       CALL statement.
91    3. On all other architectures, the instruction selection phase checks
92       whether "pops=0" and complains if not.
93    4. The c-calls implementation for x86 now accepts two calling conventions:
94       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
95       up after the call and pops is set to 0.  For "stdcall", the caller
96       does nothing, leaving the cleanup to the callee; pops is set to
97       the number of bytes that were pushed onto the stack.
98    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
99       distinguish between "ccall" and "stdcall".
100    6. The UNIMP instruction has been added to the supported Sparc instruction
101       set. (This is needed for implementing the official C calling convention
102       on this architecture.)
103    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
104       work with the latest CM.
105    
106    ----------------------------------------------------------------------
107    Name: Matthias Blume
108    Date: 2001/06/05 15:10:00 EDT
109    Tag: blume-20010605-cm-index
110    Description:
111    
112    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
113    
114    1. CM can now generate "index files".  These are human-readable files
115       that list on a per-.cm-file basis each toplevel symbol defined or
116       imported.  The location of the index file for
117       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
118       To enable index-file generation, set CM.Control.generate_index to true
119       or export an environment-symbol: export CM_GENERATE_INDEX=true.
120    
121       The CM manual has been updated accordingly.
122    
123    2. I made some slight modifications to the c-calls API in MLRISC.
124    
125         a) There is now a callback to support saving/restoring of
126            dedicated but caller-save registers around the actual call
127            instruction.
128         b) One can optionally specify a comment-annotation for the
129            call instruction.
130    
131    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
132       (For example, the comment annotation shows the C prototype of
133        the function being called.)
134    
135    ----------------------------------------------------------------------
136    Name: Matthias Blume
137    Date: 2001/06/01 13:30:00 EDT
138    Tag: blume-20010601-nlffi-cleanup
139    Description:
140    
141    This is mostly a cleanup of MLFFI stuff:
142    
143       - some signature files have been put into a more exposed place
144       - the ugly 'f type parameter is gone (simplifies types tremendously!)
145       - ml-nlffigen changed accordingly
146       - tutorial updated
147    
148    Other changes:
149    
150       - author's affiliation in CM manual(s) updated
151       - some more recognized keywords added to Allen's sml.sty
152    
153    ----------------------------------------------------------------------
154    Name: Matthias Blume
155    Date: 2001/05/25 15:30:00 EDT
156    Tag: blume-20010525-iptr
157    Description:
158    
159      - put the official 110.33-README (as it appears on the ftp server) under
160        CVS
161      - fixed a small bug related to incomplete pointer types in
162        ml-nlffigen
163      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
164        (it does not need the 'f type parameter)
165    
166    ----------------------------------------------------------------------
167    Name: Matthias Blume
168    Date: 2001/05/23 14:30:00 EDT
169    Tag: Release_110_33
170    Description:
171    
172    New version number (110.33).  New bootfiles.
173    
174    ----------------------------------------------------------------------
175    Name: Matthias Blume
176    Date: 2001/05/22 18:06:00 EDT
177    Tag: blume-20010522-targets
178    Description:
179    
180    Made install.sh use file config/targets.customized if it exists, falling
181    back to config/targets if it doesn't.  This way one can have a customized
182    version of the targets file without touching the "real thing", thus
183    eliminating the constant fear of accidentally checking something bogus
184    back into the CVS repository...  (File config/targets.customized must
185    not be added to the repository!)
186    
187    ----------------------------------------------------------------------
188    Name: Matthias Blume
189    Date: 2001/05/22 16:30:00 EDT
190    Tag: blume-20010522-minitut
191    Description:
192    
193    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
194       struct returns.
195    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
196       incomplete, preliminary documentation for NLFFI.
197    
198    ----------------------------------------------------------------------
199    Name: Matthias Blume
200    Date: 2001/05/14 11:30:00 EDT
201    Tag: blume-20010514-script
202    Description:
203    
204    Some bugs in install script fixed.
205    
206    In addition to that I also made a slight change to the NLFFI API:
207    Functors generated by ml-nlffigen now take the dynamic library as a
208    straight functor argument, not as a suspended one.  (The original
209    functor code used to force the suspension right away anyway, so there
210    was nothing gained by this complication of the interface.)
211    
212    ----------------------------------------------------------------------
213    Name: Matthias Blume
214    Date: 2001/05/11 14:35:00 EDT
215    Tag: blume-20010511-ml-nlffi
216    Description:
217    
218    I finally took the plunge and added my new FFI code to the main
219    repository.  For x86-linux it is now ready for prime-time.
220    
221    There are two new subdirectories of "src":
222    
223      - ml-nlffi-lib:
224           The utility library for programs using the FFI interface.
225           Here is the implementation of $/c.cm and its associated low-level
226           partners $/c-int.cm and $/memory.cm.
227      - ml-nlffigen:
228           A stand-alone program for generating ML glue code from C source
229           code.
230    
231    Building ml-nlffigen requires $/ckit-lib.cm.
232    
233    The config/install.sh script has been updates to do the Right Thing
234    (hopefully).
235    
236    Notice that the source tree for the C-Kit will not be put under "src"
237    but directly under the installation root directory.  (This is the
238    structure that currently exists on the CVS server when you check out
239    module "sml".)  Fortunately, config/install.sh knows about this oddity.
240    
241    Bugs: No documentation yet.
242    
243    ----------------------------------------------------------------------
244    Name: Matthias Blume
245    Date: 2001/05/09 16:35:00 EDT
246    Tag: blume-20010509-cpscontract
247    Description:
248    
249    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
250    wrapper/unwrapper elimination did not decrement usage counts and some
251    dead variables got overlooked by the dead-up logic.)
252    
253    ----------------------------------------------------------------------
254    Name: Lal George
255    Date: 2001/05/08  17:26:09 EDT
256    Tag: george-20010508-omit-frameptr
257    Description:
258    
259    Changes to implement the omit-frame-pointer optimization to support
260    raw C calls. For now, there is only support on the Intel x86, but
261    other architectures will follow as more experience is gained with this.
262    
263    
264    ----------------------------------------------------------------------
265    Name: Matthias Blume
266    Date: 2001/05/07 14:40:00 EDT
267    Tag: blume-20010507-proxies
268    Description:
269    
270    I made into "proxy libraries" all libraries that qualify for such a
271    change.  (A qualifying library is a library that has another library or
272    groups as its sole member and repeats that member's export list
273    verbatim.  A proxy library avoids this repetition by omitting its export
274    list, effectively inheriting the list that its (only) member exports.
275    See the CM manual for more explanation.)
276    The main effect is that explicit export lists for these libraries
277    do not have to be kepts in sync, making maintenance a bit easier.
278    
279    I also added copyright notices to many .cm-files.
280    
281    Last but not least, I made a new set of bootfiles.
282    
283    ----------------------------------------------------------------------
284    Name: Matthias Blume
285    Date: 2001/05/04 17:00:00 EDT
286    Tag: blume-20010504-cm-lsplit
287    Description:
288    
289    0. John merged pending changes to $/smlnj-lib.cm
290    
291    1. Allen's previous change accidentally backed out of one of Lal's
292       earlier changes.  I undid this mistake (re-introducing Lal's change).
293    
294    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
295       within the compiler where applicable.  There is some code simplification
296       because of that.
297    
298    3. The "split" phase (in FLINT) is now part of the default list of phases.
299       Compiler.Control.LambdaSplitting.* can be used to globally control the
300       lambda-splitting (cross-module-inlining) engine.  In addition to that,
301       it can now also be controlled on a per-source basis: CM has been taught
302       a new tool parameter applicable to ML source files.
303    
304       - To turn lambda-splitting off completely:
305            local open Compiler.Control.LambdaSplitting in
306                val _ = set Off
307            end
308       - To make "no lambda-splitting" the global default (but allow per-source
309         overriding); this is the initial setting:
310            local open Compiler.Control.LambdaSplitting in
311                val _ = set (Default NONE)
312            end
313       - To make "lambda-splitting with aggressiveness a" the global default
314         (and allow per-source overriding):
315            local open Compiler.Control.LambdaSplitting in
316                val _ = set (Default (SOME a))
317            end
318    
319       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
320         write (in the respective .cm-file):
321            a.sml (lambdasplitting:off)
322       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
323            a.sml (lambdasplitting:on)
324       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
325         <a> is a decimal non-negative integer):
326            a.sml (lambdasplitting:<a>)
327       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
328            a.sml (lambdasplitting:infinity)
329       - To use the global default for a.sml:
330            a.sml (lambdasplitting:default)
331         or simply
332            a.sml
333    
334    ----------------------------------------------------------------------
335    Name: Allen Leung
336    Date: 2001/05/04 01:57:00 EDT
337    Tag: leunga-20010504-sync
338    Description:
339    
340      MLRISC features.
341    
342      1. Fix to CMPXCHG instructions.
343      2. Changed RA interface to allow annotations in callbacks.
344      3. Added a new method to the stream interface to allow annotations updates.
345    
346    ----------------------------------------------------------------------
347    Name: Matthias Blume
348    Date: 2001/05/01 11:45:00 EDT
349    Tag: blume-20010501-pcedittmp
350    Description:
351    
352    Changed install.sh to use the current working directory instead of
353    /usr/tmp for a temporary file (pcedittmp).  The previous choice
354    of /usr/tmp caused trouble with MacOS X because of file premission
355    problems.
356    
357    ----------------------------------------------------------------------
358    Name: Matthias Blume
359    Date: 2001/04/20 11:10:00 EDT
360    Tag: blume-20010420-inMLflag
361    Description:
362    
363     - added vp_limitPtrMask to vproc-state.h
364       (for use by the raw-C-calls mechanism to implement proper interrupt
365        handling)
366     - made the ML compiler aware of various data-structure offsets so it
367       can generate code for accessing the vp_inML flag and vp_limitPtrMask
368     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
369       raw C-calls
370    
371    ----------------------------------------------------------------------
372    Name: Lal George
373    Date: 2001/04/20 09:15:28 EDT
374    Tag: george-20010420-macosX
375    Description:
376    
377     - Changes to port to Mac OS X; Darwin.
378    
379     - In the process I found that sqrt was broken on the PPC, because the
380       fsqrt instruction is not implemented.
381    
382    ----------------------------------------------------------------------
383    Name: Matthias Blume
384    Date: 2001/04/18 12:45:00 EDT
385    Tag: blume-20010418-ccalls
386    Description:
387    
388     - fixed two off-by-4 errors in the x86-specific c-calls implementation
389       (this bug prevented structure arguments containing pointers from being
390        passed correctly)
391     - changed the raw-C-call code in mlriscGen.sml in such a way that
392       structure arguments are represented as a pointer to the beginning
393       of the structure (instead of having a series of synthesized arguments,
394       one for each structure member)
395    
396     - made makeml script's verbosity level configurable via environment
397       variable (MAKEML_VERBOSITY)
398    
399     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
400       in rawmem-x86.sml; we are now using the real thing
401    
402    ----------------------------------------------------------------------
403    Name: Matthias Blume
404  Date: 2001/03/22 16:25:00 EST  Date: 2001/03/22 16:25:00 EST
405  Tag: blume-20010322-bootfiles  Tag: blume-20010322-bootfiles
406  Description:  Description:

Legend:
Removed from v.806  
changed lines
  Added in v.841

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