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

Legend:
Removed from v.788  
changed lines
  Added in v.846

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