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

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

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