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 847, Mon Jun 25 16:11:22 2001 UTC revision 923, Thu Sep 13 15:19:18 2001 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume  Name: Matthias Blume
17    Date: 2001/09/13 11:20:00 EDT
18    Tag: blume-20010913-minimal
19    Description:
20    
21    1. Stefan Monnier's patch to fix a miscompilation problem that
22       was brought to light by John Reppy's work on Moby.
23    
24    2. Implemented a minimal "structure Compiler" that contains just
25       "version" and "architecture".  The minimal version will be
26       available when the full version is not.  This is for backward-
27       compatibility with code that wants to test Compiler.version.
28    
29    ----------------------------------------------------------------------
30    Name: Matthias Blume
31    Date: 2001/08/28 14:03:00 EDT
32    Tag: blume-20010828-ml-lex
33    Description:
34    
35    Fix for bug 1581, received from Neophytos Michael.
36    
37    ----------------------------------------------------------------------
38    Name: Matthias Blume
39    Date: 2001/08/27 11:20:00 EDT
40    Tag: blume-20010827-readme11035
41    Description:
42    
43    Fleshed out the README file for 110.35.
44    
45    ----------------------------------------------------------------------
46    Name: Matthias Blume
47    Date: 2001/08/24 17:10:00 EDT
48    Tag: Release_110_35
49    Description:
50    
51    New version number (110.35).  New bootfiles.
52    
53    ----------------------------------------------------------------------
54    Name: Lal George
55    Date: 2001/08/24 13:47:18 EDT 2001
56    Tag: george-20010824-MLRISC-graphs
57    Description:
58    
59     removed clusters from MLRISC completely and replaced with graphs.
60    
61    ----------------------------------------------------------------------
62    Name: Matthias Blume
63    Date: 2001/08/23 17:50:00 EDT
64    Tag: blume-20010823-toplevel
65    Description:
66    
67    - some reorganization of the code that implements various kinds of
68      environments in the compiler (static, dynamic, symbolic, combined)
69    - re-implemented the EnvRef module so that evalStream works properly
70      (if the stream contains references to "use", "CM.make", etc.)
71    - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
72    
73    ----------------------------------------------------------------------
74    Name: Matthias Blume
75    Date: 2001/08/20 15:50 EDT
76    Tag: blume20010820-slipup
77    Description:
78    
79    I forgot to commit a few files.  Here they are...
80    
81    ----------------------------------------------------------------------
82    Name: Matthias Blume
83    Date: 2001/08/20 15:35:00 EDT
84    Tag: blume-20010820-debugprof
85    Description:
86    
87    !!!! NEW BOOTFILES !!!!
88    
89    This is another round of reorganizing the compiler sources.  This
90    time the main goal was to factor out all the "instrumentation"
91    passes (for profiling and backtracing) into their own library.
92    The difficulty was to do it in such a way that it does not depend
93    on elaborate.cm but only on elabdata.cm.
94    
95    Therefore there have been further changes to both elaborate.cm and
96    elabdata.cm -- more "generic" things have been moved from the former
97    to the latter.  As a result, I was forced to split the assignment
98    of numbers indicating "primtyc"s into two portions: SML-generic and
99    SML/NJ-specific.  Since it would have been awkward to maintain,
100    I bit the bullet and actually _changed_ the mapping between these
101    numbers and primtycs.  The bottom line of this is that you need
102    a new set of bin- and bootfiles.
103    
104    I have built new bootfiles for all architectures, so doing a fresh
105    checkout and config/install.sh should be all you need.
106    
107    The newly created library's name is
108    
109        $smlnj/viscomp/debugprof.cm
110    
111    and its sources live under
112    
113        src/compiler/DebugProf
114    
115    ----------------------------------------------------------------------
116    Name: Matthias Blume
117    Date: 2001/08/15 17:15:00 EDT
118    Tag: blume-20010815-compreorg
119    Description:
120    
121    This is a first cut at reorganizing the CM libraries that make up the
122    core of the compiler.  The idea is to separate out pieces that could
123    be used independently by tools, e.g., the parser, the typechecker, etc.
124    
125    The current status is a step in this direction, but it is not quite
126    satisfactory yet.  Expect more changes in the future.
127    
128    Here is the current (new) organization...
129    
130        What used to be $smlnj/viscomp/core.cm is now divided into
131        six CM libraries:
132    
133             $smlnj/viscomp/basics.cm
134                           /parser.cm
135                           /elabdata.cm
136                           /elaborate.cm
137                           /execute.cm
138                           /core.cm
139    
140        The CM files for these libraries live under src/system/smlnj/viscomp.
141        All these libraries are proxy libraries that contain precisely
142        one CM library component.  Here are the locations of the components
143        (all within the src/compiler tree):
144    
145             Basics/basics.cm
146             Parse/parser.cm
147             ElabData/elabdata.cm
148             Elaborator/elaborate.cm
149             Execution/execute.cm
150             core.cm
151    
152         [This organization is the same that has been used already
153         for a while for the architecture-specific parts of the visible
154         compiler and for the old version of core.cm.]
155    
156         As you will notice, many source files have been moved from their
157         respective original locations to a new home in one of the above
158         subtrees.
159    
160         The division of labor between the new libraries is the following:
161    
162             basics.cm:
163                - Simple, basic definitions that pertain to many (or all) of
164                  the other libraries.
165             parser.cm:
166                - The SML parser, producing output of type Ast.dec.
167                - The type family for Ast is also defined and exported here.
168             elabdata.cm:
169                - The datatypes that describe input and output of the elaborator.
170                  This includes types, absyn, and static environments.
171             elaborator.cm:
172                - The SML/NJ type checker and elaborator.
173                  This maps an Ast.dec (with a given static environment) to
174                  an Absyn.dec (with a new static environment).
175                - This libraries implements certain modules that used to be
176                  structures as functors (to remove dependencies on FLINT).
177             execute.cm:
178                - Everything having to do with executing binary code objects.
179                - Dynamic environments.
180             core.cm:
181                - SML/NJ-specific instantiations of the elaborator and MLRISC.
182                - Top-level modules.
183                - FLINT (this should eventually become its own library)
184    
185    Notes:
186    
187    I am not 100% happy with the way I separated the elaborator (and its
188    data structures) from FLINT.  Two instances of the same problem:
189    
190        1. Data structures contain certain fields that carry FLINT-specific
191           information.  I hacked around this using exn and the property list
192           module from smlnj-lib.  But the fact that there are middle-end
193           specific fields around at all is a bit annoying.
194    
195        2. The elaborator calculates certain FLINT-related information.  I tried
196           to make this as abstract as I could using functorization, but, again,
197           the fact that the elaborator has to perform calculations on behalf
198           of the middle-end at all is not nice.
199    
200        3. Having to used exn and property lists is unfortunate because it
201           weakens type checking.  The other alternative (parameterizing
202           nearly *everything*) is not appealing, though.
203    
204    I removed the "rebinding =" warning hack because due to the new organization
205    it was awkward to maintain it.  As a result, the compiler now issues some of
206    these warnings when compiling init.cmi during bootstrap compilation. On
207    the plus side, you also get a warning when you do, for example:
208       val op = = Int32.+
209    which was not the case up to now.
210    
211    I placed "assign" and "deref" into the _Core structure so that the
212    code that deals with the "lazy" keyword can find them there.  This
213    removes the need for having access to the primitive environment
214    during elaboration.
215    
216    ----------------------------------------------------------------------
217    Name: Matthias Blume
218    Date: 2001/08/13
219    Tag: blume-20010813-closures
220    Description:
221    
222    This fix was sent to us by Zhong Shao.  It is supposed to improve the
223    performance of certain loops by avoiding needless closure allocation.
224    
225    ----------------------------------------------------------------------
226    Name: Lal George
227    Date: 2001/07/31 10:03:23 EDT 2001
228    Tag: george-20010731-x86-fmalloc
229    Description: Fixed bug in x86 calls
230    
231        There was a bug where call instructions would mysteriously
232        vanish. The call instruction had to be one that returned
233        a floating point value.
234    
235    ----------------------------------------------------------------------
236    Name: Lal George
237    Date: 2001/07/19 16:36:29 EDT 2001
238    Tag: george-20010719-simple-cells
239    Description:
240    
241    I have dramatically simplified the interface for CELLS in MLRISC.
242    
243    In summary, the cells interface is broken up into three parts:
244    
245      1. CellsBasis : CELLS_BASIS
246    
247            CellsBasis is a top level structure and common for all
248            architectures.  it contains the definitions of basic datatypes
249            and utility  functions over these types.
250    
251      2. functor Cells() : CELLS
252    
253            Cells generates an interface for CELLS that incorporates the
254            specific resources on the target architecture, such as the
255            presence of special register classes, their number and size,
256            and various useful substructures.
257    
258      3. <ARCH>CELLS
259    
260            e.g. SparcCells: SPARCCELLS
261    
262            <ARCH>CELLS usually contains additional bindings for special
263            registers  on the architecture, such as:
264    
265                    val r0 : cell           (* register zero *)
266                    val y : cell            (* Y register *)
267                    val psr : cell          (* processor status register *)
268                    ...
269    
270            The structure returned by applying the Cells functor is opened
271            in this interface.
272    
273    The main implication of all this is that the datatypes for cells is
274    split between CellsBasis and CELLS -- a fairly simple change for user
275    code.
276    
277    In the old scheme the CELLS interface had a definitional binding of
278    the form:
279    
280            signature CELLS = sig
281    
282               structure CellsBasis = CellsBasis
283    
284               ...
285    
286            end
287    
288    With all the sharing constraints that goes on in MLRISC, this old
289    design  quickly leads to errors such as:
290    
291            "structure definition spec inside of sharing ... "
292    
293    
294    and appears to require an unacceptable amount of sharing and where
295    constraint hackery.
296    
297    I think this error message (the interaction of definitional specs and
298    sharing) requires more explanation on our web page.
299    
300    ----------------------------------------------------------------------
301    Name: Matthias Blume
302    Date: 2001/07/19 15:00:00 EDT
303    Tag: blume-20010719-libreorg
304    Description:
305    
306    This update puts together a fairly extensive but straightforward change
307    to the way the libraries that implement the interactive system are
308    organized:
309    
310       The biggest change is the elimination of structure Compiler.  As a
311       replacement for this structure, there is now a CM library
312       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
313       that exports all the substructures of the original structure Compiler
314       directly.  So instead of saying Compiler.Foo.bar one now simply
315       says Foo.bar.  (The CM libraries actually export a collection of
316       structures that is richer than the collection of substructures of
317       structure Compiler.)
318    
319       To make the transition smooth, there is a separate library called
320       $smlnj/compiler/compiler.cm which puts together and exports the
321       original structure Compiler (or at least something very close to it).
322    
323       There are five members of the original structure Compiler
324       that are not exported directly but which instead became members
325       of a new structure Backend (described by signature BACKEND).  These are:
326       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
327       Interact (: INTERACT), structure Machine (: MACHINE), and val
328       architecture (: string).
329    
330       Structure Compiler.Version has become structure CompilerVersion.
331    
332       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
333       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
334       or x86, respectively.
335       Each of these exports the same frontend structures that
336       $smlnj/compiler.cm exports.  But they do not have a structure Backend
337       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
338       Hppa, PPC, Sparc, or X86, respectively.
339    
340       Library $smlnj/compiler/all.cm exports the union of the exports of
341       $smlnj/compiler/<arch>.cm
342    
343       There are no structures <Arch>Compiler anymore, use
344       $smlnj/compiler/<arch>.cm instead.
345    
346       Library host-compiler-0.cm is gone.  Instead, the internal library
347       that instantiates CM is now called cm0.cm.  Selection of the host
348       compiler (backend) is no longer done here but. (Responsibility for it
349       now lies with $smlnj/compiler/current.cm.  This seems to be more
350       logical.)
351    
352       Many individual files have been moved or renamed.  Some files have
353       been split into multiple files, and some "dead" files have been deleted.
354    
355    Aside from these changes to library organization, there are also changes
356    to the way the code itself is organized:
357    
358       Structure Binfile has been re-implemented in such a way that it no
359       longer needs any knowledge of the compiler.  It exclusively deals
360       with the details of binfile layout.  It no longer invokes the
361       compiler (for the purpose of creating new prospective binfile
362       content), and it no longer has any knowledge of how to interpret
363       pickles.
364    
365       Structure Compile (: COMPILE) has been stripped down to the bare
366       essentials of compilation.  It no longer deals with linking/execution.
367       The interface has been cleaned up considerably.
368    
369       Utility routines for dealing with linking and execution have been
370       moved into their own substructures.
371    
372       (The ultimate goal of these changes is to provide a light-weight
373       binfile loader/linker (at least for, e.g., stable libraries) that
374       does not require CM or the compiler to be present.)
375    
376    CM documentation has been updated to reflect the changes to library
377    organization.
378    
379    ----------------------------------------------------------------------
380    Name: Matthias Blume
381    Date: 2001/07/10 17:30:00 EDT
382    Tag: Release_110_34
383    Description:
384    
385    Minor tweak to 110.34 (re-tagged):
386    
387      - README.html file added to CVS repository
388      - runtime compiles properly under FreeBSD 3.X and 4.X
389    
390    ----------------------------------------------------------------------
391    Name: Matthias Blume
392    Date: 2001/07/10 17:30:00 EDT
393    Tag: Release_110_34
394    Description:
395    
396    New version number (110.34). New bootfiles.
397    
398    ----------------------------------------------------------------------
399    Name: Matthias Blume
400    Date: 2001/07/09 16:00:00 EDT
401    Tag: blume-20010709-more-varargs
402    Description:
403    
404    I changed the handling of varargs in ml-nlffigen again:
405    The ellipsis ... will now simply be ignored (with an accompanying warning).
406    
407    The immediate effect is that you can actually call a varargs function
408    from ML -- but you can't actually supply any arguments beyond the ones
409    specified explicitly.  (For example, you can call printf with its format
410    string, but you cannot pass additional arguments.)
411    
412    This behavior is only marginally more useful than the one before, but
413    it has the advantage that a function or, more importantly, a function
414    type never gets dropped on the floor, thus avoiding follow-up problems with
415    other types that refer to the offending one.
416    
417    ----------------------------------------------------------------------
418    Name: Matthias Blume
419    Date: 2001/07/09 11:25:00 EDT
420    Tag: blume-20010709-varargs
421    Description:
422    
423    1. ckit-lib.cm now exports structure Error
424    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
425       with a warning accompanied by a source location.  Moreover, it
426       merely skips the offending function or type and proceeds with the
427       rest of its work.u  As a result, one can safely feed C code containing
428       "..." to ml-nlffigen.
429    3. There are some internal improvements to CM, providing slightly
430       more general string substitutions in the tools subsystem.
431    
432    ----------------------------------------------------------------------
433    Name: Matthias Blume
434    Date: 2001/06/27 15:10:00 EDT
435    Tag: blume-20010627-concur
436    Description:
437    
438    Fixed a small bug in CM's handling of parallel compilation.
439    (You could observe the bug by Control-C-interrupting an ordinary
440    CMB.make or CM.stabilize and then attaching some compile servers.
441    The result was that all of a sudden the previously interrupted
442    compilation would continue on its own.  This was because of
443    an over-optimization: CM did not bother to clean out certain queues
444    when no servers were attached "anyway", resulting in the contents
445    of these queues to grab control when new servers did get attached.)
446    
447    There is also another minor update to the CM manual.
448    
449    ----------------------------------------------------------------------
450    Name: Matthias Blume
451    Date: 2001/06/26 16:15:00 EDT
452    Tag: blume-20010626-cmdoc
453    Description:
454    
455    Minor typo fixed in CM manual (syntax diagram for libraries).
456    
457    ----------------------------------------------------------------------
458    Name: Matthias Blume
459    Date: 2001/06/25 22:55:00 EDT
460    Tag: blume-20010625-x86pc
461    Description:
462    
463    Fixed a nasty bug in the X86 assembly code that caused signal
464    handlers to fail (crash) randomly.
465    
466    ----------------------------------------------------------------------
467    Name: Matthias Blume
468  Date: 2001/06/25 12:05:00 EDT  Date: 2001/06/25 12:05:00 EDT
469  Tag: blume-20010625-nlffigen  Tag: blume-20010625-nlffigen
470  Description:  Description:
# Line 2502  Line 2953 
2953       elaborator). There were a lot of changes during my "linkpath" trials       elaborator). There were a lot of changes during my "linkpath" trials
2954       that could have been reverted to their original state but weren't.       that could have been reverted to their original state but weren't.
2955       Please, don't be too harsh on me for messing with this code a bit more       Please, don't be too harsh on me for messing with this code a bit more
2956       than what was strictly necessary...  (I _did_ resist the tempation       than what was strictly necessary...  (I _did_ resist the temptation
2957       of doing any "global reformatting" to avoid an untimely death at       of doing any "global reformatting" to avoid an untimely death at
2958       Dave's hands. :)       Dave's hands. :)
2959    

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

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