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 832, Tue May 22 20:30:36 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  Date: 2001/05/22 16:30:00 EDT
170  Tag: blume-20010522-minitut  Tag: blume-20010522-minitut
171  Description:  Description:

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

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