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 836, Fri May 25 19:28:51 2001 UTC revision 840, Fri Jun 15 19:05:19 2001 UTC
# Line 14  Line 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:
21    The purpose of this update is to provide an implementation of NLFFI
22    on Sparc machines.
24    Here are the changes in detail:
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).
42    There are some other fairly unrelated bug fixes and cleanups as well:
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.
50    TODO items:
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.)
56    ----------------------------------------------------------------------
57    Name: Matthias Blume
58    Date: 2001/06/07
59    Tag: blume-20010607-calls
60    Description:
62    A number of internal changes related to C calls and calling conventions:
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.
86    ----------------------------------------------------------------------
87    Name: Matthias Blume
88    Date: 2001/06/05 15:10:00 EDT
89    Tag: blume-20010605-cm-index
90    Description:
92    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
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.
101       The CM manual has been updated accordingly.
103    2. I made some slight modifications to the c-calls API in MLRISC.
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.
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.)
115    ----------------------------------------------------------------------
116    Name: Matthias Blume
117    Date: 2001/06/01 13:30:00 EDT
118    Tag: blume-20010601-nlffi-cleanup
119    Description:
121    This is mostly a cleanup of MLFFI stuff:
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
128    Other changes:
130       - author's affiliation in CM manual(s) updated
131       - some more recognized keywords added to Allen's sml.sty
133    ----------------------------------------------------------------------
134    Name: Matthias Blume
135  Date: 2001/05/25 15:30:00 EDT  Date: 2001/05/25 15:30:00 EDT
136  Tag: blume-20010525-iptr  Tag: blume-20010525-iptr
137  Description:  Description:

Removed from v.836  
changed lines
  Added in v.840

ViewVC Help
Powered by ViewVC 1.0.0