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

Legend:
Removed from v.852  
changed lines
  Added in v.927

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