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

Legend:
Removed from v.813  
changed lines
  Added in v.840

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