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 774, Wed Jan 10 12:50:56 2001 UTC revision 1296, Tue Jan 7 15:40:55 2003 UTC
# Line 8  Line 8 
8  The form of an entry should be:  The form of an entry should be:
9    
10  Name:  Name:
11  Date:  Date: yyyy/mm/dd
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    
15    ----------------------------------------------------------------------
16    Name: Allen Leung
17    Date: 2003/01/07 10:40:00 EST
18    Tag: leunga-20030107-int-rem
19    Description:
20    
21    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
22    The arguments to the SUBL instruction were swapped.
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume
26    Date: 2002/12/12 16:25:00 EST
27    Tag: blume-20021212-risc-ra
28    Description:
29    
30    Fixed a serious bug in the rewrite code for FP spilling/reloading that
31    sent the RA into an infinite loop when floating point registers get
32    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
33    110.37 and 110.38.)
34    There was another set of potential problems related to the handling of
35    MLRISC annotations (but those did not yet cause real problems, apparently).
36    
37    ----------------------------------------------------------------------
38    Name: Matthias Blume
39    Date: 2002/12/06 22:40:00 EST
40    Tag: blume-20021206-cm-fileid
41    Description:
42    
43    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
44    This fixes the problem of CM getting confused by files that suddenly
45    change their identity (e.g., by getting unlinked and recreated by some
46    text editor such as vi).  There might be a better/cheaper/cleaner way
47    of doing this, but for now this will have to do.
48    
49    ----------------------------------------------------------------------
50    Name: Matthias Blume
51    Date: 2002/10/28 09:50:00 EST
52    Tag: blume-20021028-typecheck
53    Description:
54    
55    Exported structure Typecheck from $smlnj/viscomp/core.cm.
56    
57    ----------------------------------------------------------------------
58    Name: Matthias Blume
59    Date: 2002/10/17 09:10:00 EDT
60    Tag: Release_110_42
61    Description:
62    
63    In good old tradition, there has been a slight hiccup so that we have
64    to patch 110.42 after the fact.   The old release tag has been replaced
65    (see below).
66    
67    The change solves a problem with two competing approaches the
68    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
69    each other's way.
70    
71    This change only affects the runtime system code and the installer script.
72    (No new bootfiles.)
73    
74    ----------------------------------------------------------------------
75    Name: Matthias Blume
76    Date: 2002/10/16 12:00:00 EDT
77    Tag: Release_110_42_removed
78    Description:
79    
80    New working release.  New bootfiles.
81    
82    ----------------------------------------------------------------------
83    Name: Matthias Blume
84    Date: 2002/10/10 13:10:00 EDT
85    Tag: blume-20021010-ppc-divs
86    Description:
87    
88    The mltree operator DIVS must be implemented with an overflow check on
89    the PPC because the hardware indicates divide-by-zero using "overflow" as
90    well.
91    
92    ----------------------------------------------------------------------
93    Name: Matthias Blume
94    Date: 2002/07/23 11:45:00
95    Tag: blume-20020723-smlnj-home
96    Description:
97    
98    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
99    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
100    CM_PATHCONFIG is also set), the path configuration file is assumed
101    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
102    the entire tree to some other place and everything will "just work".
103    
104    (Companion commands such as ml-build and ml-makedepend also sense this
105    variable.)
106    
107    ----------------------------------------------------------------------
108    Name: Matthias Blume
109    Date: 2002/07/12 21:19:00 EDT
110    Tag: blume-20020712-liveness
111    Description:
112    
113    Exported two useful "step" functions from liveness module (MLRISC).
114    
115    ----------------------------------------------------------------------
116    Name: Matthias Blume
117    Date: 2002/07/05 16:00 EDT
118    Tag: Release_110_41
119    Description:
120    
121    New working release.  New bootfiles.
122    
123    ----------------------------------------------------------------------
124    Name: Matthias Blume
125    Date: 2002/07/05 10:25:00 EDT
126    Tag: blume-20020705-btimp
127    Description:
128    
129    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
130    other clients can set up backtracing support.
131    
132    ----------------------------------------------------------------------
133    Name: Matthias Blume
134    Date: 2002/06/25 17:23:00 EDT
135    Tag: blume-20020625-fpmax
136    Description:
137    
138    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
139    case.  (The sense of the isNaN test was reversed -- which made min and
140    max always return their first argument.)
141    
142    ----------------------------------------------------------------------
143    Name: Matthias Blume
144    Date: 2002/06/11
145    Tag: blume-20020611-unixpath
146    Description:
147    
148    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
149    
150    ----------------------------------------------------------------------
151    Name: Matthias Blume
152    Date: 2002/06/10 16:35:00 EDT
153    Tag: blume-20020610-ieeereal
154    Description:
155    
156    I back-ported my implementation of IEEEReal.fromString from the
157    idlbasis-devel branch so that we can test it.
158    
159    Another small change is that ppDec tries to give more information
160    than just "<sig>" in the case of functors.  However, this code is
161    broken in some mysterious way if the functor's body's signature
162    has not been declared by ascription but gets inferred from the
163    implementation.  This needs fixing...
164    
165    ----------------------------------------------------------------------
166    Name: Matthias Blume
167    Date: 2002/05/31
168    Tag: blume-20020531-btrace-mode
169    Description:
170    
171    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
172    the wayside when I switched over to using Controls everywhere.)
173    
174    ----------------------------------------------------------------------
175    Name: Lal George
176    Date: 2002/05/23 12:21:40 EDT
177    Tag: george-20020523-visual-labels
178    Description:
179    
180    Labels are now displayed in the graphical output to make
181    the fall-through and target blocks obvious.
182    
183    ----------------------------------------------------------------------
184    Name: Matthias Blume
185    Date: 2002/05/22 11:03:00 EDT
186    Tag: blume-20020522-shrink
187    Description:
188    
189    John tweaked yesterday's fix for 1131 to handle an out-of-memory
190    situation that comes up when allocating huge arrays.
191    
192    ----------------------------------------------------------------------
193    Name: Matthias Blume
194    Date: 2002/05/21 16:00:00 EDT
195    Tag: Release_110_40
196    Description:
197    
198    New working release (110.40).  New bootfiles.
199    
200    [Also: John Reppy fixed GC bug 1131.]
201    
202    ----------------------------------------------------------------------
203    Name: Matthias Blume
204    Date: 2002/05/21 12:35:00 EDT
205    Tag: blume-20020521-cmdoc
206    Description:
207    
208    CM documentation update.
209    
210    ----------------------------------------------------------------------
211    Name: Matthias Blume
212    Date: 2002/05/21 10:55:00 EDT
213    Tag: blume-20020521-misc
214    Description:
215    
216    - John tweaked runtime to be silent on heap export (except when
217      GC messages are on).
218    - I added a few more things (cross-compiling versions of CMB) to
219      config/preloads (as suggestions).
220    
221    ----------------------------------------------------------------------
222    Name: Matthias Blume
223    Date: 2002/05/20 22:25:00 EDT
224    Tag: blume-20020520-controls
225    Description:
226    
227    - Added ControlUtil structure to control-lib.cm.
228    - Use it throughout.
229    - Used Controls facility to define MLRISC controls (as opposed to
230      registering MLRISC control ref cells with Controls after the fact)
231    - Fixed messed-up controls priorities.
232    
233    * Removed again all the stuff from config/preloads that one wouldn't
234      be able to preload at the time the initial heap image is built.
235      (Many libraries, e.g., CML, do not exist yet at this time.  The
236       only libraries that can be preloaded via config/preloads are those
237       that come bundled with the bootfiles.)
238    
239    ----------------------------------------------------------------------
240    Name: Matthias Blume
241    Date: 2002/05/20 10:59:00 EDT
242    Tag: blume-20020520-preloads
243    Description:
244    
245    Added a lot of commented-out suggestions for things to be included
246    in config/preloads.
247    
248    ----------------------------------------------------------------------
249    Name: Allen Leung
250    Date: 2002/05/18 14:20:00 EDT
251    Tag: leunga-20020518-mdl
252    Description:
253    
254    o Made the mdl tool stuff compile and run again.
255    o I've disabled all the stuff that depends on RTL specifications; they
256      are all badly broken anyway.
257    
258    ----------------------------------------------------------------------
259    Name: Matthias Blume
260    Date: 2002/05/17 16:49:00 EDT
261    Tag: blume-20020517-controls
262    Description:
263    
264    0. John Reppy made several modifications to the SML/NJ library.
265       In particular, there is a shiny new controls-lib.cm.
266    
267    1. Pushed new controls interface through compiler so that everything
268       compiles again.
269    
270    2. Added FormatComb and FORMAT_COMB to the CML version of the
271       SML/NJ library (so that CML compiles again).
272    
273    3. Modified init scripts because XXX_DEFAULT environment variables
274       are no longer with us.  (Boot-time initialization is now done
275       using the same environment variables that are also used for
276       startup-time initialization of controls.)
277    
278    ----------------------------------------------------------------------
279    Name: Lal George
280    Date: 2002/05/15 09:20:10 EDT
281    Tag: george-20020515-pseudo-op-decls
282    Description:
283    
284            All pseudo-ops emitted before the first segment declaration
285    such as TEXT, DATA, and BSS directives are assumed to be global
286    declarations and are emitted first in the assembly file. This is
287    useful in a number of situations where one has pseudo-ops that are not
288    specific to any segment, and also works around the constraint that one
289    cannot have client pseudo-ops in the TEXT segment.
290    
291            Because no segment is associated with these declarations it is
292    an error to allocate any space or objects before the first segment
293    directive and an exception will be raised. However, we cannot make
294    this check for client pseudo-ops.
295    
296            These top level declarations are a field in the CFG graph_info.
297    In theory you can continue to add to this field after the CFG has been
298    built -- provided you know what you are doing;-)
299    
300    ----------------------------------------------------------------------
301    Name: Matthias Blume
302    Date: 2002/05/13 16:40:00 EDT
303    Tag: blume-20020513-pp-etc
304    Description:
305    
306    A few minor bugfixes:
307    
308      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
309        (Bogus printouts for redefined bindings still occur.  Compiler
310        bug should no longer occur now.  We need to redo the prettyprinter
311        from scratch.)
312    
313      - CM pathname printer now also adds escape sequences for ( and )
314    
315      - commend and docu fixes for ml-nlffi
316    
317    ----------------------------------------------------------------------
318    Name: Matthias Blume
319    Date: 2002/05/10 16:40:00 EDT
320    Tag: blume-20020510-erg-textio
321    Description:
322    
323    Applied the following bugfix provided by Emden Gansner:
324    
325        Output is corrupted when outputSubstr is used rather than output.
326    
327        The problem occurs when a substring
328    
329            ss = (s, dataStart, dataLen)
330    
331        where dataStart > 0, fills a stream buffer with avail bytes left.
332        avail bytes of s, starting at index dataStart, are copied into the
333        buffer, the buffer is flushed, and then the remaining dataLen-avail
334        bytes of ss are copied into the beginning of the buffer. Instead of
335        starting this copy at index dataStart+avail in s, the current code
336        starts the copy at index avail.
337    
338        Fix:
339        In text-io-fn.sml, change line 695 from
340             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
341        to
342             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
343    
344    ----------------------------------------------------------------------
345    Name: Matthias Blume
346    Date: 2002/04/12 13:55:00 EDT
347    Tag: blume-20020412-assyntax
348    Description:
349    
350    1. Grabbed newer assyntax.h from the XFree86 project.
351    2. Fiddled with how to compile X86.prim.asm without warnings.
352    3. (Very) Minor cleanup in CM.
353    
354    ----------------------------------------------------------------------
355    Name: Matthias Blume
356    Date: 2002/04/01 (no joke!) 17:07:00 EST
357    Tag: blume-20020401-x86div
358    Description:
359    
360    Added full support for div/mod/rem/quot on the x86, using the machine
361    instruction's two results (without clumsily recomputing the remainder)
362    directly where appropriate.
363    
364    Some more extensive power-of-two support was added to the x86 instruction
365    selector (avoiding expensive divs, mods, and muls where they can be
366    replaced with cheaper shifts and masks).  However, this sort of thing
367    ought to be done earlier, e.g., within the CPS optimizer so that
368    all architectures benefit from it.
369    
370    The compiler compiles to a fixed point, but changes might be somewhat
371    fragile nevertheless.  Please, report any strange things that you might
372    see wrt. div/mod/quot/rem...
373    
374    ----------------------------------------------------------------------
375    Name: Matthias Blume
376    Date: 2002/03/29 17:22:00
377    Tag: blume-20020329-div
378    Description:
379    
380    Fixed my broken div/mod logic.  Unfortunately, this means that the
381    inline code for div/mod now has one more comparison than before.
382    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
383    The problem was with quotient = 0, because that alone does not tell
384    us which way the rounding went.  One then has to look at whether
385    remainder and divisor have the same sign...  :(
386    
387    Anyway, I replaced the bootfiles with fresh ones...
388    
389    ----------------------------------------------------------------------
390    Name: Matthias Blume
391    Date: 2002/03/29 14:10:00 EST
392    Tag: blume-20020329-inlprims
393    Description:
394    
395    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
396    
397    Primops have changed. This means that the bin/boot-file formats have
398    changed as well.
399    
400    To make sure that there is no confusion, I made a new version.
401    
402    
403    CHANGES:
404    
405    * removed REMT from mltree (remainder should never overflow).
406    
407    * added primops to deal with divisions of all flavors to the frontend
408    
409    * handled these primops all the way through so they map to their respective
410      MLRISC support
411    
412    * used these primops in the implementation of Int, Int32, Word, Word32
413    
414    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
415    
416    * parameterized INLMIN, INLMAX, and INLABS by a numkind
417    
418    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
419      floating point
420    
421    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
422      and Real (but Real.abs maps to a separate floating-point-only primop)
423    
424    
425    TODO items:
426    
427    * Hacked Alpha32 instruction selection, disabling the selection of REMx
428      instructions because the machine instruction encoder cannot handle
429      them.  (Hppa, PPC, and Sparc instruction selection did not handle
430      REM in the first place, and REM is supported by the x86 machine coder.)
431    
432    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
433      selection phase.  (The two can be streamlined because the hardware
434      delivers both quotient and remainder at the same time anyway.)
435    
436    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
437      (Currently the behavior is inconsistent both across architectures and
438      wrt. the draft Basis spec.)
439    
440    * Word8 should eventually be handled natively, too.
441    
442    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
443      as if there currently is no execution path that could trigger it in
444      SML/NJ.  (The assumptions underlying functions arith and promotable do not
445      hold for things like multiplication and division.)
446    
447    ----------------------------------------------------------------------
448    Name: Matthias Blume
449    Date: 2002/03/27 16:27:00 EST
450    Tag: blume-20020327-mlrisc-divisions
451    Description:
452    
453    Added support for all four division operations (ML's div, mod, quot,
454    and rem) to MLRISC.  In the course of doing so, I also rationalized
455    the naming (no more annoying switch-around of DIV and QUOT), by
456    parameterizing the operation by div_rounding_mode (which can be either
457    DIV_TO_ZERO or DIV_TO_NEGINF).
458    
459    The generic MLTreeGen functor takes care of compiling all four
460    operations down to only round-to-zero div.
461    
462    Missing pieces:
463    
464      * Doing something smarter than relying on MLTreeGen on architectures
465        like, e.g., the x86 where hardware division delivers both quotient and
466        remainder at the same time.  With this, the implementation of the
467        round-to-neginf operations could be further streamlined.
468    
469      * Remove inlining support for div/mod/rem from the frontend and replace it
470        with primops that get carried through to the backend.  Do this for all
471        int and word types.
472    
473    ----------------------------------------------------------------------
474    Name: Matthias Blume
475    Date: 2002/03/25 17:25:00 EST
476    Tag: blume-20020325-divmod
477    Description:
478    
479    I improved (hopefully without breaking them) the implementation of Int.div,
480    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
481    advantage of the following observations:
482    
483      Let  q = x quot y      r = x rem y
484           d = x div  y      m = x mod y
485    
486    where "quot" is the round-to-zero version of integer division that
487    hardware usually provides.  Then we have:
488    
489         r = x - q * y        where neither the * nor the - will overflow
490         d = if q >= 0 orelse x = q * y then q else q - 1
491                              where neither the * nor the - will overflow
492         m = if q >= 0 orelse r = 0 then r else r + y
493                              where the + will not overflow
494    
495    This results in substantial simplification of the generated code.
496    The following table shows the number of CFG nodes and edges generated
497    for
498            fun f (x, y) = x OPER y
499            (* with OPER \in div, mod, quot, rem *)
500    
501    
502        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
503        --------------------------------------------------------
504         div |         24 |         39 |         12 |         16
505         mod |         41 |         71 |         12 |         16
506        quot |          8 |         10 |          8 |         10
507         rem |         10 |         14 |          8 |         10
508    
509    
510    ----------------------------------------------------------------------
511    Name: Matthias Blume
512    Date: 2002/03/25 22:06:00 EST
513    Tag: blume-20020325-cprotobug
514    Description:
515    
516    Fixed a bug in cproto (c prototype decoder).
517    
518    ----------------------------------------------------------------------
519    Name: Matthias Blume
520    Date: 2002/03/25 16:00:00 EST
521    Tag: blume-20020325-raw-primops
522    Description:
523    
524    I did some cleanup to Allen's new primop code and
525    replaced yesterday's bootfiles with new ones.
526    (But they are stored in the same place.)
527    
528    ----------------------------------------------------------------------
529    Name: Matthias Blume
530    Date: 2002/03/24 22:40:00 EST
531    Tag: blume-20020324-bootfiles
532    Description:
533    
534    Made the bootfiles that Allen asked for.
535    
536    ----------------------------------------------------------------------
537    Name: Allen Leung
538    Date: 2002/03/23 15:50:00 EST
539    Tag: leunga-20020323-flint-cps-rcc-primops
540    Description:
541    
542      1. Changes to FLINT primops:
543    
544        (* make a call to a C-function;
545         * The primop carries C function prototype information and specifies
546         * which of its (ML-) arguments are floating point. C prototype
547         * information is for use by the backend, ML information is for
548         * use by the CPS converter. *)
549      | RAW_CCALL of { c_proto: CTypes.c_proto,
550                       ml_args: ccall_type list,
551                       ml_res_opt: ccall_type option,
552                       reentrant : bool
553                     } option
554       (* Allocate uninitialized storage on the heap.
555        * The record is meant to hold short-lived C objects, i.e., they
556        * are not ML pointers.  With the tag, the representation is
557        * the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8)
558        *)
559      | RAW_RECORD of {tag:bool,sz:int}
560      and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR
561    
562      2.  These CPS primops are now overloaded:
563    
564           rawload of {kind:numkind}
565           rawstore of {kind:numkind}
566    
567          The one argument form is:
568    
569             rawload {kind} address
570    
571          The two argument form is:
572    
573             rawload {kind} [ml object, byte-offset]
574    
575      3. RAW_CCALL/RCC now takes two extra arguments:
576    
577         a. The first is whether the C call is reentrant, i.e., whether
578            ML state should be saved and restored.
579         b. The second argument is a string argument specifying the name of
580            library and the C function.
581    
582         These things are currently not handled in the code generator, yet.
583    
584      4. In CProto,
585    
586         An encoding type of "bool" means "ml object" and is mapped into
587         C prototype of PTR.  Note that "bool" is different than "string",
588         even though "string" is also mapped into PTR, because "bool"
589         is assigned an CPS type of BOGt, while "string" is assigned INT32t.
590    
591      5. Pickler/unpicker
592    
593         Changed to handle RAW_RECORD and newest RAW_CCALL
594    
595      6. MLRiscGen,
596    
597         1. Changed to handle the new rawload/rawstore/rawrecord operators.
598         2. Code for handling C Calls has been moved to a new module CPSCCalls,
599            in the file CodeGen/cpscompile/cps-c-calls.sml
600    
601      7. Added the conditional move operator
602    
603             condmove of branch
604    
605         to cps.  Generation of this is still buggy so it is currently
606         disabled.
607    
608    ----------------------------------------------------------------------
609    Name: Lal George
610    Date: 2002/03/22 14:18:25 EST
611    Tag: george-20020322-cps-branch-prob
612    Description:
613    
614    Implemented the Ball-Larus branch prediction-heuristics, and
615    incorporated graphical viewers for control flow graphs.
616    
617    Ball-Larus Heuristics:
618    ---------------------
619    See the file compiler/CodeGen/cpscompile/cpsBranchProb.sml.
620    
621    By design it uses the Dempster-Shafer theory for combining
622    probabilities.  For example, in the function:
623    
624        fun f(n,acc) = if n = 0 then acc else f(n-1, n*acc)
625    
626    the ball-larus heuristics predicts that the n=0 is unlikely
627    (OH-heuristic), and the 'then' branch is unlikely because of the
628    RH-heuristic -- giving the 'then' branch an even lower combined
629    probability using the Dempster-Shafer theory.
630    
631    Finally, John Reppy's loop analysis in MLRISC, further lowers the
632    probability of the 'then' branch because of the loop in the else
633    branch.
634    
635    
636    Graphical Viewing:
637    ------------------
638    I merely plugged in Allen's graphical viewers into the compiler. The
639    additional code is not much. At the top level, saying:
640    
641            Control.MLRISC.getFlag "cfg-graphical-view" := true;
642    
643    will display the graphical view of the control flow graph just before
644    back-patching.  daVinci must be in your path for this to work. If
645    daVinci is not available, then the default viewer can be changed
646    using:
647    
648            Control.MLRISC.getString "viewer"
649    
650    which can be set to "dot" or "vcg" for the corresponding viewers. Of
651    course, these viewers must be in your path.
652    
653    The above will display the compilation unit at the level of clusters,
654    many of which are small, boring, and un-interesting. Also setting:
655    
656            Control.MLRISC.getInt "cfg-graphical-view_size"
657    
658    will display clusters that are larger than the value set by the above.
659    
660    
661    ----------------------------------------------------------------------
662    Name: Matthias Blume
663    Date: 2002/03/21 22:20:00 EST
664    Tag: blume-20020321-kmp-bugfix
665    Description:
666    
667    Changed the interface to the KMP routine in PreString and fixed
668    a minor bug in one place where it was used.
669    
670    ----------------------------------------------------------------------
671    Name: Allen Leung
672    Date: 2002/03/21 20:30:00 EST
673    Tag: leunga-20020321-cfg
674    Description:
675    
676      Fixed a potential problem in cfg edge splitting.
677    
678    ----------------------------------------------------------------------
679    Name: Allen Leung
680    Date: 2002/03/21 17:15:00 EST
681    Tag: leunga-20020321-x86-fp-cfg
682    Description:
683    
684      1. Recoded the buggy parts of x86-fp.
685    
686         a. All the block reordering code has been removed.
687            We now depend on the block placement phases to do this work.
688    
689         b. Critical edge splitting code has been simplified and moved into the
690            CFG modules, as where they belong.
691    
692         Both of these were quite buggy and complex.  The code is now much, much
693         simpler.
694    
695      2. X86 backend.
696    
697         a. Added instructions for 64-bit support.  Instruction selection for
698            64-bit has not been committed, however, since that
699            requires changes to MLTREE which haven't been approved by
700            Lal and John.
701    
702         b. Added support for FUCOMI and FUCOMIP when generating code for
703            PentiumPro and above.  We only generate these instructions in
704            the fast-fp mode.
705    
706         c. Added cases for JP and JNP in X86FreqProps.
707    
708      3. CFG
709    
710         CFG now has a bunch of methods for edge splitting and merging.
711    
712      4. Machine description.
713    
714         John's simplification of MLTREE_BASIS.fcond broke a few machine
715         description things:
716    
717         rtl-build.{sig,sml} and hppa.mdl fixed.
718    
719         NOTE: the machine description stuff in the repository is still broken.
720               Again, I can't put my fixes in because that involves
721               changes to MLTREE.
722    
723    ----------------------------------------------------------------------
724    Name: Matthias Blume
725    Date: 2002/03/20 15:55:00 EST
726    Tag: blume-20020320-kmp
727    Description:
728    
729    Implemented Knuth-Morris-Pratt string matching in PreString and used
730    it for String.isSubstring, Substring.isSubstring, and
731    Substring.position.
732    
733    (Might need some stress-testing.  Simple examples worked fine.)
734    
735    ----------------------------------------------------------------------
736    Name: Matthias Blume
737    Date: 2002/03/19 16:37:00 EST
738    Tag: blume-20020319-witnesses
739    Description:
740    
741    Added a structure C.W and functions convert/Ptr.convert to ml-nlffi-lib.
742    
743    This implements a generic mechanism for changing constness qualifiers
744    anywhere within big C types without resorting to outright "casts".
745    (So far, functions such as C.rw/C.ro or C.Ptr.rw/C.Ptr.ro only let you
746    modify the constness at the outermost level.)
747    The implementation of "convert" is based on the idea of "witness"
748    values -- values that are not used by the operation but whose types
749    "testify" to their applicability.  On the implementation side, "convert"
750    is simply a projection (returning its second curried argument).  With
751    cross-module inlining, it should not result in any machine code being
752    generated.
753    
754    ----------------------------------------------------------------------
755    Name: Matthias Blume
756    Date: 2002/03/15 16:40:00 EST
757    Tag: blume-20020315-basis
758    Description:
759    
760    Provided (preliminary?) implementations for
761    
762      {String,Substring}.{concatWith,isSuffix,isSubstring}
763    
764    and
765    
766      Substring.full
767    
768    Those are in the Basis spec but they were missing in SML/NJ.
769    
770    ----------------------------------------------------------------------
771    Name: Matthias Blume
772    Date: 2002/03/14 21:30:00 EST
773    Tag: blume-20020314-controls
774    Description:
775    
776    Controls:
777    ---------
778    
779    1. Factored out the recently-added Controls : CONTROLS stuff and put
780       it into its own library $/controls-lib.cm.  The source tree for
781       this is under src/smlnj-lib/Controls.
782    
783    2. Changed the names of types and functions in this interface, so they
784       make a bit more "sense":
785    
786          module -> registry
787          'a registry -> 'a group
788    
789    3. The interface now deals in ref cells only.  The getter/setter interface
790       is (mostly) gone.
791    
792    4. Added a function that lets one register an already-existing ref cell.
793    
794    5. Made the corresponding modifications to the rest of the code so that
795       everything compiles again.
796    
797    6. Changed the implementation of Controls.MLRISC back to something closer
798       to the original.  In particular, this module (and therefore MLRISC)
799       does not depend on Controls.  There now is some link-time code in
800       int-sys.sml that registers the MLRISC controls with the Controls
801       module.
802    
803    CM:
804    ---
805    
806      * One can now specify the lambda-split aggressiveness in init.cmi.
807    
808    ----------------------------------------------------------------------
809    Name: Allen Leung
810    Date: 2002/03/13 17:30:00 EST
811    Tag: leunga-20020313-x86-fp-unary
812    Description:
813    
814    Bug fix for:
815    
816    > leunga@weaselbane:~/Yale/tmp/sml-dist{21} bin/sml
817    > Standard ML of New Jersey v110.39.1 [FLINT v1.5], March 08, 2002
818    > - fun f(x,(y,z)) = Real.~ y;
819    > [autoloading]
820    > [autoloading done]
821    >       fchsl   (%eax), 184(%esp)
822    > Error: MLRisc bug: X86MCEmitter.emitInstr
823    >
824    > uncaught exception Error
825    >   raised at: ../MLRISC/control/mlriscErrormsg.sml:16.14-16.19
826    
827    The problem was that the code generator did not generate any fp registers
828    in this case, and the ra didn't know that it needed to run the X86FP phase to
829    translate the pseudo fp instruction.   This only happened with unary fp
830    operators in certain situations.
831    
832    ----------------------------------------------------------------------
833    Name: Matthias Blume
834    Date: 2002/03/13 14:00:00 EST
835    Tag: blume-20020313-overload-etc
836    Description:
837    
838    1. Added _overload as a synonym for overload for backward compatibility.
839       (Control.overloadKW must be true for either version to be accepted.)
840    
841    2. Fixed bug in install script that caused more things to be installed
842       than what was requested in config/targets.
843    
844    3. Made CM aware of the (_)overload construct so that autoloading
845       works.
846    
847    ----------------------------------------------------------------------
848    Name: Matthias Blume
849    Date: 2002/03/12 22:03:00 EST
850    Tag: blume-20020312-url
851    Description:
852    
853    Forgot to update BOOT and srcarchiveurl.
854    
855    ----------------------------------------------------------------------
856    Name: Matthias Blume
857    Date: 2002/03/12 17:30:00 EST
858    Tag: blume-20020312-version110392
859    Description:
860    
861    Yet another version number bump (because of small changes to the
862    binfile format).  Version number is now 110.39.2.  NEW BOOTFILES!
863    
864    Changes:
865    
866      The new pid generation scheme described a few weeks ago was overly
867      complicated.  I implemented a new mechanism that is simpler and
868      provides a bit more "stability":  Once CM has seen a compilation
869      unit, it keeps its identity constant (as long as you do not delete
870      those crucial CM/GUID/* files).  This means that when you change
871      an interface, compile, then go back to the old interface, and
872      compile again, you arrive at the original pid.
873    
874      There now also is a mechanism that instructs CM to use the plain
875      environment hash as a module's pid (effectively making its GUID
876      the empty string).  For this, "noguid" must be specified as an
877      option to the .sml file in question within its .cm file.
878      This is most useful for code that is being generated by tools such
879      as ml-nlffigen (because during development programmers tend to
880      erase the tool's entire output directory tree including CM's cached
881      GUIDs).  "noguid" is somewhat dangerous (since it can be used to locally
882      revert to the old, broken behavior of SML/NJ, but in specific cases
883      where there is no danger of interface confusion, its use is ok
884      (I think).
885    
886      ml-nlffigen by default generates "noguid" annotations.  They can be
887      turned off by specifying -guid in its command line.
888    
889    ----------------------------------------------------------------------
890    Name: Lal George
891    Date: 2002/03/12 12 14:42:36 EST
892    Tag: george-20020312-frequency-computation
893    Description:
894    
895    Integrated jump chaining and static block frequency into the
896    compiler. More details and numbers later.
897    
898    ----------------------------------------------------------------------
899    Name: Lal George
900    Date: 2002/03/11 11 22:38:53 EST
901    Tag: george-20020311-jump-chain-elim
902    Description:
903    
904    Tested the jump chain elimination on all architectures (except the
905    hppa).  This is on by default right now and is profitable for the
906    alpha and x86, however, it may not be profitable for the sparc and ppc
907    when compiling the compiler.
908    
909    The gc test will typically jump to a label at the end of the cluster,
910    where there is another jump to an external cluster containing the actual
911    code to invoke gc. This is to allow factoring of common gc invocation
912    sequences. That is to say, we generate:
913    
914            f:
915               testgc
916               ja   L1      % jump if above to L1
917    
918            L1:
919               jmp L2
920    
921    
922    After jump chain elimination the 'ja L1' instructions is converted to
923    'ja L2'. On the sparc and ppc, many of the 'ja L2' instructions may end
924    up being implemented in their long form (if L2 is far away) using:
925    
926            jbe     L3      % jump if below or equal to L3
927            jmp     L2
928         L3:
929            ...
930    
931    
932    For large compilation units L2  may be far away.
933    
934    
935    ----------------------------------------------------------------------
936    Name: Matthias Blume
937    Date: 2002/03/11 13:30:00 EST
938    Tag: blume-20020311-mltreeeval
939    Description:
940    
941    A functor parameter was missing.
942    
943    ----------------------------------------------------------------------
944    Name: Allen Leung
945    Date: 2002/03/11 10:30:00 EST
946    Tag: leunga-20020311-runtime-string0
947    Description:
948    
949       The representation of the empty string now points to a
950    legal null terminated C string instead of unit.  It is now possible
951    to convert an ML string into C string with InlineT.CharVector.getData.
952    This compiles into one single machine instruction.
953    
954    ----------------------------------------------------------------------
955    Name: Allen Leung
956    Date: 2002/03/10 23:55:00 EST
957    Tag: leunga-20020310-x86-call
958    Description:
959    
960       Added machine generation for CALL instruction (relative displacement mode)
961    
962    ----------------------------------------------------------------------
963    Name: Matthias Blume
964    Date: 2002/03/08 16:05:00
965    Tag: blume-20020308-entrypoints
966    Description:
967    
968    Version number bumped to 110.39.1.  NEW BOOTFILES!
969    
970    Entrypoints: non-zero offset into a code object where execution should begin.
971    
972    - Added the notion of an entrypoint to CodeObj.
973    - Added reading/writing of entrypoint info to Binfile.
974    - Made runtime system bootloader aware of entrypoints.
975    - Use the address of the label of the first function given to mlriscGen
976      as the entrypoint.  This address is currently always 0, but it will
977      not be 0 once we turn on block placement.
978    - Removed the linkage cluster code (which was The Other Way(tm) of dealing
979      with entry points) from mlriscGen.
980    
981    ----------------------------------------------------------------------
982    Name: Allen Leung
983    Date: 2002/03/07 20:45:00 EST
984    Tag: leunga-20020307-x86-cmov
985    Description:
986    
987       Bug fixes for CMOVcc on x86.
988    
989       1. Added machine code generation for CMOVcc
990       2. CMOVcc is now generated in preference over SETcc on PentiumPro or above.
991       3. CMOVcc cannot have an immediate operand as argument.
992    
993    ----------------------------------------------------------------------
994    Name: Matthias Blume
995    Date: 2002/03/07 16:15:00 EST
996    Tag: blume-20020307-controls
997    Description:
998    
999    This is a very large but mostly boring patch which makes (almost)
1000    every tuneable compiler knob (i.e., pretty much everything under
1001    Control.* plus a few other things) configurable via both the command
1002    line and environment variables in the style CM did its configuration
1003    until now.
1004    
1005    Try starting sml with '-h' (or, if you are brave, '-H')
1006    
1007    To this end, I added a structure Controls : CONTROLS to smlnj-lib.cm which
1008    implements the underlying generic mechanism.
1009    
1010    The interface to some of the existing such facilities has changed somewhat.
1011    For example, the MLRiscControl module now provides mkFoo instead of getFoo.
1012    (The getFoo interface is still there for backward-compatibility, but its
1013    use is deprecated.)
1014    
1015    The ml-build script passes -Cxxx=yyy command-line arguments through so
1016    that one can now twiddle the compiler settings when using this "batch"
1017    compiler.
1018    
1019    TODO items:
1020    
1021    We should go through and throw out all controls that are no longer
1022    connected to anything.  Moreover, we should go through and provide
1023    meaningful (and correct!) documentation strings for those controls
1024    that still are connected.
1025    
1026    Currently, multiple calls to Controls.new are accepted (only the first
1027    has any effect).  Eventually we should make sure that every control
1028    is being made (via Controls.new) exactly once.  Future access can then
1029    be done using Controls.acc.
1030    
1031    Finally, it would probably be a good idea to use the getter-setter
1032    interface to controls rather than ref cells.  For the time being, both
1033    styles are provided by the Controls module, but getter-setter pairs are
1034    better if thread-safety is of any concern because they can be wrapped.
1035    
1036    *****************************************
1037    
1038    One bug fix: The function blockPlacement in three of the MLRISC
1039    backpatch files used to be hard-wired to one of two possibilities at
1040    link time (according to the value of the placementFlag).  But (I
1041    think) it should rather sense the flag every time.
1042    
1043    *****************************************
1044    
1045    Other assorted changes (by other people who did not supply a HISTORY entry):
1046    
1047    1. the cross-module inliner now works much better (Monnier)
1048    2. representation of weights, frequencies, and probabilities in MLRISC
1049       changed in preparation of using those for weighted block placement
1050       (Reppy, George)
1051    
1052    ----------------------------------------------------------------------
1053    Name: Lal George
1054    Date: 2002/03/07 14:44:24 EST 2002
1055    Tag: george-20020307-weighted-block-placement
1056    
1057    Tested the weighted block placement optimization on all architectures
1058    (except the hppa) using AMPL to generate the block and edge frequencies.
1059    Changes were required in the machine properties to correctly
1060    categorize trap instructions. There is an MLRISC flag
1061    "weighted-block-placement" that can be used to enable weighted block
1062    placement, but this will be ineffective without block/edge
1063    frequencies (coming soon).
1064    
1065    
1066    ----------------------------------------------------------------------
1067    Name: Lal George
1068    Date: 2002/03/05 17:24:48 EST
1069    Tag: george-20020305-linkage-cluster
1070    
1071    In order to support the block placement optimization, a new cluster
1072    is generated as the very first cluster (called the linkage cluster).
1073    It contains a single jump to the 'real' entry point for the compilation
1074    unit. Block placement has no effect on the linkage cluster itself, but
1075    all the other clusters  have full freedom in the manner in which they
1076    reorder blocks or functions.
1077    
1078    On the x86 the typical linkage code that is generated is:
1079       ----------------------
1080            .align 2
1081       L0:
1082            addl    $L1-L0, 72(%esp)
1083            jmp     L1
1084    
1085    
1086            .align  2
1087       L1:
1088       ----------------------
1089    
1090    72(%esp) is the memory location for the stdlink register. This
1091    must contain the address of the CPS function being called. In the
1092    above example, it contains the address of  L0; before
1093    calling L1 (the real entry point for the compilation unit), it
1094    must contain the address for L1, and hence
1095    
1096            addl $L1-L0, 72(%esp)
1097    
1098    I have tested this on all architectures except the hppa.The increase
1099    in code size is of course negligible
1100    
1101    ----------------------------------------------------------------------
1102    Name: Allen Leung
1103    Date: 2002/03/03 13:20:00 EST
1104    Tag: leunga-20020303-mlrisc-tools
1105    
1106      Added #[ ... ] expressions to mlrisc tools
1107    
1108    ----------------------------------------------------------------------
1109    Name: Matthias Blume
1110    Date: 2002/02/27 12:29:00 EST
1111    Tag: blume-20020227-cdebug
1112    Description:
1113    
1114    - made types in structure C and C_Debug to be equal
1115    - got rid of code duplication (c-int.sml vs. c-int-debug.sml)
1116    - there no longer is a C_Int_Debug (C_Debug is directly derived from C)
1117    
1118    ----------------------------------------------------------------------
1119    Name: Matthias Blume
1120    Date: 2002/02/26 12:00:00 EST
1121    Tag: blume-20020226-ffi
1122    Description:
1123    
1124    1. Fixed a minor bug in CM's "noweb" tool:
1125       If numbering is turned off, then truly don't number (i.e., do not
1126       supply the -L option to noweb).  The previous behavior was to supply
1127       -L'' -- which caused noweb to use the "default" line numbering scheme.
1128       Thanks to Chris Richards for pointing this out (and supplying the fix).
1129    
1130    2. Once again, I reworked some aspects of the FFI:
1131    
1132       A. The incomplete/complete type business:
1133    
1134       - Signatures POINTER_TO_INCOMPLETE_TYPE and accompanying functors are
1135         gone!
1136       - ML types representing an incomplete type are now *equal* to
1137         ML types representing their corresponding complete types (just like
1138         in C).  This is still safe because ml-nlffigen will not generate
1139         RTTI for incomplete types, nor will it generate functions that
1140         require access to such RTTI.   But when ML code generated from both
1141         incomplete and complete versions of the C type meet, the ML types
1142         are trivially interoperable.
1143    
1144         NOTE:  These changes restore the full generality of the translation
1145         (which was previously lost when I eliminated functorization)!
1146    
1147       B. Enum types:
1148    
1149       - Structure C now has a type constructor "enum" that is similar to
1150         how the "su" constructor works.  However, "enum" is not a phantom
1151         type because each "T enum" has values (and is isomorphic to
1152         MLRep.Signed.int).
1153       - There are generic access operations for enum objects (using
1154         MLRep.Signed.int).
1155       - ml-nlffigen will generate a structure E_foo for each "enum foo".
1156         * The structure contains the definition of type "mlrep" (the ML-side
1157         representation type of the enum).  Normally, mlrep is the same
1158         as "MLRep.Signed.int", but if ml-nlffigen was invoked with "-ec",
1159         then mlrep will be defined as a datatype -- thus facilitating
1160         pattern matching on mlrep values.
1161         ("-ec" will be suppressed if there are duplicate values in an
1162          enumeration.)
1163         * Constructors ("-ec") or values (no "-ec") e_xxx of type mlrep
1164         will be generated for each C enum constant xxx.
1165         * Conversion functions m2i and i2m convert between mlrep and
1166         MLRep.Signed.int.  (Without "-ec", these functions are identities.)
1167         * Coversion functions c and ml convert between mlrep and "tag enum".
1168         * Access functions (get/set) fetch and store mlrep values.
1169       - By default (unless ml-nlffigen was invoked with "-nocollect"), unnamed
1170         enumerations are merged into one single enumeration represented by
1171         structure E_'.
1172    
1173    ----------------------------------------------------------------------
1174    Name: Allen Leung
1175    Date: 2002/02/25 04:45:00 EST
1176    Tag: leunga-20020225-cps-spill
1177    
1178    This is a new implementation of the CPS spill phase.
1179    The new phase is in the new file compiler/CodeGen/cpscompile/spill-new.sml
1180    In case of problems, replace it with the old file spill.sml
1181    
1182    The current compiler runs into some serious performance problems when
1183    constructing a large record.  This can happen when we try to compile a
1184    structure with many items.  Even a very simple structure like the following
1185    makes the compiler slow down.
1186    
1187        structure Foo = struct
1188           val x_1 = 0w1 : Word32.int
1189           val x_2 = 0w2 : Word32.int
1190           val x_3 = 0w3 : Word32.int
1191           ...
1192           val x_N = 0wN : Word32.int
1193        end
1194    
1195    The following table shows the compile time, from N=1000 to N=4000,
1196    with the old compiler:
1197    
1198    N
1199    1000   CPS 100 spill                           0.04u  0.00s  0.00g
1200           MLRISC ra                               0.06u  0.00s  0.05g
1201              (spills = 0 reloads = 0)
1202           TOTAL                                   0.63u  0.07s  0.21g
1203    
1204    1100   CPS 100 spill                           8.25u  0.32s  0.64g
1205           MLRISC ra                               5.68u  0.59s  3.93g
1206              (spills = 0 reloads = 0)
1207           TOTAL                                   14.71u  0.99s  4.81g
1208    
1209    1500   CPS 100 spill                           58.55u  2.34s  1.74g
1210           MLRISC ra                               5.54u  0.65s  3.91g
1211              (spills = 543 reloads = 1082)
1212           TOTAL                                   65.40u  3.13s  6.00g
1213    
1214    2000   CPS 100 spill                           126.69u  4.84s  3.08g
1215           MLRISC ra                               0.80u  0.10s  0.55g
1216              (spills = 42 reloads = 84)
1217           TOTAL                                   129.42u  5.10s  4.13g
1218    
1219    3000   CPS 100 spill                           675.59u  19.03s  11.64g
1220           MLRISC ra                               2.69u  0.27s  1.38g
1221              (spills = 62 reloads = 124)
1222           TOTAL                                   682.48u  19.61s  13.99g
1223    
1224    4000   CPS 100 spill                           2362.82u  56.28s  43.60g
1225           MLRISC ra                               4.96u  0.27s  2.72g
1226              (spills = 85 reloads = 170)
1227           TOTAL                                   2375.26u  57.21s  48.00g
1228    
1229    As you can see the old cps spill module suffers from some serious
1230    performance problem.  But since I cannot decipher the old code fully,
1231    instead of patching the problems up, I'm reimplementing it
1232    with a different algorithm.  The new code is more modular,
1233    smaller when compiled, and substantially faster
1234    (O(n log n) time and O(n) space).  Timing of the new spill module:
1235    
1236    4000  CPS 100 spill                           0.02u  0.00s  0.00g
1237          MLRISC ra                               0.25u  0.02s  0.15g
1238             (spills=1 reloads=3)
1239          TOTAL                                   7.74u  0.34s  1.62g
1240    
1241    Implementation details:
1242    
1243    As far as I can tell, the purpose of the CPS spill module is to make sure the
1244    number of live variables at any program point (the bandwidth)
1245    does not exceed a certain limit, which is determined by the
1246    size of the spill area.
1247    
1248    When the bandwidth is too large, we decrease the register pressure by
1249    packing live variables into spill records.  How we achieve this is
1250    completely different than what we did in the old code.
1251    
1252    First, there is something about the MLRiscGen code generator
1253    that we should be aware of:
1254    
1255    o MLRiscGen performs code motion!
1256    
1257       In particular, it will move floating point computations and
1258       address computations involving only the heap pointer to
1259       their use sites (if there is only a single use).
1260       What this means is that if we have a CPS record construction
1261       statement
1262    
1263           RECORD(k,vl,w,e)
1264    
1265       we should never count the new record address w as live if w
1266       has only one use (which is often the case).
1267    
1268       We should do something similar to floating point, but the transformation
1269       there is much more complex, so I won't deal with that.
1270    
1271    Secondly, there are now two new cps primops at our disposal:
1272    
1273     1. rawrecord of record_kind option
1274        This pure operator allocates some uninitialized storage from the heap.
1275        There are two forms:
1276    
1277         rawrecord NONE [INT n]  allocates a tagless record of length n
1278         rawrecord (SOME rk) [INT n] allocates a tagged record of length n
1279                                     and initializes the tag.
1280    
1281     2. rawupdate of cty
1282          rawupdate cty (v,i,x)
1283          Assigns to x to the ith component of record v.
1284          The storelist is not updated.
1285    
1286    We use these new primops for both spilling and increment record construction.
1287    
1288     1. Spilling.
1289    
1290        This is implemented with a linear scan algorithm (but generalized
1291        to trees).  The algorithm will create a single spill record at the
1292        beginning of the cps function and use rawupdate to spill to it,
1293        and SELECT or SELp to reload from it.  So both spills and reloads
1294        are fine-grain operations.  In contrast, in the old algorithm
1295        "spills" have to be bundled together in records.
1296    
1297        Ideally, we should sink the spill record construction to where
1298        it is needed.  We can even split the spill record into multiple ones
1299        at the places where they are needed.  But CPS is not a good
1300        representation for global code motion, so I'll keep it simple and
1301        am not attempting this.
1302    
1303     2. Incremental record construction (aka record splitting).
1304    
1305        Long records with many component values which are simulatenously live
1306        (recall that single use record addresses are not considered to
1307         be live) are constructed with rawrecord and rawupdate.
1308        We allocate space on the heap with rawrecord first, then gradually
1309        fill it in with rawupdate.  This is the technique suggested to me
1310        by Matthias.
1311    
1312        Some restrictions on when this is applicable:
1313        1. It is not a VECTOR record.  The code generator currently does not handle
1314           this case. VECTOR record uses double indirection like arrays.
1315        2. All the record component values are defined in the same "basic block"
1316           as the record constructor.  This is to prevent speculative
1317           record construction.
1318    
1319    ----------------------------------------------------------------------
1320    Name: Allen Leung
1321    Date: 2002/02/22 01:02:00 EST
1322    Tag: leunga-20020222-mlrisc-tools
1323    
1324    Minor bug fixes in the parser and rewriter
1325    
1326    ----------------------------------------------------------------------
1327    Name: Allen Leung
1328    Date: 2002/02/21 20:20:00 EST
1329    Tag: leunga-20020221-peephole
1330    
1331    Regenerated the peephole files.  Some contained typos in the specification
1332    and some didn't compile because of pretty printing bugs in the old version
1333    of 'nowhere'.
1334    
1335    ----------------------------------------------------------------------
1336    Name: Allen Leung
1337    Date: 2002/02/19 20:20:00 EST
1338    Tag: leunga-20020219-mlrisc-tools
1339    Description:
1340    
1341       Minor bug fixes to the mlrisc-tools library:
1342    
1343       1.  Fixed up parsing colon suffixed keywords
1344       2.  Added the ability to shut the error messages up
1345       3.  Reimplemented the pretty printer and fixed up/improved
1346           the pretty printing of handle and -> types.
1347       4.  Fixed up generation of literal symbols in the nowhere tool.
1348       5.  Added some SML keywords to to sml.sty
1349    
1350    ----------------------------------------------------------------------
1351    Name: Matthias Blume
1352    Date: 2002/02/19 16:20:00 EST
1353    Tag: blume-20020219-cmffi
1354    Description:
1355    
1356    A wild mix of changes, some minor, some major:
1357    
1358    * All C FFI-related libraries are now anchored under $c:
1359        $/c.cm      --> $c/c.cm
1360        $/c-int.cm  --> $c/internals/c-int.cm
1361        $/memory.cm --> $c/memory/memory.cm
1362    
1363    * "make" tool (in CM) now treats its argument pathname slightly
1364      differently:
1365        1. If the native expansion is an absolute name, then before invoking
1366           the "make" command on it, CM will apply OS.Path.mkRelative
1367           (with relativeTo = OS.FileSys.getDir()) to it.
1368        2. The argument will be passed through to subsequent phases of CM
1369           processing without "going native".  In particular, if the argument
1370           was an anchored path, then "make" will not lose track of that anchor.
1371    
1372    * Compiler backends now "know" their respective C calling conventions
1373      instead of having to be told about it by ml-nlffigen.  This relieves
1374      ml-nlffigen from one of its burdens.
1375    
1376    * The X86Backend has been split into X86CCallBackend and X86StdCallBackend.
1377    
1378    * Export C_DEBUG and C_Debug from $c/c.cm.
1379    
1380    * C type encoding in ml-nlffi-lib has been improved to model the conceptual
1381      subtyping relationship between incomplete pointers and their complete
1382      counterparts.  For this, ('t, 'c) ptr has been changed to 'o ptr --
1383      with the convention of instantiating 'o with ('t, 'c) obj whenever
1384      the pointer target type is complete.  In the incomplete case, 'o
1385      will be instantiated with some "'c iobj" -- a type obtained by
1386      using one of the functors PointerToIncompleteType or PointerToCompleteType.
1387    
1388      Operations that work on both incomplete and complete pointer types are
1389      typed as taking an 'o ptr while operations that require the target to
1390      be known are typed as taking some ('t, 'c) obj ptr.
1391    
1392      voidptr is now a bit "more concrete", namely "type voidptr = void ptr'"
1393      where void is an eqtype without any values.  This makes it possible
1394      to work on voidptr values using functions meant to operate on light
1395      incomplete pointers.
1396    
1397    * As a result of the above, signature POINTER_TO_INCOMPLETE_TYPE has
1398      been vastly simplified.
1399    
1400    ----------------------------------------------------------------------
1401    Name: Matthias Blume
1402    Date: 2002/02/19 10:48:00 EST
1403    Tag: blume-20020219-pqfix
1404    Description:
1405    
1406    Applied Chris Okasaki's bug fix for priority queues.
1407    
1408    ----------------------------------------------------------------------
1409    Name: Matthias Blume
1410    Date: 2002/02/15 17:05:00
1411    Tag: Release_110_39
1412    Description:
1413    
1414    Last-minute retagging is becoming a tradition... :-(
1415    
1416    This is the working release 110.39.
1417    
1418    ----------------------------------------------------------------------
1419    Name: Matthias Blume
1420    Date: 2002/02/15 16:00:00 EST
1421    Tag: Release_110_39-orig
1422    Description:
1423    
1424    Working release 110.39.  New bootfiles.
1425    
1426    (Update: There was a small bug in the installer so it wouldn't work
1427    with all shells.  So I retagged. -Matthias)
1428    
1429    ----------------------------------------------------------------------
1430    Name: Matthias Blume
1431    Date: 2002/02/15 14:17:00 EST
1432    Tag: blume-20020215-showbindings
1433    Description:
1434    
1435    Added EnvRef.listBoundSymbols and CM.State.showBindings.  Especially
1436    the latter can be useful for exploring what bindings are available at
1437    the interactive prompt.  (The first function returns only the list
1438    of symbols that are really bound, the second prints those but also the
1439    ones that CM's autoloading mechanism knows about.)
1440    
1441    ----------------------------------------------------------------------
1442    Name: Matthias Blume
1443    Date: 2002/02/15 12:08:00 EST
1444    Tag: blume-20020215-iptrs
1445    Description:
1446    
1447    Two improvements to ml-nlffigen:
1448    
1449      1. Write files only if they do not exist or if their current contents
1450         do not coincide with what's being written.  (That is, avoid messing
1451         with the time stamps unless absolutely necessary.)
1452    
1453      2. Implement a "repository" mechanism for generated files related
1454         to "incomplete pointer types".   See the README file for details.
1455    
1456    ----------------------------------------------------------------------
1457    Name: Matthias Blume
1458    Date: 2002/02/14 11:50:00 EST
1459    Tag: blume-20020214-quote
1460    Description:
1461    
1462    Added a type 't t_' to tag.sml (in ml-nlffi-lib.cm).  This is required
1463    because of the new and improved tag generation scheme.  (Thanks to Allen
1464    Leung for pointing it out.)
1465    
1466    ----------------------------------------------------------------------
1467    Name: Lal George
1468    Date: 2002/02/14 09:55:27 EST 2002
1469    Tag: george-20020214-isabelle-bug
1470    Description:
1471    
1472    Fixed the MLRISC bug sent by Markus Wenzel regarding the compilation
1473    of Isabelle on the x86.
1474    
1475    From Allen:
1476    -----------
1477     I've found the problem:
1478    
1479         in ra-core.sml, I use the counter "blocked" to keep track of the
1480         true number of elements in the freeze queue.  When the counter goes
1481         to zero, I skip examining the queue.  But I've messed up the
1482         bookkeeping in combine():
1483    
1484             else ();
1485             case !ucol of
1486               PSEUDO => (if !cntv > 0 then
1487                     (if !cntu > 0 then blocked := !blocked - 1 else ();
1488                                        ^^^^^^^^^^^^^^^^^^^^^^^
1489                      moveu := mergeMoveList(!movev, !moveu)
1490                     )
1491                  else ();
1492    
1493         combine() is called to coalesce two nodes u and v.
1494         I think I was thinking that if the move counts of u and v are both
1495         greater than zero then after they are coalesced then one node is
1496         removed from the freeze queue.  Apparently I was thinking that
1497         both u and v are of low degree, but that's clearly not necessarily true.
1498    
1499    
1500    02/12/2002:
1501        Here's the patch.  HOL now compiles.
1502    
1503        I don't know how this impact on performance (compile
1504        time or runtime).  This bug caused the RA (especially on the x86)
1505        to go thru the potential spill phase when there are still nodes on the
1506        freeze queue.
1507    
1508    
1509    
1510    
1511    ----------------------------------------------------------------------
1512    Name: Matthias Blume
1513    Date: 2002/02/13 22:40:00 EST
1514    Tag: blume-20020213-fptr-rtti
1515    Description:
1516    
1517    Fixed a bug in ml-nlffigen that was introduced with one of the previous
1518    updates.
1519    
1520    ----------------------------------------------------------------------
1521    Name: Matthias Blume
1522    Date: 2002/02/13 16:41:00 EST
1523    Tag: blume-20020213-cmlpq
1524    Description:
1525    
1526    Added new priority queue export symbols (which have just been added to
1527    smlnj-lib.cm) to CML's version of smlnj-lib.cm.  (Otherwise CML would
1528    not compile and the installer would choke.)
1529    
1530    ----------------------------------------------------------------------
1531    Name: Matthias Blume
1532    Date: 2002/02/13 16:15:00 EST
1533    Tag: blume-20020213-various
1534    Description:
1535    
1536    1. More tweaks to ml-nlffigen:
1537    
1538       - better internal datastructures (resulting in slight speedup)
1539       - "-match" option requires exact match
1540       - "localized" gensym counters (untagged structs/unions nested within
1541         other structs/unions or within typedefs get a fresh counter; their
1542         tag will be prefixed by a concatenation of their parents' tags)
1543       - bug fixes (related to calculation of transitive closure of types
1544         to be included in the output)
1545    
1546    2. Minor Basis updates:
1547    
1548       - added implementations for List.collate and Option.app
1549    
1550    ----------------------------------------------------------------------
1551    Name: Matthias Blume
1552    Date: 2002/02/11 15:55:00 EST
1553    Tag: blume-20020211-gensym
1554    Description:
1555    
1556    Added a "-gensym" option to command line of ml-nlffigen.  This can be
1557    used to specify a "stem" -- a string that is inserted in all "gensym'd"
1558    names (ML structure names that correspond to unnamed C structs, unions,
1559    and enums), so that separate runs of ml-nlffigen do not clash.
1560    
1561    ----------------------------------------------------------------------
1562    Name: Matthias Blume
1563    Date: 2002/02/11 12:05:00 EST
1564    Tag: blume-20020211-gensml
1565    Description:
1566    
1567    A quick fix for a problem with GenSML (in the pgraph-util library):
1568    Make generation of toplevel "local" optional.  (Strictly speaking,
1569    signature definitions within "local" are not legal SML.)
1570    
1571    Other than that: updates to INSTALL and cm/TODO.
1572    
1573    ----------------------------------------------------------------------
1574    Name: Matthias Blume
1575    Date: 2002/02/08 15:00:00 EST
1576    Tag: blume-20020208-uniquepid
1577    Description:
1578    
1579    0. Version number has been bumped to 110.38.1.  NEW BOOTFILES!!!
1580    
1581    1. The installer (config/install.sh) has gotten smarter:
1582    
1583         - Configuration options are a bit easier to specify now
1584           (in config/targets).
1585         - Bug in recognizing .tar.bz2 files fixed.
1586         - Installer automatically resolves dependencies between
1587           configuration options (e.g., if you ask for eXene, you will
1588           also get cml -- regardless whether you asked for it or not).
1589         - Installer can run in "quieter mode" by setting the environment
1590           variable INSTALL_QUIETLY to "true".  "Quieter" does not mean
1591           "completely silent", though.
1592         - Build HashCons library as part of smlnj-lib.
1593    
1594    2. A new scheme for assigning persistent identifiers to compilation
1595       units (and, by extension, to types etc.) has been put into place.
1596       This fixes a long-standing bug where types and even dynamic values
1597       can get internally confused, thereby compromising type safety
1598       (abstraction) and dynamic correctness.  See
1599    
1600         http://cm.bell-labs.com/cm/cs/who/blume/pid-confusion.tgz
1601    
1602       for an example of how things could go wrong until now.
1603    
1604       The downside of the new scheme is that pids are not quite as
1605       persistent as they used to be: CM will generate a fresh pid
1606       for every compilation unit that it thinks it sees for the first
1607       time.  That means that if you compile starting from a clean, fresh
1608       source tree at two different times, you end up with different
1609       binaries.
1610    
1611       Cutoff recompilation, however, has not been compromised because
1612       CM keeps pid information in special caches between runs.
1613    
1614    ----------------------------------------------------------------------
1615    Name: Lal George
1616    Date: 2002/02/07 15:34:13 EST 2002
1617    Tag: <none>
1618    Description:
1619    
1620    Compilers that generate assembly code may produce  global labels
1621    whose value is resolved at link time. The various peephole optimization
1622    modules did not take this in account.
1623    
1624    TODO. The Labels.addrOf function should really return an option
1625    type so that clients are forced to deal with this issue, rather
1626    than an exception being raised.
1627    
1628    ----------------------------------------------------------------------
1629    Name: Lal George
1630    Date: 2002/02/06 13:55:02 EST
1631    Tag: george-20020206-ra-breakup
1632    Description:
1633    
1634    1. A bug fix from Allen.
1635    
1636        A typo causes extra fstp %st(0)'s to be generated at compensation
1637        edges, which might cause stack underflow traps at runtime.  This
1638        occurs in fft where there are extraneous fstps right before the 'into'
1639        trap instruction (in this case they are harmless since none of the
1640        integers overflow.)
1641    
1642    2. Pulled out various utility modules that were embedded in the modules
1643       of the register allocator. I need these modules for other purposes, but
1644       they are not complete enough to put into a library (just yet).
1645    ----------------------------------------------------------------------
1646    Name: Matthias Blume
1647    Date: 2002/01/31 16:05:00 EST
1648    Tag: blume-20020131-sparc-ccalls
1649    Description:
1650    
1651    1. C-calls on Sparc needlessly allocated a huge chunk (96 bytes)
1652       of extra stack space by mistake.  Fixed.
1653    
1654    2. Bug in logic of handling of command-line options in ml-nlffigen fixed.
1655    
1656    ----------------------------------------------------------------------
1657    Name: Allen Leung
1658    Date: 2002/01/30
1659    Tag: leunga-20020130-nowhere-bug-fix
1660    Description:
1661    
1662       MLRISC bug fixes:
1663       1. Fixed a bindings computation bug in the 'nowhere' program generator tool.
1664       2. MachineInt.fromString was negating its value.
1665    
1666    ----------------------------------------------------------------------
1667    Name: Matthias Blume
1668    Date: 2002/01/29
1669    Tag: blume-20020129-INSTALL
1670    Description:
1671    
1672    - Added somewhat detailed installation instructions (file INSTALL).
1673    - Fixed curl-detection bug in config/install.sh.
1674    - It is now possible to select the URL getter using the URLGETTER
1675      environment variable:
1676    
1677          not set / "unknown"      --> automatic detection (script tries wget,
1678                                       curl, and lynx)
1679          "wget" / "curl" / "lynx" --> use the specified program (script "knows"
1680                                       how to properly invoke them)
1681          other                    --> use $URLGETTER directly, it must take
1682                                       precisely two command-line arguments
1683                                       (source URL and destination file name)
1684    
1685    ----------------------------------------------------------------------
1686    Name: Matthias Blume
1687    Date: 2002/01/28
1688    Tag: blume-20020128-sparc-ccalls
1689    Description:
1690    
1691    - Fixed problem with calculation of "used" registers in sparc-c-calls.
1692    - Make use of the allocParam argument in sparc-c-calls.
1693    
1694    ----------------------------------------------------------------------
1695    Name: Matthias Blume
1696    Date: 2002/01/28
1697    Tag: blume-20020128-allocParam
1698    Description:
1699    
1700    John Reppy:  Changes c-calls API to accept client-callback for
1701    allocating extra stack space.
1702    me: Corresponding changes to mlriscGen (using a dummy argument that
1703        does not change the current behavior).
1704    
1705    ----------------------------------------------------------------------
1706    Name: Matthias Blume
1707    Date: 2002/01/28 12:00:00
1708    Tag: Release_110_38
1709    Description:
1710    
1711    This time for real!!!
1712    
1713    ----------------------------------------------------------------------
1714    Name: Matthias Blume
1715    Date: 2002/01/28 10:56:00 EST
1716    Tag: blume-20020128-retraction
1717    Description:
1718    
1719    0. Retracted earlier 110.38.  (The Release_110_38 tag has been replaced
1720       with blume-Release_110_38-retracted.)
1721    
1722    1. Fixed a problem with incorrect rounding modes in real64.sml.
1723       (Thanks to Andrew Mccreight <andrew.mccreight@yale.edu>.)
1724    
1725    2. A bug in ml-nlffigen related to the handling of unnamed structs, unions,
1726       and enums fixed.  The naming of corresponding ML identifiers should
1727       now be consistent again.
1728    
1729    ----------------------------------------------------------------------
1730    Name: Allen Leung
1731    Date: 2002/01/27
1732    Tag: leunga-20020127-nowhere
1733    Description:
1734    
1735       Added a target called nowhere in the configuration scripts.
1736       Enabling this will build the MLRISC 'nowhere' tool (for translating
1737       programs with where-clauses into legal SML code) during installation.
1738    
1739    ----------------------------------------------------------------------
1740    Name: Matthias Blume
1741    Date: 2002/01/25 21:27:00 EST
1742    Tag: blume-Release_110_38-retracted
1743    Description:
1744    
1745    Call it a (working) release!  Version is 110.38. Bootfiles are ready.
1746    
1747    README will be added later.
1748    
1749    !!! NOTE:  Re-tagged as blume-Release_110_38-retracted. Original tag
1750    (Release_110_38) removed.  Reason: Last-minute bug fixes.
1751    
1752    ----------------------------------------------------------------------
1753    Name: Matthias Blume
1754    Date: 2002/01/25
1755    Tag: blume-20020125-ffi
1756    Description:
1757    
1758    A large number of tweaks and improvements to ml-nlffi-lib and
1759    ml-nlffigen:
1760    
1761       - ML represenation types have been streamlined
1762       - getter and setter functions work with concrete values, not abstract
1763         ones where possible
1764       - ml-nlffigen command line more flexible (see README file there)
1765       - some bugs have been fixed (hopefully)
1766    
1767    ----------------------------------------------------------------------
1768    Name: Lal George
1769    Date: 2002/01/24
1770    Tag: george-20020124-risc-ra-interface
1771    Description:
1772    
1773       There is a dramatic simplification in the interface to the
1774       register allocator for RISC architectures as a result of making
1775       parallel copy instructions explicit.
1776    
1777    ----------------------------------------------------------------------
1778    Name: Matthias Blume
1779    Date: 2002/01/22
1780    Tag: blume-20020122-x86-ccalls
1781    Description:
1782    
1783    Bug fix for c-calls on x86 (having to do with how char- and
1784    short-arguments are being handled).
1785    
1786    ----------------------------------------------------------------------
1787    Name: Matthias Blume
1788    Date: 2002/01/21
1789    Tag: blume-20020121-ff
1790    Description:
1791    
1792    Another day of fiddling with the FFI...
1793    
1794    1. Bug fix/workaround:  CKIT does not complain about negative array
1795       dimensions, so ml-nlffigen has to guard itself against this possibility.
1796       (Otherwise a negative dimension would send it into an infinite loop.)
1797    
1798    2. Some of the abstract types (light objects, light pointers, most "base"
1799       types) in structure C are now eqtypes.
1800    
1801    3. Added constructors and test functions for NULL function pointers.
1802    
1803    ----------------------------------------------------------------------
1804    Name: Matthias Blume
1805    Date: 2002/01/18
1806    Tag: blume-20020118-ready-for-new-release
1807    Description:
1808    
1809    Made config/srcarchiveurl point to a new place.  (Will provide boot
1810    files shortly.)
1811    
1812    Maybe we christen this to be 110.38?
1813    
1814    ----------------------------------------------------------------------
1815    Name: Matthias Blume
1816    Date: 2002/01/18
1817    Tag: blume-20020118-more-ffifiddle
1818    Description:
1819    
1820    Today's FFI fiddling:
1821    
1822      - Provided a structure CGetSet with "convenient" versions of C.Get.* and
1823        C.Set.* that use concrete (MLRep.*) arguments and results instead
1824        of abstract ones.
1825    
1826      - Provided word-style bit operations etc. for "int" representation
1827        types in MLRep.S<Foo>Bitops where <Foo> ranges over Char, Int, Short,
1828        and Long.
1829    
1830    ----------------------------------------------------------------------
1831    Name: Matthias Blume
1832    Date: 2002/01/18
1833    Tag: blume-20020118-use-x86-fp
1834    Description:
1835    
1836    Now that x86-fast-fp seems to be working, I turned it back on again
1837    by default.  (Seems to work fine now, even with the FFI.)
1838    
1839    Other than that, I added some documentation about the FFI to
1840    src/ml-nlffigen/README and updated the FFI test examples in
1841    src/ml-nlffi-lib/Tests/*.
1842    
1843    ----------------------------------------------------------------------
1844    Name: Allen Leung
1845    Date: 2002/01/17
1846    Tag: leunga-20020117-x86-fast-fp-call
1847    Description:
1848    
1849       1. Fixed a problem with handling return fp values when x86's fast fp
1850          mode is turned on.
1851    
1852       2. Minor pretty printing fix for cellset.  Print %st(0) as %st(0) instead
1853          of %f32.
1854    
1855       3. Added a constructor INT32lit to the ast of MLRISC tools.
1856    
1857    ----------------------------------------------------------------------
1858    Name: Matthias Blume
1859    Date: 2002/01/16
1860    Tag: blume-20020116-ffifiddle
1861    Description:
1862    
1863    More fiddling with the FFI interface:
1864    
1865     - Make constness 'c instead of rw wherever possible.  This eliminates
1866       the need for certain explicit coercions.  (However, due to ML's
1867       value polymorphism, there will still be many cases where explicit
1868       coercions are necessary.  Phantom types are not the whole answer
1869       to modeling a subtyping relationship in ML.)
1870    
1871     - ro/rw coersions for pointers added.  (Avoids the detour through */&.)
1872    
1873     - "printf" test example added to src/ml-nlffi-lib/Tests.  (Demonstrates
1874       clumsy workaround for varargs problem.)
1875    
1876    ----------------------------------------------------------------------
1877    Name: Lal George
1878    Date: 2002/01/15
1879    Tag: <none>
1880    Description:
1881    
1882    1. Since COPY instructions are no longer native to the architecture,
1883       a generic functor can be used to implement the expandCopies function.
1884    
1885    2. Allowed EXPORT and IMPORT pseudo-op declarations to appear inside a
1886       TEXT segment.
1887    
1888    ----------------------------------------------------------------------
1889    Name: Matthias Blume
1890    Date: 2002/01/15
1891    Tag: blume-20020115-ffiupdates
1892    Description:
1893    
1894    1. Fix for bug resulting in single-precision float values being returned
1895       incorrectly from FFI calls.
1896    
1897    2. Small modifications to C FFI API:
1898    
1899        - memory-allocation routines return straight objects (no options)
1900          and raise an exception in out-of-memory situations
1901        - unsafe extensions to cast between function pointers and pointers
1902          from/to ints
1903        - added structure C_Debug as an alternative to structure C where
1904          pointer-dereferencing (|*| and |*!) always check for null-pointers
1905        - added open_lib' to DynLinkage;  open_lib' works like open_lib
1906          but also takes a (possibly empty) list of existing library handles
1907          that the current library depends on
1908    
1909    ----------------------------------------------------------------------
1910    Name: Matthias Blume
1911    Date: 2002/01/10
1912    Tag: blume-20020110-newffigen
1913    Description:
1914    
1915    1. Updates to portable graph code.
1916    
1917    2. Major update to ml-nlffigen and ml-nlffi-lib.  Things are much
1918       more scalable now so that even huge interfaces such as the one
1919       for GTK compile in finite time and space. :-)
1920       See src/ml-nlffigen/README for details on what's new.
1921    
1922    ----------------------------------------------------------------------
1923    Name: Lal George
1924    Date: 2001/01/09 14:31:35 EST 2002
1925    Tag: george-20011206-rm-native-copy
1926    Description:
1927    
1928            Removed the native COPY and FCOPY instructions
1929            from all the architectures and replaced it with the
1930            explicit COPY instruction from the previous commit.
1931    
1932            It is now possible to simplify many of the optimizations
1933            modules that manipulate copies. This has not been
1934            done in this change.
1935    
1936    ----------------------------------------------------------------------
1937    Name: Lal George
1938    Date: 2001/12/06 16:50:13 EST 2001
1939    Tag: george-20011206-mlrisc-instruction
1940    Description:
1941    
1942    Changed the representation of instructions from being fully abstract
1943    to being partially concrete. That is to say:
1944    
1945      from
1946            type instruction
1947    
1948      to
1949            type instr                              (* machine instruction *)
1950    
1951            datatype instruction =
1952                LIVE of {regs: C.cellset, spilled: C.cellset}
1953              | KILL of {regs: C.cellset, spilled: C.cellset}
1954              | COPYXXX of {k: CB.cellkind, dst: CB.cell list, src: CB.cell list}
1955              | ANNOTATION of {i: instruction, a: Annotations.annotation}
1956              | INSTR of instr
1957    
1958    This makes the handling of certain special instructions that appear on
1959    all architectures easier and uniform.
1960    
1961    LIVE and KILL say that a list of registers are live or killed at the
1962    program point where they appear. No spill code is generated when an
1963    element of the 'regs' field is spilled, but the register is moved to
1964    the 'spilled' (which is present, more for debugging than anything else).
1965    
1966    LIVE replaces the (now deprecated) DEFFREG instruction on the alpha.
1967    We used to generate:
1968    
1969            DEFFREG f1
1970            f1 := f2 + f3
1971            trapb
1972    
1973    but now generate:
1974    
1975            f1 := f2 + f3
1976            trapb
1977            LIVE {regs=[f1,f2,f3], spilled=[]}
1978    
1979    Furthermore, the DEFFREG (hack) required that all floating point instruction
1980    use all registers mentioned in the instruction. Therefore f1 := f2 + f3,
1981    defines f1 and uses [f1,f2,f3]! This hack is no longer required resulting
1982    in a cleaner alpha implementation. (Hopefully, intel will not get rid of
1983    this architecture).
1984    
1985    COPYXXX is intended to replace the parallel COPY and FCOPY  available on
1986    all the architectures. This will result in further simplification of the
1987    register allocator that must be aware of them for coalescing purposes, and
1988    will also simplify certain aspects of the machine description that provides
1989    callbacks related to parallel copies.
1990    
1991    ANNOTATION should be obvious, and now INSTR represents the honest to God
1992    machine instruction set!
1993    
1994    The <arch>/instructions/<arch>Instr.sml files define certain utility
1995    functions for making porting easier -- essentially converting upper case
1996    to lower case. All machine instructions (of type instr) are in upper case,
1997    and the lower case form generates an MLRISC instruction. For example on
1998    the alpha we have:
1999    
2000      datatype instr =
2001         LDA of {r:cell, b:cell, d:operand}
2002       | ...
2003    
2004      val lda : {r:cell, b:cell, d:operand} -> instruction
2005        ...
2006    
2007    where lda is just (INSTR o LDA), etc.
2008    
2009    ----------------------------------------------------------------------
2010    Name: Matthias Blume
2011    Date: 2001/11/22 21:40:00 EST
2012    Tag: Release_110_37
2013    Description:
2014    
2015    Release 110.37.  This time for real.
2016    
2017    ----------------------------------------------------------------------
2018    Name: Matthias Blume
2019    Date: 2001/11/21 16:35:00 EST
2020    Tag: blume-20011121-foot-in-mouth
2021    Description:
2022    
2023    Removed the "Release_110_37" tag because of a serious bug.
2024    This will be re-tagged once the bug is fixed.
2025    
2026    ----------------------------------------------------------------------
2027    Name: Matthias Blume
2028    Date: 2001/11/21 16:14:00 EST
2029    Tag: blume-20011121-forgottenfile
2030    Description:
2031    
2032    Forgot to add a file.  (Just a .tex-file -- part of
2033    the CM manual source.)
2034    
2035    ----------------------------------------------------------------------
2036    Name: Matthias Blume
2037    Date: 2001/11/21 16:10:00 EST
2038    Tag: blume-20011121-invalid_110_37
2039    Description:
2040    
2041    Note: I removed the original tag "Release_110_37" from this commit
2042          because we found a serious bug in all non-x86 backends.
2043          - Matthias
2044    
2045    1. Modifications to the SML/NJ code generator and to the runtime system
2046       so that code object name strings are directly inserted into code
2047       objects at code generation time.  The only business the runtime system
2048       has with this is now to read the name strings on occasions.
2049       (The encoding of the name string has also changed somewhat.)
2050    
2051    2. CM now implements a simple "set calculus" for specifying export lists.
2052       In particular, it is now possible to refer to the export lists of
2053       other libraries/groups/sources and form unions as well as differences.
2054       See the latest CM manual for details.
2055    
2056    3. An separate notion of "proxy" libraries has again be eliminated from
2057       CM's model.  (Proxy libraries are now simply a special case of using
2058       the export list calculus.)
2059    
2060    4. Some of the existing libraries now take advantage of the new set
2061       calculus.
2062       (Notice that not all libraries have been converted because some
2063       of the existing .cm-files are supposed to be backward compatible
2064       with 110.0.x.)
2065    
2066    5. Some cleanup in stand-alone programs.  (Don't use "exnMessage" -- use
2067       "General.exnMessage"!  The former relies on a certain hook to be
2068       initialized, and that often does not happen in the stand-alone case.)
2069    
2070    ----------------------------------------------------------------------
2071    Name: Lal George
2072    Date: 2001/11/21  13:56:18 EST
2073    Tag: george-2001121-pseudo-ops
2074    Description:
2075    
2076      Implemented a complete redesign of MLRISC pseudo-ops. Now there
2077      ought to never be any question of incompatabilities with
2078      pseudo-op syntax expected by host assemblers.
2079    
2080      For now, only modules supporting GAS syntax are implemented
2081      but more should follow, such as MASM, and vendor assembler
2082      syntax, e.g. IBM as, Sun as, etc.
2083    
2084    ----------------------------------------------------------------------
2085    Name: Matthias Blume
2086    Date: 2001/11/14 11:52:00 EST
2087    Tag: blume-20011114-srcname
2088    Description:
2089    
2090    1. Routed the name of the current source file to mlriscgen where it
2091       should be directly emitted into the code object.  (This last part
2092       is yet to be done.)
2093    
2094    2. Some cleanup of the pgraph code to make it match the proposal that
2095       I put out the other day.  (The proposal notwithstanding, things are
2096       still in flux here.)
2097    
2098    ----------------------------------------------------------------------
2099    Name: Lal George
2100    Date: 2001/11/14 09:44:04 EST
2101    Tag:
2102    Description:
2103    
2104      Fix for a backpatching bug reported by Allen.
2105    
2106      Because the boundary between short and long span-dependent
2107      instructions is +/- 128, there are an astounding number of
2108      span-dependent instructions whose size is over estimated.
2109    
2110      Allen came up with the idea of letting the size of span
2111      dependent instructions be non-monotonic, for a maxIter
2112      number of times, after which the size must be monotonically
2113      increasing.
2114    
2115      This table shows the number of span-dependent instructions
2116      whose size was over-estimated as a function of maxIter, for the
2117      file Parse/parse/ml.grm.sml:
2118    
2119         maxIter            # of instructions:
2120            10                      687
2121            20                      438
2122            30                      198
2123            40                        0
2124    
2125      In compiling the compiler, there is no significant difference in
2126      compilation speed between maxIter=10 and maxIter=40. Actually,
2127      my measurements showed that maxIter=40 was a tad faster than
2128      maxIter=10! Also 96% of the  files in the compiler reach a fix
2129      point within 13 iterations, so fixing maxIter at 40, while high,
2130      is okay.
2131    
2132    ----------------------------------------------------------------------
2133    Name: Matthias Blume
2134    Date: 2001/10/31 15:25:00 EST
2135    Tag: blume-20011031-pgraph
2136    Description:
2137    
2138    CKIT:
2139    * Changed the "Function" constructor of type Ast.ctype to carry optional
2140      argument identifiers.
2141    * Changed the return type of TypeUtil.getFunction accordingly.
2142    * Type equality ignores the argument names.
2143    * TypeUtil.composite tries to preserve argument names but gives up quickly
2144      if there is a mismatch.
2145    
2146    installation script:
2147    * attempts to use "curl" if available (unless "wget" is available as well)
2148    
2149    CM:
2150    * has an experimental implementation of "portable graphs" which I will
2151      soon propose as an implementation-independent library format
2152    * there are also new libraries $/pgraph.cm and $/pgraph-util.cm
2153    
2154    NLFFI-LIB:
2155    * some cleanup (all cosmetic)
2156    
2157    NLFFIGEN:
2158    * temporarily disabled the mechanism that suppresses ML output for
2159      C definitions whose identifiers start with an underscore character
2160    * generate val bindings for enum constants
2161    * user can request that only one style (light or heavy) is being used;
2162      default is to use both (command-line arguments: -heavy and -light)
2163    * fixed bug in handling of function types involving incomplete pointers
2164    * generate ML entry points that take record arguments (i.e., using
2165      named arguments) for C functions that have a prototype with named
2166      arguments
2167      (see changes to CKIT)
2168    
2169    ----------------------------------------------------------------------
2170    Name: Allen Leung
2171    Date: 2001/10/27 20:34:00 EDT
2172    Tag: leunga-20011027-x86-fast-fp-call
2173    Description:
2174    
2175       Fixed the bug described in blume-20010920-slowfp.
2176    
2177       The fix involves
2178          1. generating FCOPYs in FSTP in ia32-svid
2179          2. marking a CALL with the appropriate annotation
2180    
2181    ----------------------------------------------------------------------
2182    Name: Matthias Blume
2183    Date: 2001/10/16 11:32:00 EDT
2184    Tag: blume-20011016-netbsd
2185    Description:
2186    
2187    Underscore patch from Chris Richards (fixing problem with compiling
2188    runtime system under recent NetBSD).
2189    
2190    ----------------------------------------------------------------------
2191    Name: Allen Leung
2192    Date: 2001/10/12 17:18:32 EDT 2001
2193    Tag: leung-20011012-x86-printflowgraph
2194    Description:
2195    
2196    X86RA now uses a valid (instead of dummy) PrintFlowgraph module.
2197    
2198    ----------------------------------------------------------------------
2199    Name: Lal George
2200    Date: 2001/10/11 23:51:34 EDT
2201    Tag: george-20011011-too-many-instrs
2202    Description:
2203    
2204    The representation of a program point never expected to see more
2205    than 65536 instructions in a basic block!
2206    
2207    ----------------------------------------------------------------------
2208    Name: Lal George
2209    Date: 2001/10/09 09:41:37 EDT
2210    Tag: george-20011008-mlrisc-labels
2211    Description:
2212    
2213    Changed the machine description files to support printing of
2214    local and global labels in assembly code, based on host assembler
2215    conventions.
2216    
2217    ----------------------------------------------------------------------
2218    Name: Matthias Blume
2219    Date: 2001/09/25 15:25:00 EDT
2220    Tag: blume-20010925-exninfo
2221    Description:
2222    
2223    I provided a non-hook implementation of exnName (at the toplevel) and
2224    made the "dummy" implementation of exnMessage (at the toplevel) more
2225    useful: if nothing gets "hooked in", then at least you are going to
2226    see the exception name and a message indicating why you don't see more.
2227    
2228    [For the time being, programs that need exnMessage and want to use
2229    ml-build should either use General.exnMessage (strongly recommended) or
2230    refer to structure General at some other point so that CM sees a
2231    static dependency.]
2232    
2233    [Similar remarks go for "print" and "use":  If you want to use their
2234    functionality in stand-alone programs generated by ml-build, then use
2235    TextIO.output and Backend.Interact.useFile (from $smlnj/compiler.cm).]
2236    
2237    ----------------------------------------------------------------------
2238    Name: Matthias Blume
2239    Date: 2001/09/20 17:28:00 EDT
2240    Tag: blume-20010920-slowfp
2241    Description:
2242    
2243    Allen says that x86-fast-fp is not safe yet, so I turned it off again...
2244    
2245    ----------------------------------------------------------------------
2246    Name: Matthias Blume
2247    Date: 2001/09/20 17:20:00 EDT
2248    Tag: blume-20010920-canonicalpaths
2249    Description:
2250    
2251    0. Updated the BOOT file (something that I forgot to do earlier).
2252    
2253    1. Small internal change to CM so that it avoids "/../" in filenames
2254       as much as possible (but only where it is safe).
2255    
2256    2. Changed config/_run-sml (resulting in a changed bin/.run-sml) so
2257       that arguments that contain delimiters are passed through correctly.
2258       This change also means that all "special" arguments of the form
2259       @SMLxxx... must come first.
2260    
2261    3. Changed install script to put relative anchor names for tool commands
2262       into pathconfig.
2263    
2264    ----------------------------------------------------------------------
2265    Name: Matthias Blume
2266    Date: 2001/09/18 15:35:00 EDT
2267    Tag: blume-20010918-readme11036
2268    Description:
2269    
2270    Added README files.
2271    
2272    ----------------------------------------------------------------------
2273    Name: Matthias Blume
2274    Date: 2001/09/18 11:45:00 EDT
2275    Tag: Release_110_36 (retag)
2276    Description:
2277    
2278    Fixed mistake in config/preloads. Retagged as 110.36.
2279    
2280    ----------------------------------------------------------------------
2281    Name: Matthias Blume
2282    Date: 2001/09/18 09:40:00 EDT
2283    Tag: Release_110_36_orig (tag changed)
2284    Description:
2285    
2286    New version (110.36).  New bootfiles.
2287    
2288    ----------------------------------------------------------------------
2289    Name: Matthias Blume
2290    Date: 2001/09/14 16:15:00 EDT
2291    Tag: blume-20010914-x86fastfp
2292    Description:
2293    
2294    John committed some changes that Allen made, in particular a (hopefully)
2295    correctly working version of the x86-fp module.
2296    
2297    I changed the default setting of the Control.MLRISC.getFlag "x86-fast-fp"
2298    flag to "true".  Everything seems to compile to a fixpoint ok, and
2299    "mandelbrot" speeds up by about 15%.
2300    
2301    ----------------------------------------------------------------------
2302    Name: Matthias Blume
2303    Date: 2001/09/13 11:20:00 EDT
2304    Tag: blume-20010913-minimal
2305    Description:
2306    
2307    1. Stefan Monnier's patch to fix a miscompilation problem that
2308       was brought to light by John Reppy's work on Moby.
2309    
2310    2. Implemented a minimal "structure Compiler" that contains just
2311       "version" and "architecture".  The minimal version will be
2312       available when the full version is not.  This is for backward-
2313       compatibility with code that wants to test Compiler.version.
2314    
2315    ----------------------------------------------------------------------
2316    Name: Matthias Blume
2317    Date: 2001/08/28 14:03:00 EDT
2318    Tag: blume-20010828-ml-lex
2319    Description:
2320    
2321    Fix for bug 1581, received from Neophytos Michael.
2322    
2323    ----------------------------------------------------------------------
2324    Name: Matthias Blume
2325    Date: 2001/08/27 11:20:00 EDT
2326    Tag: blume-20010827-readme11035
2327    Description:
2328    
2329    Fleshed out the README file for 110.35.
2330    
2331    ----------------------------------------------------------------------
2332    Name: Matthias Blume
2333    Date: 2001/08/24 17:10:00 EDT
2334    Tag: Release_110_35
2335    Description:
2336    
2337    New version number (110.35).  New bootfiles.
2338    
2339    ----------------------------------------------------------------------
2340    Name: Lal George
2341    Date: 2001/08/24 13:47:18 EDT 2001
2342    Tag: george-20010824-MLRISC-graphs
2343    Description:
2344    
2345     removed clusters from MLRISC completely and replaced with graphs.
2346    
2347    ----------------------------------------------------------------------
2348    Name: Matthias Blume
2349    Date: 2001/08/23 17:50:00 EDT
2350    Tag: blume-20010823-toplevel
2351    Description:
2352    
2353    - some reorganization of the code that implements various kinds of
2354      environments in the compiler (static, dynamic, symbolic, combined)
2355    - re-implemented the EnvRef module so that evalStream works properly
2356      (if the stream contains references to "use", "CM.make", etc.)
2357    - cleaned up evalloop.sml and interact.sml (but they need more cleaning)
2358    
2359    ----------------------------------------------------------------------
2360    Name: Matthias Blume
2361    Date: 2001/08/20 15:50 EDT
2362    Tag: blume20010820-slipup
2363    Description:
2364    
2365    I forgot to commit a few files.  Here they are...
2366    
2367    ----------------------------------------------------------------------
2368    Name: Matthias Blume
2369    Date: 2001/08/20 15:35:00 EDT
2370    Tag: blume-20010820-debugprof
2371    Description:
2372    
2373    !!!! NEW BOOTFILES !!!!
2374    
2375    This is another round of reorganizing the compiler sources.  This
2376    time the main goal was to factor out all the "instrumentation"
2377    passes (for profiling and backtracing) into their own library.
2378    The difficulty was to do it in such a way that it does not depend
2379    on elaborate.cm but only on elabdata.cm.
2380    
2381    Therefore there have been further changes to both elaborate.cm and
2382    elabdata.cm -- more "generic" things have been moved from the former
2383    to the latter.  As a result, I was forced to split the assignment
2384    of numbers indicating "primtyc"s into two portions: SML-generic and
2385    SML/NJ-specific.  Since it would have been awkward to maintain,
2386    I bit the bullet and actually _changed_ the mapping between these
2387    numbers and primtycs.  The bottom line of this is that you need
2388    a new set of bin- and bootfiles.
2389    
2390    I have built new bootfiles for all architectures, so doing a fresh
2391    checkout and config/install.sh should be all you need.
2392    
2393    The newly created library's name is
2394    
2395        $smlnj/viscomp/debugprof.cm
2396    
2397    and its sources live under
2398    
2399        src/compiler/DebugProf
2400    
2401    ----------------------------------------------------------------------
2402    Name: Matthias Blume
2403    Date: 2001/08/15 17:15:00 EDT
2404    Tag: blume-20010815-compreorg
2405    Description:
2406    
2407    This is a first cut at reorganizing the CM libraries that make up the
2408    core of the compiler.  The idea is to separate out pieces that could
2409    be used independently by tools, e.g., the parser, the typechecker, etc.
2410    
2411    The current status is a step in this direction, but it is not quite
2412    satisfactory yet.  Expect more changes in the future.
2413    
2414    Here is the current (new) organization...
2415    
2416        What used to be $smlnj/viscomp/core.cm is now divided into
2417        six CM libraries:
2418    
2419             $smlnj/viscomp/basics.cm
2420                           /parser.cm
2421                           /elabdata.cm
2422                           /elaborate.cm
2423                           /execute.cm
2424                           /core.cm
2425    
2426        The CM files for these libraries live under src/system/smlnj/viscomp.
2427        All these libraries are proxy libraries that contain precisely
2428        one CM library component.  Here are the locations of the components
2429        (all within the src/compiler tree):
2430    
2431             Basics/basics.cm
2432             Parse/parser.cm
2433             ElabData/elabdata.cm
2434             Elaborator/elaborate.cm
2435             Execution/execute.cm
2436             core.cm
2437    
2438         [This organization is the same that has been used already
2439         for a while for the architecture-specific parts of the visible
2440         compiler and for the old version of core.cm.]
2441    
2442         As you will notice, many source files have been moved from their
2443         respective original locations to a new home in one of the above
2444         subtrees.
2445    
2446         The division of labor between the new libraries is the following:
2447    
2448             basics.cm:
2449                - Simple, basic definitions that pertain to many (or all) of
2450                  the other libraries.
2451             parser.cm:
2452                - The SML parser, producing output of type Ast.dec.
2453                - The type family for Ast is also defined and exported here.
2454             elabdata.cm:
2455                - The datatypes that describe input and output of the elaborator.
2456                  This includes types, absyn, and static environments.
2457             elaborator.cm:
2458                - The SML/NJ type checker and elaborator.
2459                  This maps an Ast.dec (with a given static environment) to
2460                  an Absyn.dec (with a new static environment).
2461                - This libraries implements certain modules that used to be
2462                  structures as functors (to remove dependencies on FLINT).
2463             execute.cm:
2464                - Everything having to do with executing binary code objects.
2465                - Dynamic environments.
2466             core.cm:
2467                - SML/NJ-specific instantiations of the elaborator and MLRISC.
2468                - Top-level modules.
2469                - FLINT (this should eventually become its own library)
2470    
2471    Notes:
2472    
2473    I am not 100% happy with the way I separated the elaborator (and its
2474    data structures) from FLINT.  Two instances of the same problem:
2475    
2476        1. Data structures contain certain fields that carry FLINT-specific
2477           information.  I hacked around this using exn and the property list
2478           module from smlnj-lib.  But the fact that there are middle-end
2479           specific fields around at all is a bit annoying.
2480    
2481        2. The elaborator calculates certain FLINT-related information.  I tried
2482           to make this as abstract as I could using functorization, but, again,
2483           the fact that the elaborator has to perform calculations on behalf
2484           of the middle-end at all is not nice.
2485    
2486        3. Having to used exn and property lists is unfortunate because it
2487           weakens type checking.  The other alternative (parameterizing
2488           nearly *everything*) is not appealing, though.
2489    
2490    I removed the "rebinding =" warning hack because due to the new organization
2491    it was awkward to maintain it.  As a result, the compiler now issues some of
2492    these warnings when compiling init.cmi during bootstrap compilation. On
2493    the plus side, you also get a warning when you do, for example:
2494       val op = = Int32.+
2495    which was not the case up to now.
2496    
2497    I placed "assign" and "deref" into the _Core structure so that the
2498    code that deals with the "lazy" keyword can find them there.  This
2499    removes the need for having access to the primitive environment
2500    during elaboration.
2501    
2502    ----------------------------------------------------------------------
2503    Name: Matthias Blume
2504    Date: 2001/08/13
2505    Tag: blume-20010813-closures
2506    Description:
2507    
2508    This fix was sent to us by Zhong Shao.  It is supposed to improve the
2509    performance of certain loops by avoiding needless closure allocation.
2510    
2511    ----------------------------------------------------------------------
2512    Name: Lal George
2513    Date: 2001/07/31 10:03:23 EDT 2001
2514    Tag: george-20010731-x86-fmalloc
2515    Description: Fixed bug in x86 calls
2516    
2517        There was a bug where call instructions would mysteriously
2518        vanish. The call instruction had to be one that returned
2519        a floating point value.
2520    
2521    ----------------------------------------------------------------------
2522    Name: Lal George
2523    Date: 2001/07/19 16:36:29 EDT 2001
2524    Tag: george-20010719-simple-cells
2525    Description:
2526    
2527    I have dramatically simplified the interface for CELLS in MLRISC.
2528    
2529    In summary, the cells interface is broken up into three parts:
2530    
2531      1. CellsBasis : CELLS_BASIS
2532    
2533            CellsBasis is a top level structure and common for all
2534            architectures.  it contains the definitions of basic datatypes
2535            and utility  functions over these types.
2536    
2537      2. functor Cells() : CELLS
2538    
2539            Cells generates an interface for CELLS that incorporates the
2540            specific resources on the target architecture, such as the
2541            presence of special register classes, their number and size,
2542            and various useful substructures.
2543    
2544      3. <ARCH>CELLS
2545    
2546            e.g. SparcCells: SPARCCELLS
2547    
2548            <ARCH>CELLS usually contains additional bindings for special
2549            registers  on the architecture, such as:
2550    
2551                    val r0 : cell           (* register zero *)
2552                    val y : cell            (* Y register *)
2553                    val psr : cell          (* processor status register *)
2554                    ...
2555    
2556            The structure returned by applying the Cells functor is opened
2557            in this interface.
2558    
2559    The main implication of all this is that the datatypes for cells is
2560    split between CellsBasis and CELLS -- a fairly simple change for user
2561    code.
2562    
2563    In the old scheme the CELLS interface had a definitional binding of
2564    the form:
2565    
2566            signature CELLS = sig
2567    
2568               structure CellsBasis = CellsBasis
2569    
2570               ...
2571    
2572            end
2573    
2574    With all the sharing constraints that goes on in MLRISC, this old
2575    design  quickly leads to errors such as:
2576    
2577            "structure definition spec inside of sharing ... "
2578    
2579    
2580    and appears to require an unacceptable amount of sharing and where
2581    constraint hackery.
2582    
2583    I think this error message (the interaction of definitional specs and
2584    sharing) requires more explanation on our web page.
2585    
2586    ----------------------------------------------------------------------
2587    Name: Matthias Blume
2588    Date: 2001/07/19 15:00:00 EDT
2589    Tag: blume-20010719-libreorg
2590    Description:
2591    
2592    This update puts together a fairly extensive but straightforward change
2593    to the way the libraries that implement the interactive system are
2594    organized:
2595    
2596       The biggest change is the elimination of structure Compiler.  As a
2597       replacement for this structure, there is now a CM library
2598       (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm)
2599       that exports all the substructures of the original structure Compiler
2600       directly.  So instead of saying Compiler.Foo.bar one now simply
2601       says Foo.bar.  (The CM libraries actually export a collection of
2602       structures that is richer than the collection of substructures of
2603       structure Compiler.)
2604    
2605       To make the transition smooth, there is a separate library called
2606       $smlnj/compiler/compiler.cm which puts together and exports the
2607       original structure Compiler (or at least something very close to it).
2608    
2609       There are five members of the original structure Compiler
2610       that are not exported directly but which instead became members
2611       of a new structure Backend (described by signature BACKEND).  These are:
2612       structure Profile (: PROFILE), structure Compile (: COMPILE), structure
2613       Interact (: INTERACT), structure Machine (: MACHINE), and val
2614       architecture (: string).
2615    
2616       Structure Compiler.Version has become structure CompilerVersion.
2617    
2618       Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided
2619       by $smlnj/compiler/<arch>.cm where <arch> is alpha32, hppa, ppc, sparc,
2620       or x86, respectively.
2621       Each of these exports the same frontend structures that
2622       $smlnj/compiler.cm exports.  But they do not have a structure Backend
2623       and instead export some structure <Arch>Backend where <Arch> is Alpha32,
2624       Hppa, PPC, Sparc, or X86, respectively.
2625    
2626       Library $smlnj/compiler/all.cm exports the union of the exports of
2627       $smlnj/compiler/<arch>.cm
2628    
2629       There are no structures <Arch>Compiler anymore, use
2630       $smlnj/compiler/<arch>.cm instead.
2631    
2632       Library host-compiler-0.cm is gone.  Instead, the internal library
2633       that instantiates CM is now called cm0.cm.  Selection of the host
2634       compiler (backend) is no longer done here but. (Responsibility for it
2635       now lies with $smlnj/compiler/current.cm.  This seems to be more
2636       logical.)
2637    
2638       Many individual files have been moved or renamed.  Some files have
2639       been split into multiple files, and some "dead" files have been deleted.
2640    
2641    Aside from these changes to library organization, there are also changes
2642    to the way the code itself is organized:
2643    
2644       Structure Binfile has been re-implemented in such a way that it no
2645       longer needs any knowledge of the compiler.  It exclusively deals
2646       with the details of binfile layout.  It no longer invokes the
2647       compiler (for the purpose of creating new prospective binfile
2648       content), and it no longer has any knowledge of how to interpret
2649       pickles.
2650    
2651       Structure Compile (: COMPILE) has been stripped down to the bare
2652       essentials of compilation.  It no longer deals with linking/execution.
2653       The interface has been cleaned up considerably.
2654    
2655       Utility routines for dealing with linking and execution have been
2656       moved into their own substructures.
2657    
2658       (The ultimate goal of these changes is to provide a light-weight
2659       binfile loader/linker (at least for, e.g., stable libraries) that
2660       does not require CM or the compiler to be present.)
2661    
2662    CM documentation has been updated to reflect the changes to library
2663    organization.
2664    
2665    ----------------------------------------------------------------------
2666    Name: Matthias Blume
2667    Date: 2001/07/10 17:30:00 EDT
2668    Tag: Release_110_34
2669    Description:
2670    
2671    Minor tweak to 110.34 (re-tagged):
2672    
2673      - README.html file added to CVS repository
2674      - runtime compiles properly under FreeBSD 3.X and 4.X
2675    
2676    ----------------------------------------------------------------------
2677    Name: Matthias Blume
2678    Date: 2001/07/10 17:30:00 EDT
2679    Tag: Release_110_34
2680    Description:
2681    
2682    New version number (110.34). New bootfiles.
2683    
2684    ----------------------------------------------------------------------
2685    Name: Matthias Blume
2686    Date: 2001/07/09 16:00:00 EDT
2687    Tag: blume-20010709-more-varargs
2688    Description:
2689    
2690    I changed the handling of varargs in ml-nlffigen again:
2691    The ellipsis ... will now simply be ignored (with an accompanying warning).
2692    
2693    The immediate effect is that you can actually call a varargs function
2694    from ML -- but you can't actually supply any arguments beyond the ones
2695    specified explicitly.  (For example, you can call printf with its format
2696    string, but you cannot pass additional arguments.)
2697    
2698    This behavior is only marginally more useful than the one before, but
2699    it has the advantage that a function or, more importantly, a function
2700    type never gets dropped on the floor, thus avoiding follow-up problems with
2701    other types that refer to the offending one.
2702    
2703    ----------------------------------------------------------------------
2704    Name: Matthias Blume
2705    Date: 2001/07/09 11:25:00 EDT
2706    Tag: blume-20010709-varargs
2707    Description:
2708    
2709    1. ckit-lib.cm now exports structure Error
2710    2. ml-nlffigen reports occurences of "..." (i.e., varargs function types)
2711       with a warning accompanied by a source location.  Moreover, it
2712       merely skips the offending function or type and proceeds with the
2713       rest of its work.u  As a result, one can safely feed C code containing
2714       "..." to ml-nlffigen.
2715    3. There are some internal improvements to CM, providing slightly
2716       more general string substitutions in the tools subsystem.
2717    
2718    ----------------------------------------------------------------------
2719    Name: Matthias Blume
2720    Date: 2001/06/27 15:10:00 EDT
2721    Tag: blume-20010627-concur
2722    Description:
2723    
2724    Fixed a small bug in CM's handling of parallel compilation.
2725    (You could observe the bug by Control-C-interrupting an ordinary
2726    CMB.make or CM.stabilize and then attaching some compile servers.
2727    The result was that all of a sudden the previously interrupted
2728    compilation would continue on its own.  This was because of
2729    an over-optimization: CM did not bother to clean out certain queues
2730    when no servers were attached "anyway", resulting in the contents
2731    of these queues to grab control when new servers did get attached.)
2732    
2733    There is also another minor update to the CM manual.
2734    
2735    ----------------------------------------------------------------------
2736    Name: Matthias Blume
2737    Date: 2001/06/26 16:15:00 EDT
2738    Tag: blume-20010626-cmdoc
2739    Description:
2740    
2741    Minor typo fixed in CM manual (syntax diagram for libraries).
2742    
2743    ----------------------------------------------------------------------
2744    Name: Matthias Blume
2745    Date: 2001/06/25 22:55:00 EDT
2746    Tag: blume-20010625-x86pc
2747    Description:
2748    
2749    Fixed a nasty bug in the X86 assembly code that caused signal
2750    handlers to fail (crash) randomly.
2751    
2752    ----------------------------------------------------------------------
2753    Name: Matthias Blume
2754    Date: 2001/06/25 12:05:00 EDT
2755    Tag: blume-20010625-nlffigen
2756    Description:
2757    
2758    This update fixes a number of minor bugs in ml-nlffigen as reported by
2759    Nick Carter <nbc@andrew.cmu.edu>.
2760    
2761      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
2762      2. Default names for generated files are now derived from the name of
2763         the C file *without its directory*.  In particular, this causes generated
2764         files to be placed locally even if the C file is in some system directory.
2765      3. Default names for generated signatures and structures are also derived
2766         from the C file name without its directory.  This avoids silly things
2767         like "structure GL/GL".
2768         (Other silly names are still possible because ml-nlffigen does not do
2769          a thorough check of whether generated names are legal ML identifiers.
2770          When in doubt, use command line arguments to force particular names.)
2771    
2772    ----------------------------------------------------------------------
2773    Name: Matthias Blume
2774    Date: 2001/06/21 12:25:00 EDT
2775    Tag: blume-20010621-eXene
2776    Description:
2777    
2778    eXene now compiles and (sort of) works again.
2779    
2780    The library name (for version > 110.33) is $/eXene.cm.
2781    
2782    I also added an new example in src/eXene/examples/nbody.  See the
2783    README file there for details.
2784    
2785    ----------------------------------------------------------------------
2786    Name: Matthias Blume
2787    Date: 2001/06/20 16:40:00 EDT
2788    Tag: blume-20010620-cml
2789    Description:
2790    
2791    CML now compiles and works again.
2792    
2793    Libraries (for version > 110.33):
2794    
2795      $cml/cml.cm            Main CML library.
2796      $cml/basis.cm          CML's version of $/basis.cm.
2797      $cml/cml-internal.cm   Internal helper library.
2798      $cml/core-cml.cm       Internal helper library.
2799      $cml-lib/trace-cml.cm  Tracing facility.
2800      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
2801    
2802    The installer (config/install.sh) has been taught how to properly
2803    install this stuff.
2804    
2805    ----------------------------------------------------------------------
2806    Name: Matthias Blume
2807    Date: 2001/06/19 17:55:00 EDT
2808    Tag: blume-20010619-instantiate
2809    Description:
2810    
2811    This un-breaks the fix for bug 1432.
2812    (The bug was originally fixed in 110.9 but I broke it again some
2813    time after that.)
2814    
2815    ----------------------------------------------------------------------
2816    Name: Matthias Blume
2817    Date: 2001/06/19 17:25:00 EDT
2818    Tag: blume-20010619-signals
2819    Description:
2820    
2821    This should (hopefully) fix the long-standing signal handling bug.
2822    (The runtime system was constructing a continuation record with an
2823    incorrect descriptor which would cause the GC to drop data on the floor...)
2824    
2825    ----------------------------------------------------------------------
2826    Name: Matthias Blume
2827    Date: 2001/06/15 15:05:00 EDT
2828    Tag: blume-20010615-moresparc
2829    Description:
2830    
2831    Here is a short late-hour update related to Sparc c-calls:
2832    
2833     -- made handling of double-word arguments a bit smarter
2834    
2835     -- instruction selection phase tries to collapse certain clumsily
2836        constructed ML-Trees; typical example:
2837    
2838            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
2839    
2840        This currently has no further impact on SML/NJ since mlriscGen does
2841        not seem to generate such patterns in the first place, and c-calls
2842        (which did generate them in the beginning) has meanwhile been fixed
2843        so as to avoid them as well.
2844    
2845    ----------------------------------------------------------------------
2846    Name: Matthias Blume
2847    Date: 2001/06/15 15:05:00 EDT
2848    Tag: blume-20010615-sparc
2849    Description:
2850    
2851    The purpose of this update is to provide an implementation of NLFFI
2852    on Sparc machines.
2853    
2854    Here are the changes in detail:
2855    
2856       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
2857       the Sparc implementation of the c-calls API.
2858       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
2859       for accessing the ML frame.  Thus, we have a real frame pointer and
2860       can freely modify %sp without need for an omit-frame-ptr phase.
2861       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
2862       this case.
2863       * ml-nlffigen has been taught to produce code for different architectures
2864       and calling conventions.
2865       * In a way similar to what was done in the x86 case, the Sparc
2866       backend uses its own specific extension to mltree.  (For example,
2867       it needs to be able to generate UNIMP instructions which are part
2868       of the calling convention.)
2869       * ml-nlffi-lib was reorganized to make it more modular (in particular,
2870       to make it easier to plug in new machine- and os-dependent parts).
2871    
2872    There are some other fairly unrelated bug fixes and cleanups as well:
2873    
2874       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
2875       that they properly share their libraries with existing SML/NJ libraries.
2876       * I fixed a minor cosmetic bug in CM, supressing certain spurious
2877       follow-up error messages.
2878       * Updates to CM/CMB documentation.
2879    
2880    TODO items:
2881    
2882       * MLRISC should use a different register as its asmTemp on the Sparc.
2883         (The current %o2 is a really bad choice because it is part of the
2884         calling conventions, so things might interfere in unexpected ways.)
2885    
2886    ----------------------------------------------------------------------
2887    Name: Matthias Blume
2888    Date: 2001/06/07
2889    Tag: blume-20010607-calls
2890    Description:
2891    
2892    A number of internal changes related to C calls and calling conventions:
2893    
2894    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
2895       number of bytes popped implicitly (by the callee).  In most cases
2896       this field is 0 but on x86/win32 it is some non-zero value.  This
2897       is information provided for the benefit of the "omit-frameptr" pass.
2898    2. The CALL instruction on the x86 carries a similar "pops" field.
2899       The instruction selection phase copies its value from the ML-Tree
2900       CALL statement.
2901    3. On all other architectures, the instruction selection phase checks
2902       whether "pops=0" and complains if not.
2903    4. The c-calls implementation for x86 now accepts two calling conventions:
2904       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
2905       up after the call and pops is set to 0.  For "stdcall", the caller
2906       does nothing, leaving the cleanup to the callee; pops is set to
2907       the number of bytes that were pushed onto the stack.
2908    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
2909       distinguish between "ccall" and "stdcall".
2910    6. The UNIMP instruction has been added to the supported Sparc instruction
2911       set. (This is needed for implementing the official C calling convention
2912       on this architecture.)
2913    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
2914       work with the latest CM.
2915    
2916    ----------------------------------------------------------------------
2917    Name: Matthias Blume
2918    Date: 2001/06/05 15:10:00 EDT
2919    Tag: blume-20010605-cm-index
2920    Description:
2921    
2922    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
2923    
2924    1. CM can now generate "index files".  These are human-readable files
2925       that list on a per-.cm-file basis each toplevel symbol defined or
2926       imported.  The location of the index file for
2927       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
2928       To enable index-file generation, set CM.Control.generate_index to true
2929       or export an environment-symbol: export CM_GENERATE_INDEX=true.
2930    
2931       The CM manual has been updated accordingly.
2932    
2933    2. I made some slight modifications to the c-calls API in MLRISC.
2934    
2935         a) There is now a callback to support saving/restoring of
2936            dedicated but caller-save registers around the actual call
2937            instruction.
2938         b) One can optionally specify a comment-annotation for the
2939            call instruction.
2940    
2941    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
2942       (For example, the comment annotation shows the C prototype of
2943        the function being called.)
2944    
2945    ----------------------------------------------------------------------
2946    Name: Matthias Blume
2947    Date: 2001/06/01 13:30:00 EDT
2948    Tag: blume-20010601-nlffi-cleanup
2949    Description:
2950    
2951    This is mostly a cleanup of MLFFI stuff:
2952    
2953       - some signature files have been put into a more exposed place
2954       - the ugly 'f type parameter is gone (simplifies types tremendously!)
2955       - ml-nlffigen changed accordingly
2956       - tutorial updated
2957    
2958    Other changes:
2959    
2960       - author's affiliation in CM manual(s) updated
2961       - some more recognized keywords added to Allen's sml.sty
2962    
2963    ----------------------------------------------------------------------
2964    Name: Matthias Blume
2965    Date: 2001/05/25 15:30:00 EDT
2966    Tag: blume-20010525-iptr
2967    Description:
2968    
2969      - put the official 110.33-README (as it appears on the ftp server) under
2970        CVS
2971      - fixed a small bug related to incomplete pointer types in
2972        ml-nlffigen
2973      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
2974        (it does not need the 'f type parameter)
2975    
2976    ----------------------------------------------------------------------
2977    Name: Matthias Blume
2978    Date: 2001/05/23 14:30:00 EDT
2979    Tag: Release_110_33
2980    Description:
2981    
2982    New version number (110.33).  New bootfiles.
2983    
2984    ----------------------------------------------------------------------
2985    Name: Matthias Blume
2986    Date: 2001/05/22 18:06:00 EDT
2987    Tag: blume-20010522-targets
2988    Description:
2989    
2990    Made install.sh use file config/targets.customized if it exists, falling
2991    back to config/targets if it doesn't.  This way one can have a customized
2992    version of the targets file without touching the "real thing", thus
2993    eliminating the constant fear of accidentally checking something bogus
2994    back into the CVS repository...  (File config/targets.customized must
2995    not be added to the repository!)
2996    
2997    ----------------------------------------------------------------------
2998    Name: Matthias Blume
2999    Date: 2001/05/22 16:30:00 EDT
3000    Tag: blume-20010522-minitut
3001    Description:
3002    
3003    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
3004       struct returns.
3005    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
3006       incomplete, preliminary documentation for NLFFI.
3007    
3008    ----------------------------------------------------------------------
3009    Name: Matthias Blume
3010    Date: 2001/05/14 11:30:00 EDT
3011    Tag: blume-20010514-script
3012    Description:
3013    
3014    Some bugs in install script fixed.
3015    
3016    In addition to that I also made a slight change to the NLFFI API:
3017    Functors generated by ml-nlffigen now take the dynamic library as a
3018    straight functor argument, not as a suspended one.  (The original
3019    functor code used to force the suspension right away anyway, so there
3020    was nothing gained by this complication of the interface.)
3021    
3022    ----------------------------------------------------------------------
3023    Name: Matthias Blume
3024    Date: 2001/05/11 14:35:00 EDT
3025    Tag: blume-20010511-ml-nlffi
3026    Description:
3027    
3028    I finally took the plunge and added my new FFI code to the main
3029    repository.  For x86-linux it is now ready for prime-time.
3030    
3031    There are two new subdirectories of "src":
3032    
3033      - ml-nlffi-lib:
3034           The utility library for programs using the FFI interface.
3035           Here is the implementation of $/c.cm and its associated low-level
3036           partners $/c-int.cm and $/memory.cm.
3037      - ml-nlffigen:
3038           A stand-alone program for generating ML glue code from C source
3039           code.
3040    
3041    Building ml-nlffigen requires $/ckit-lib.cm.
3042    
3043    The config/install.sh script has been updates to do the Right Thing
3044    (hopefully).
3045    
3046    Notice that the source tree for the C-Kit will not be put under "src"
3047    but directly under the installation root directory.  (This is the
3048    structure that currently exists on the CVS server when you check out
3049    module "sml".)  Fortunately, config/install.sh knows about this oddity.
3050    
3051    Bugs: No documentation yet.
3052    
3053    ----------------------------------------------------------------------
3054    Name: Matthias Blume
3055    Date: 2001/05/09 16:35:00 EDT
3056    Tag: blume-20010509-cpscontract
3057    Description:
3058    
3059    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
3060    wrapper/unwrapper elimination did not decrement usage counts and some
3061    dead variables got overlooked by the dead-up logic.)
3062    
3063    ----------------------------------------------------------------------
3064    Name: Lal George
3065    Date: 2001/05/08  17:26:09 EDT
3066    Tag: george-20010508-omit-frameptr
3067    Description:
3068    
3069    Changes to implement the omit-frame-pointer optimization to support
3070    raw C calls. For now, there is only support on the Intel x86, but
3071    other architectures will follow as more experience is gained with this.
3072    
3073    
3074    ----------------------------------------------------------------------
3075    Name: Matthias Blume
3076    Date: 2001/05/07 14:40:00 EDT
3077    Tag: blume-20010507-proxies
3078    Description:
3079    
3080    I made into "proxy libraries" all libraries that qualify for such a
3081    change.  (A qualifying library is a library that has another library or
3082    groups as its sole member and repeats that member's export list
3083    verbatim.  A proxy library avoids this repetition by omitting its export
3084    list, effectively inheriting the list that its (only) member exports.
3085    See the CM manual for more explanation.)
3086    The main effect is that explicit export lists for these libraries
3087    do not have to be kepts in sync, making maintenance a bit easier.
3088    
3089    I also added copyright notices to many .cm-files.
3090    
3091    Last but not least, I made a new set of bootfiles.
3092    
3093    ----------------------------------------------------------------------
3094    Name: Matthias Blume
3095    Date: 2001/05/04 17:00:00 EDT
3096    Tag: blume-20010504-cm-lsplit
3097    Description:
3098    
3099    0. John merged pending changes to $/smlnj-lib.cm
3100    
3101    1. Allen's previous change accidentally backed out of one of Lal's
3102       earlier changes.  I undid this mistake (re-introducing Lal's change).
3103    
3104    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
3105       within the compiler where applicable.  There is some code simplification
3106       because of that.
3107    
3108    3. The "split" phase (in FLINT) is now part of the default list of phases.
3109       Compiler.Control.LambdaSplitting.* can be used to globally control the
3110       lambda-splitting (cross-module-inlining) engine.  In addition to that,
3111       it can now also be controlled on a per-source basis: CM has been taught
3112       a new tool parameter applicable to ML source files.
3113    
3114       - To turn lambda-splitting off completely:
3115            local open Compiler.Control.LambdaSplitting in
3116                val _ = set Off
3117            end
3118       - To make "no lambda-splitting" the global default (but allow per-source
3119         overriding); this is the initial setting:
3120            local open Compiler.Control.LambdaSplitting in
3121                val _ = set (Default NONE)
3122            end
3123       - To make "lambda-splitting with aggressiveness a" the global default
3124         (and allow per-source overriding):
3125            local open Compiler.Control.LambdaSplitting in
3126                val _ = set (Default (SOME a))
3127            end
3128    
3129       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
3130         write (in the respective .cm-file):
3131            a.sml (lambdasplitting:off)
3132       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
3133            a.sml (lambdasplitting:on)
3134       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
3135         <a> is a decimal non-negative integer):
3136            a.sml (lambdasplitting:<a>)
3137       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
3138            a.sml (lambdasplitting:infinity)
3139       - To use the global default for a.sml:
3140            a.sml (lambdasplitting:default)
3141         or simply
3142            a.sml
3143    
3144    ----------------------------------------------------------------------
3145    Name: Allen Leung
3146    Date: 2001/05/04 01:57:00 EDT
3147    Tag: leunga-20010504-sync
3148    Description:
3149    
3150      MLRISC features.
3151    
3152      1. Fix to CMPXCHG instructions.
3153      2. Changed RA interface to allow annotations in callbacks.
3154      3. Added a new method to the stream interface to allow annotations updates.
3155    
3156    ----------------------------------------------------------------------
3157    Name: Matthias Blume
3158    Date: 2001/05/01 11:45:00 EDT
3159    Tag: blume-20010501-pcedittmp
3160    Description:
3161    
3162    Changed install.sh to use the current working directory instead of
3163    /usr/tmp for a temporary file (pcedittmp).  The previous choice
3164    of /usr/tmp caused trouble with MacOS X because of file premission
3165    problems.
3166    
3167    ----------------------------------------------------------------------
3168    Name: Matthias Blume
3169    Date: 2001/04/20 11:10:00 EDT
3170    Tag: blume-20010420-inMLflag
3171    Description:
3172    
3173     - added vp_limitPtrMask to vproc-state.h
3174       (for use by the raw-C-calls mechanism to implement proper interrupt
3175        handling)
3176     - made the ML compiler aware of various data-structure offsets so it
3177       can generate code for accessing the vp_inML flag and vp_limitPtrMask
3178     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
3179       raw C-calls
3180    
3181    ----------------------------------------------------------------------
3182    Name: Lal George
3183    Date: 2001/04/20 09:15:28 EDT
3184    Tag: george-20010420-macosX
3185    Description:
3186    
3187     - Changes to port to Mac OS X; Darwin.
3188    
3189     - In the process I found that sqrt was broken on the PPC, because the
3190       fsqrt instruction is not implemented.
3191    
3192    ----------------------------------------------------------------------
3193    Name: Matthias Blume
3194    Date: 2001/04/18 12:45:00 EDT
3195    Tag: blume-20010418-ccalls
3196    Description:
3197    
3198     - fixed two off-by-4 errors in the x86-specific c-calls implementation
3199       (this bug prevented structure arguments containing pointers from being
3200        passed correctly)
3201     - changed the raw-C-call code in mlriscGen.sml in such a way that
3202       structure arguments are represented as a pointer to the beginning
3203       of the structure (instead of having a series of synthesized arguments,
3204       one for each structure member)
3205    
3206     - made makeml script's verbosity level configurable via environment
3207       variable (MAKEML_VERBOSITY)
3208    
3209     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
3210       in rawmem-x86.sml; we are now using the real thing
3211    
3212    ----------------------------------------------------------------------
3213    Name: Matthias Blume
3214    Date: 2001/03/22 16:25:00 EST
3215    Tag: blume-20010322-bootfiles
3216    Description:
3217    
3218    Created a new set of bootfiles (for your automatic installation convenience).
3219    
3220    ----------------------------------------------------------------------
3221    Name: Matthias Blume
3222    Date: 2001/03/22 15:10:00 EST
3223    Tag: blume-20010322-rawmem-parcm
3224    Description:
3225    
3226    1. All "raw memory access" primitives for the new FFI are implemented now
3227       (at least on the x86).
3228    2. Some further cleanup of CM's parallel make mechanism.
3229    
3230    ----------------------------------------------------------------------
3231    Name: Matthias Blume
3232    Date: 2001/03/19 17:53:00 EST
3233    Tag: blume-20010319-parallel
3234    Description:
3235    
3236    Parallel make (using compile servers) now works again.
3237    
3238    To this end, CM.stabilize and CMB.make have been modified to work in
3239    two passes when compile servers are attached:
3240       1. Compile everything, do not perform stabilization; this pass
3241          uses compile servers
3242       2. Stabilize everything; this pass does not use compile servers
3243    If there are no compile servers, the two passes are combined into one
3244    (as before).  Splitting the passes increases the inherent parallelism
3245    in the dependency graph because the entire graph including all
3246    libraries is available at the same time.  This, in turn, improves
3247    server utilization.  The downside is that the master process will
3248    have to do some extra work after compilation is done (because for
3249    technical reasons it must re-read all the binfiles during stabilization).
3250    
3251    ----------------------------------------------------------------------
3252    Name: Matthias Blume
3253    Date: 2001/03/16 12:22:00 EST
3254    Tag: blume-20010316-bootfiles
3255    Description:
3256    
3257    Created a new set of bootfiles (for your automatic installation convenience).
3258    
3259    ----------------------------------------------------------------------
3260    Name: Matthias Blume
3261    Date: 2001/03/16 11:00:00 EST
3262    Tag: blume-20010316-MLTREE-fixup
3263    Description:
3264    
3265    This is a minor fixup for an (untagged) earlier commit by Allen.
3266    (A file was missing).
3267    
3268    ----------------------------------------------------------------------
3269    Name: Allen Leung
3270    Date: Mon Mar  5 18:54:57 EST 2001
3271    Tag: leunga-20010305-cut-support
3272    
3273    1. New support for alternative control-flow in MLTREE.
3274       Currently we support
3275    
3276          FLOW_TO(CALL ...., [k1,...,kn])
3277    
3278       This is needed for 'cuts to' in C-- and try/handle-like constructs
3279       in Moby
3280    
3281       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
3282    
3283    2. Register Allocator
3284    
3285       Changes in interface [from Fermin, John]
3286    
3287    3. Alpha 8-bit SLL support [Fermin]
3288    
3289    4. All architectures
3290    
3291       A new module (ClusterExpandCopies) for expanding parallel copies.
3292    
3293    ----------------------------------------------------------------------
3294    Name: Allen Leung
3295    Date: 2001/02/27 23:07:00 EST
3296    Tag: leunga-20010227-minor-stuff
3297    
3298    1. Alpha bug fix for CMOVNE
3299    2. Handle mltree COND(..,FCMP ...,...)
3300    3. Bug fix in simplifier
3301    
3302    ----------------------------------------------------------------------
3303    Name: Matthias Blume
3304    Date: 2001/01/30 17:50:00 EST
3305    Tag: blume-20010130-sync
3306    Description:
3307    
3308    This is just a minor update to sync my devel branch with the main brach.
3309    The only visible change is the addition of some README files.
3310    
3311    ----------------------------------------------------------------------
3312    Name: Matthias Blume
3313    Date: 2001/01/12 23:30:00 JST
3314    Tag: blume-20010112-bootfiles
3315    Description:
3316    
3317    Made a new set of bootfiles that goes with the current state of the
3318    repository.
3319    
3320    ----------------------------------------------------------------------
3321    Name: Matthias Blume
3322    Date: 2001/01/12 21:20:00 JST
3323    Tag: blume-20010112-sync
3324    Description:
3325    
3326    I am just flushing out some minor changes that had accumulated in
3327    my private branch in order to sync with the main tree.  (This is
3328    mainly because I had CVS trouble when trying to merge _into_ my
3329    private branch.)
3330    
3331    Most people should be completely unaffected by this.
3332    
3333    ----------------------------------------------------------------------
3334    Name: Allen Leung
3335    Date: Thu Jan 11 21:03:00 EST 2001
3336    Tag: leunga-20010111-labexp=mltree
3337    Description:
3338    
3339    1.  Removed the type LabelExp and replace it by MLTree.
3340    2.  Rewritten mltree-simplify with the pattern matcher tool.
3341    3.  There were some bugs in alpha code generator which would break
3342        64-bit code generation.
3343    4.  Redo the tools to generate code with the
3344    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
3345        are now generated by perl scripts.
3346    
3347  ----------------------------------------------------------------------  ----------------------------------------------------------------------
3348  Name: Matthias Blume  Name: Matthias Blume
3349  Date: 2001/01/10 21:55:00 JST  Date: 2001/01/10 21:55:00 JST
# Line 1906  Line 5239 
5239       elaborator). There were a lot of changes during my "linkpath" trials       elaborator). There were a lot of changes during my "linkpath" trials
5240       that could have been reverted to their original state but weren't.       that could have been reverted to their original state but weren't.
5241       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
5242       than what was strictly necessary...  (I _did_ resist the tempation       than what was strictly necessary...  (I _did_ resist the temptation
5243       of doing any "global reformatting" to avoid an untimely death at       of doing any "global reformatting" to avoid an untimely death at
5244       Dave's hands. :)       Dave's hands. :)
5245    

Legend:
Removed from v.774  
changed lines
  Added in v.1296

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