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/NOTES/HISTORY
ViewVC logotype

Diff of /sml/trunk/NOTES/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1133, Tue Mar 12 03:56:23 2002 UTC revision 1327, Fri May 16 16:59:31 2003 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Allen Leung
17    Date: 2003/05/16 13:05:00 CDT
18    Tag: leunga-20030516-cygwin-runtime
19    Description:
20    
21        Ported the runtime system to cygwin, which uses the unix
22    x86-unix bin files.  Missing/buggy features:
23    
24       o getnetbyname, getnetbyaddr: these functions seem to be missing in
25         the Cygwin library.
26       o Ctrl-C handling may be flaky.
27       o Windows system calls and Windows I/O are not supported.
28    
29       A new set of binfiles is located at:
30    
31         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
32    
33       This is only needed for bootstrapping the cygwin version of smlnj.
34       Other x86 versions can use the existing binfiles.
35    
36    ----------------------------------------------------------------------
37    Name: Matthias Blume
38    Date: 2003/04/08 15:42:00 CDT
39    Tag: blume-20030408-listpair
40    Description:
41    
42    1. Added a target 'mlrisc' to installer.
43    
44    2. Added missing elements to structure ListPair.
45    
46    ----------------------------------------------------------------------
47    Name: Allen Leung
48    Date: 2003/01/07 10:40:00 EST
49    Tag: leunga-20030107-int-rem
50    Description:
51    
52    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
53    The arguments to the SUBL instruction were swapped.
54    
55    ----------------------------------------------------------------------
56    Name: Matthias Blume
57    Date: 2002/12/12 16:25:00 EST
58    Tag: blume-20021212-risc-ra
59    Description:
60    
61    Fixed a serious bug in the rewrite code for FP spilling/reloading that
62    sent the RA into an infinite loop when floating point registers get
63    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
64    110.37 and 110.38.)
65    There was another set of potential problems related to the handling of
66    MLRISC annotations (but those did not yet cause real problems, apparently).
67    
68    ----------------------------------------------------------------------
69    Name: Matthias Blume
70    Date: 2002/12/06 22:40:00 EST
71    Tag: blume-20021206-cm-fileid
72    Description:
73    
74    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
75    This fixes the problem of CM getting confused by files that suddenly
76    change their identity (e.g., by getting unlinked and recreated by some
77    text editor such as vi).  There might be a better/cheaper/cleaner way
78    of doing this, but for now this will have to do.
79    
80    ----------------------------------------------------------------------
81    Name: Matthias Blume
82    Date: 2002/10/28 09:50:00 EST
83    Tag: blume-20021028-typecheck
84    Description:
85    
86    Exported structure Typecheck from $smlnj/viscomp/core.cm.
87    
88    ----------------------------------------------------------------------
89    Name: Matthias Blume
90    Date: 2002/10/17 09:10:00 EDT
91    Tag: Release_110_42
92    Description:
93    
94    In good old tradition, there has been a slight hiccup so that we have
95    to patch 110.42 after the fact.   The old release tag has been replaced
96    (see below).
97    
98    The change solves a problem with two competing approaches the
99    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
100    each other's way.
101    
102    This change only affects the runtime system code and the installer script.
103    (No new bootfiles.)
104    
105    ----------------------------------------------------------------------
106    Name: Matthias Blume
107    Date: 2002/10/16 12:00:00 EDT
108    Tag: Release_110_42_removed
109    Description:
110    
111    New working release.  New bootfiles.
112    
113    ----------------------------------------------------------------------
114    Name: Matthias Blume
115    Date: 2002/10/10 13:10:00 EDT
116    Tag: blume-20021010-ppc-divs
117    Description:
118    
119    The mltree operator DIVS must be implemented with an overflow check on
120    the PPC because the hardware indicates divide-by-zero using "overflow" as
121    well.
122    
123    ----------------------------------------------------------------------
124    Name: Matthias Blume
125    Date: 2002/07/23 11:45:00
126    Tag: blume-20020723-smlnj-home
127    Description:
128    
129    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
130    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
131    CM_PATHCONFIG is also set), the path configuration file is assumed
132    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
133    the entire tree to some other place and everything will "just work".
134    
135    (Companion commands such as ml-build and ml-makedepend also sense this
136    variable.)
137    
138    ----------------------------------------------------------------------
139    Name: Matthias Blume
140    Date: 2002/07/12 21:19:00 EDT
141    Tag: blume-20020712-liveness
142    Description:
143    
144    Exported two useful "step" functions from liveness module (MLRISC).
145    
146    ----------------------------------------------------------------------
147    Name: Matthias Blume
148    Date: 2002/07/05 16:00 EDT
149    Tag: Release_110_41
150    Description:
151    
152    New working release.  New bootfiles.
153    
154    ----------------------------------------------------------------------
155    Name: Matthias Blume
156    Date: 2002/07/05 10:25:00 EDT
157    Tag: blume-20020705-btimp
158    Description:
159    
160    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
161    other clients can set up backtracing support.
162    
163    ----------------------------------------------------------------------
164    Name: Matthias Blume
165    Date: 2002/06/25 17:23:00 EDT
166    Tag: blume-20020625-fpmax
167    Description:
168    
169    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
170    case.  (The sense of the isNaN test was reversed -- which made min and
171    max always return their first argument.)
172    
173    ----------------------------------------------------------------------
174    Name: Matthias Blume
175    Date: 2002/06/11
176    Tag: blume-20020611-unixpath
177    Description:
178    
179    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
180    
181    ----------------------------------------------------------------------
182    Name: Matthias Blume
183    Date: 2002/06/10 16:35:00 EDT
184    Tag: blume-20020610-ieeereal
185    Description:
186    
187    I back-ported my implementation of IEEEReal.fromString from the
188    idlbasis-devel branch so that we can test it.
189    
190    Another small change is that ppDec tries to give more information
191    than just "<sig>" in the case of functors.  However, this code is
192    broken in some mysterious way if the functor's body's signature
193    has not been declared by ascription but gets inferred from the
194    implementation.  This needs fixing...
195    
196    ----------------------------------------------------------------------
197    Name: Matthias Blume
198    Date: 2002/05/31
199    Tag: blume-20020531-btrace-mode
200    Description:
201    
202    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
203    the wayside when I switched over to using Controls everywhere.)
204    
205    ----------------------------------------------------------------------
206    Name: Lal George
207    Date: 2002/05/23 12:21:40 EDT
208    Tag: george-20020523-visual-labels
209    Description:
210    
211    Labels are now displayed in the graphical output to make
212    the fall-through and target blocks obvious.
213    
214    ----------------------------------------------------------------------
215    Name: Matthias Blume
216    Date: 2002/05/22 11:03:00 EDT
217    Tag: blume-20020522-shrink
218    Description:
219    
220    John tweaked yesterday's fix for 1131 to handle an out-of-memory
221    situation that comes up when allocating huge arrays.
222    
223    ----------------------------------------------------------------------
224    Name: Matthias Blume
225    Date: 2002/05/21 16:00:00 EDT
226    Tag: Release_110_40
227    Description:
228    
229    New working release (110.40).  New bootfiles.
230    
231    [Also: John Reppy fixed GC bug 1131.]
232    
233    ----------------------------------------------------------------------
234    Name: Matthias Blume
235    Date: 2002/05/21 12:35:00 EDT
236    Tag: blume-20020521-cmdoc
237    Description:
238    
239    CM documentation update.
240    
241    ----------------------------------------------------------------------
242    Name: Matthias Blume
243    Date: 2002/05/21 10:55:00 EDT
244    Tag: blume-20020521-misc
245    Description:
246    
247    - John tweaked runtime to be silent on heap export (except when
248      GC messages are on).
249    - I added a few more things (cross-compiling versions of CMB) to
250      config/preloads (as suggestions).
251    
252    ----------------------------------------------------------------------
253    Name: Matthias Blume
254    Date: 2002/05/20 22:25:00 EDT
255    Tag: blume-20020520-controls
256    Description:
257    
258    - Added ControlUtil structure to control-lib.cm.
259    - Use it throughout.
260    - Used Controls facility to define MLRISC controls (as opposed to
261      registering MLRISC control ref cells with Controls after the fact)
262    - Fixed messed-up controls priorities.
263    
264    * Removed again all the stuff from config/preloads that one wouldn't
265      be able to preload at the time the initial heap image is built.
266      (Many libraries, e.g., CML, do not exist yet at this time.  The
267       only libraries that can be preloaded via config/preloads are those
268       that come bundled with the bootfiles.)
269    
270    ----------------------------------------------------------------------
271    Name: Matthias Blume
272    Date: 2002/05/20 10:59:00 EDT
273    Tag: blume-20020520-preloads
274    Description:
275    
276    Added a lot of commented-out suggestions for things to be included
277    in config/preloads.
278    
279    ----------------------------------------------------------------------
280    Name: Allen Leung
281    Date: 2002/05/18 14:20:00 EDT
282    Tag: leunga-20020518-mdl
283    Description:
284    
285    o Made the mdl tool stuff compile and run again.
286    o I've disabled all the stuff that depends on RTL specifications; they
287      are all badly broken anyway.
288    
289    ----------------------------------------------------------------------
290    Name: Matthias Blume
291    Date: 2002/05/17 16:49:00 EDT
292    Tag: blume-20020517-controls
293    Description:
294    
295    0. John Reppy made several modifications to the SML/NJ library.
296       In particular, there is a shiny new controls-lib.cm.
297    
298    1. Pushed new controls interface through compiler so that everything
299       compiles again.
300    
301    2. Added FormatComb and FORMAT_COMB to the CML version of the
302       SML/NJ library (so that CML compiles again).
303    
304    3. Modified init scripts because XXX_DEFAULT environment variables
305       are no longer with us.  (Boot-time initialization is now done
306       using the same environment variables that are also used for
307       startup-time initialization of controls.)
308    
309    ----------------------------------------------------------------------
310    Name: Lal George
311    Date: 2002/05/15 09:20:10 EDT
312    Tag: george-20020515-pseudo-op-decls
313    Description:
314    
315            All pseudo-ops emitted before the first segment declaration
316    such as TEXT, DATA, and BSS directives are assumed to be global
317    declarations and are emitted first in the assembly file. This is
318    useful in a number of situations where one has pseudo-ops that are not
319    specific to any segment, and also works around the constraint that one
320    cannot have client pseudo-ops in the TEXT segment.
321    
322            Because no segment is associated with these declarations it is
323    an error to allocate any space or objects before the first segment
324    directive and an exception will be raised. However, we cannot make
325    this check for client pseudo-ops.
326    
327            These top level declarations are a field in the CFG graph_info.
328    In theory you can continue to add to this field after the CFG has been
329    built -- provided you know what you are doing;-)
330    
331    ----------------------------------------------------------------------
332    Name: Matthias Blume
333    Date: 2002/05/13 16:40:00 EDT
334    Tag: blume-20020513-pp-etc
335    Description:
336    
337    A few minor bugfixes:
338    
339      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
340        (Bogus printouts for redefined bindings still occur.  Compiler
341        bug should no longer occur now.  We need to redo the prettyprinter
342        from scratch.)
343    
344      - CM pathname printer now also adds escape sequences for ( and )
345    
346      - commend and docu fixes for ml-nlffi
347    
348    ----------------------------------------------------------------------
349    Name: Matthias Blume
350    Date: 2002/05/10 16:40:00 EDT
351    Tag: blume-20020510-erg-textio
352    Description:
353    
354    Applied the following bugfix provided by Emden Gansner:
355    
356        Output is corrupted when outputSubstr is used rather than output.
357    
358        The problem occurs when a substring
359    
360            ss = (s, dataStart, dataLen)
361    
362        where dataStart > 0, fills a stream buffer with avail bytes left.
363        avail bytes of s, starting at index dataStart, are copied into the
364        buffer, the buffer is flushed, and then the remaining dataLen-avail
365        bytes of ss are copied into the beginning of the buffer. Instead of
366        starting this copy at index dataStart+avail in s, the current code
367        starts the copy at index avail.
368    
369        Fix:
370        In text-io-fn.sml, change line 695 from
371             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
372        to
373             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
374    
375    ----------------------------------------------------------------------
376    Name: Matthias Blume
377    Date: 2002/04/12 13:55:00 EDT
378    Tag: blume-20020412-assyntax
379    Description:
380    
381    1. Grabbed newer assyntax.h from the XFree86 project.
382    2. Fiddled with how to compile X86.prim.asm without warnings.
383    3. (Very) Minor cleanup in CM.
384    
385    ----------------------------------------------------------------------
386    Name: Matthias Blume
387    Date: 2002/04/01 (no joke!) 17:07:00 EST
388    Tag: blume-20020401-x86div
389    Description:
390    
391    Added full support for div/mod/rem/quot on the x86, using the machine
392    instruction's two results (without clumsily recomputing the remainder)
393    directly where appropriate.
394    
395    Some more extensive power-of-two support was added to the x86 instruction
396    selector (avoiding expensive divs, mods, and muls where they can be
397    replaced with cheaper shifts and masks).  However, this sort of thing
398    ought to be done earlier, e.g., within the CPS optimizer so that
399    all architectures benefit from it.
400    
401    The compiler compiles to a fixed point, but changes might be somewhat
402    fragile nevertheless.  Please, report any strange things that you might
403    see wrt. div/mod/quot/rem...
404    
405    ----------------------------------------------------------------------
406    Name: Matthias Blume
407    Date: 2002/03/29 17:22:00
408    Tag: blume-20020329-div
409    Description:
410    
411    Fixed my broken div/mod logic.  Unfortunately, this means that the
412    inline code for div/mod now has one more comparison than before.
413    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
414    The problem was with quotient = 0, because that alone does not tell
415    us which way the rounding went.  One then has to look at whether
416    remainder and divisor have the same sign...  :(
417    
418    Anyway, I replaced the bootfiles with fresh ones...
419    
420    ----------------------------------------------------------------------
421    Name: Matthias Blume
422    Date: 2002/03/29 14:10:00 EST
423    Tag: blume-20020329-inlprims
424    Description:
425    
426    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
427    
428    Primops have changed. This means that the bin/boot-file formats have
429    changed as well.
430    
431    To make sure that there is no confusion, I made a new version.
432    
433    
434    CHANGES:
435    
436    * removed REMT from mltree (remainder should never overflow).
437    
438    * added primops to deal with divisions of all flavors to the frontend
439    
440    * handled these primops all the way through so they map to their respective
441      MLRISC support
442    
443    * used these primops in the implementation of Int, Int32, Word, Word32
444    
445    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
446    
447    * parameterized INLMIN, INLMAX, and INLABS by a numkind
448    
449    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
450      floating point
451    
452    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
453      and Real (but Real.abs maps to a separate floating-point-only primop)
454    
455    
456    TODO items:
457    
458    * Hacked Alpha32 instruction selection, disabling the selection of REMx
459      instructions because the machine instruction encoder cannot handle
460      them.  (Hppa, PPC, and Sparc instruction selection did not handle
461      REM in the first place, and REM is supported by the x86 machine coder.)
462    
463    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
464      selection phase.  (The two can be streamlined because the hardware
465      delivers both quotient and remainder at the same time anyway.)
466    
467    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
468      (Currently the behavior is inconsistent both across architectures and
469      wrt. the draft Basis spec.)
470    
471    * Word8 should eventually be handled natively, too.
472    
473    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
474      as if there currently is no execution path that could trigger it in
475      SML/NJ.  (The assumptions underlying functions arith and promotable do not
476      hold for things like multiplication and division.)
477    
478    ----------------------------------------------------------------------
479    Name: Matthias Blume
480    Date: 2002/03/27 16:27:00 EST
481    Tag: blume-20020327-mlrisc-divisions
482    Description:
483    
484    Added support for all four division operations (ML's div, mod, quot,
485    and rem) to MLRISC.  In the course of doing so, I also rationalized
486    the naming (no more annoying switch-around of DIV and QUOT), by
487    parameterizing the operation by div_rounding_mode (which can be either
488    DIV_TO_ZERO or DIV_TO_NEGINF).
489    
490    The generic MLTreeGen functor takes care of compiling all four
491    operations down to only round-to-zero div.
492    
493    Missing pieces:
494    
495      * Doing something smarter than relying on MLTreeGen on architectures
496        like, e.g., the x86 where hardware division delivers both quotient and
497        remainder at the same time.  With this, the implementation of the
498        round-to-neginf operations could be further streamlined.
499    
500      * Remove inlining support for div/mod/rem from the frontend and replace it
501        with primops that get carried through to the backend.  Do this for all
502        int and word types.
503    
504    ----------------------------------------------------------------------
505    Name: Matthias Blume
506    Date: 2002/03/25 17:25:00 EST
507    Tag: blume-20020325-divmod
508    Description:
509    
510    I improved (hopefully without breaking them) the implementation of Int.div,
511    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
512    advantage of the following observations:
513    
514      Let  q = x quot y      r = x rem y
515           d = x div  y      m = x mod y
516    
517    where "quot" is the round-to-zero version of integer division that
518    hardware usually provides.  Then we have:
519    
520         r = x - q * y        where neither the * nor the - will overflow
521         d = if q >= 0 orelse x = q * y then q else q - 1
522                              where neither the * nor the - will overflow
523         m = if q >= 0 orelse r = 0 then r else r + y
524                              where the + will not overflow
525    
526    This results in substantial simplification of the generated code.
527    The following table shows the number of CFG nodes and edges generated
528    for
529            fun f (x, y) = x OPER y
530            (* with OPER \in div, mod, quot, rem *)
531    
532    
533        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
534        --------------------------------------------------------
535         div |         24 |         39 |         12 |         16
536         mod |         41 |         71 |         12 |         16
537        quot |          8 |         10 |          8 |         10
538         rem |         10 |         14 |          8 |         10
539    
540    
541    ----------------------------------------------------------------------
542    Name: Matthias Blume
543    Date: 2002/03/25 22:06:00 EST
544    Tag: blume-20020325-cprotobug
545    Description:
546    
547    Fixed a bug in cproto (c prototype decoder).
548    
549    ----------------------------------------------------------------------
550    Name: Matthias Blume
551    Date: 2002/03/25 16:00:00 EST
552    Tag: blume-20020325-raw-primops
553    Description:
554    
555    I did some cleanup to Allen's new primop code and
556    replaced yesterday's bootfiles with new ones.
557    (But they are stored in the same place.)
558    
559    ----------------------------------------------------------------------
560    Name: Matthias Blume
561    Date: 2002/03/24 22:40:00 EST
562    Tag: blume-20020324-bootfiles
563    Description:
564    
565    Made the bootfiles that Allen asked for.
566    
567    ----------------------------------------------------------------------
568    Name: Allen Leung
569    Date: 2002/03/23 15:50:00 EST
570    Tag: leunga-20020323-flint-cps-rcc-primops
571    Description:
572    
573      1. Changes to FLINT primops:
574    
575        (* make a call to a C-function;
576         * The primop carries C function prototype information and specifies
577         * which of its (ML-) arguments are floating point. C prototype
578         * information is for use by the backend, ML information is for
579         * use by the CPS converter. *)
580      | RAW_CCALL of { c_proto: CTypes.c_proto,
581                       ml_args: ccall_type list,
582                       ml_res_opt: ccall_type option,
583                       reentrant : bool
584                     } option
585       (* Allocate uninitialized storage on the heap.
586        * The record is meant to hold short-lived C objects, i.e., they
587        * are not ML pointers.  With the tag, the representation is
588        * the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8)
589        *)
590      | RAW_RECORD of {tag:bool,sz:int}
591      and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR
592    
593      2.  These CPS primops are now overloaded:
594    
595           rawload of {kind:numkind}
596           rawstore of {kind:numkind}
597    
598          The one argument form is:
599    
600             rawload {kind} address
601    
602          The two argument form is:
603    
604             rawload {kind} [ml object, byte-offset]
605    
606      3. RAW_CCALL/RCC now takes two extra arguments:
607    
608         a. The first is whether the C call is reentrant, i.e., whether
609            ML state should be saved and restored.
610         b. The second argument is a string argument specifying the name of
611            library and the C function.
612    
613         These things are currently not handled in the code generator, yet.
614    
615      4. In CProto,
616    
617         An encoding type of "bool" means "ml object" and is mapped into
618         C prototype of PTR.  Note that "bool" is different than "string",
619         even though "string" is also mapped into PTR, because "bool"
620         is assigned an CPS type of BOGt, while "string" is assigned INT32t.
621    
622      5. Pickler/unpicker
623    
624         Changed to handle RAW_RECORD and newest RAW_CCALL
625    
626      6. MLRiscGen,
627    
628         1. Changed to handle the new rawload/rawstore/rawrecord operators.
629         2. Code for handling C Calls has been moved to a new module CPSCCalls,
630            in the file CodeGen/cpscompile/cps-c-calls.sml
631    
632      7. Added the conditional move operator
633    
634             condmove of branch
635    
636         to cps.  Generation of this is still buggy so it is currently
637         disabled.
638    
639    ----------------------------------------------------------------------
640    Name: Lal George
641    Date: 2002/03/22 14:18:25 EST
642    Tag: george-20020322-cps-branch-prob
643    Description:
644    
645    Implemented the Ball-Larus branch prediction-heuristics, and
646    incorporated graphical viewers for control flow graphs.
647    
648    Ball-Larus Heuristics:
649    ---------------------
650    See the file compiler/CodeGen/cpscompile/cpsBranchProb.sml.
651    
652    By design it uses the Dempster-Shafer theory for combining
653    probabilities.  For example, in the function:
654    
655        fun f(n,acc) = if n = 0 then acc else f(n-1, n*acc)
656    
657    the ball-larus heuristics predicts that the n=0 is unlikely
658    (OH-heuristic), and the 'then' branch is unlikely because of the
659    RH-heuristic -- giving the 'then' branch an even lower combined
660    probability using the Dempster-Shafer theory.
661    
662    Finally, John Reppy's loop analysis in MLRISC, further lowers the
663    probability of the 'then' branch because of the loop in the else
664    branch.
665    
666    
667    Graphical Viewing:
668    ------------------
669    I merely plugged in Allen's graphical viewers into the compiler. The
670    additional code is not much. At the top level, saying:
671    
672            Control.MLRISC.getFlag "cfg-graphical-view" := true;
673    
674    will display the graphical view of the control flow graph just before
675    back-patching.  daVinci must be in your path for this to work. If
676    daVinci is not available, then the default viewer can be changed
677    using:
678    
679            Control.MLRISC.getString "viewer"
680    
681    which can be set to "dot" or "vcg" for the corresponding viewers. Of
682    course, these viewers must be in your path.
683    
684    The above will display the compilation unit at the level of clusters,
685    many of which are small, boring, and un-interesting. Also setting:
686    
687            Control.MLRISC.getInt "cfg-graphical-view_size"
688    
689    will display clusters that are larger than the value set by the above.
690    
691    
692    ----------------------------------------------------------------------
693    Name: Matthias Blume
694    Date: 2002/03/21 22:20:00 EST
695    Tag: blume-20020321-kmp-bugfix
696    Description:
697    
698    Changed the interface to the KMP routine in PreString and fixed
699    a minor bug in one place where it was used.
700    
701    ----------------------------------------------------------------------
702    Name: Allen Leung
703    Date: 2002/03/21 20:30:00 EST
704    Tag: leunga-20020321-cfg
705    Description:
706    
707      Fixed a potential problem in cfg edge splitting.
708    
709    ----------------------------------------------------------------------
710    Name: Allen Leung
711    Date: 2002/03/21 17:15:00 EST
712    Tag: leunga-20020321-x86-fp-cfg
713    Description:
714    
715      1. Recoded the buggy parts of x86-fp.
716    
717         a. All the block reordering code has been removed.
718            We now depend on the block placement phases to do this work.
719    
720         b. Critical edge splitting code has been simplified and moved into the
721            CFG modules, as where they belong.
722    
723         Both of these were quite buggy and complex.  The code is now much, much
724         simpler.
725    
726      2. X86 backend.
727    
728         a. Added instructions for 64-bit support.  Instruction selection for
729            64-bit has not been committed, however, since that
730            requires changes to MLTREE which haven't been approved by
731            Lal and John.
732    
733         b. Added support for FUCOMI and FUCOMIP when generating code for
734            PentiumPro and above.  We only generate these instructions in
735            the fast-fp mode.
736    
737         c. Added cases for JP and JNP in X86FreqProps.
738    
739      3. CFG
740    
741         CFG now has a bunch of methods for edge splitting and merging.
742    
743      4. Machine description.
744    
745         John's simplification of MLTREE_BASIS.fcond broke a few machine
746         description things:
747    
748         rtl-build.{sig,sml} and hppa.mdl fixed.
749    
750         NOTE: the machine description stuff in the repository is still broken.
751               Again, I can't put my fixes in because that involves
752               changes to MLTREE.
753    
754    ----------------------------------------------------------------------
755    Name: Matthias Blume
756    Date: 2002/03/20 15:55:00 EST
757    Tag: blume-20020320-kmp
758    Description:
759    
760    Implemented Knuth-Morris-Pratt string matching in PreString and used
761    it for String.isSubstring, Substring.isSubstring, and
762    Substring.position.
763    
764    (Might need some stress-testing.  Simple examples worked fine.)
765    
766    ----------------------------------------------------------------------
767    Name: Matthias Blume
768    Date: 2002/03/19 16:37:00 EST
769    Tag: blume-20020319-witnesses
770    Description:
771    
772    Added a structure C.W and functions convert/Ptr.convert to ml-nlffi-lib.
773    
774    This implements a generic mechanism for changing constness qualifiers
775    anywhere within big C types without resorting to outright "casts".
776    (So far, functions such as C.rw/C.ro or C.Ptr.rw/C.Ptr.ro only let you
777    modify the constness at the outermost level.)
778    The implementation of "convert" is based on the idea of "witness"
779    values -- values that are not used by the operation but whose types
780    "testify" to their applicability.  On the implementation side, "convert"
781    is simply a projection (returning its second curried argument).  With
782    cross-module inlining, it should not result in any machine code being
783    generated.
784    
785    ----------------------------------------------------------------------
786    Name: Matthias Blume
787    Date: 2002/03/15 16:40:00 EST
788    Tag: blume-20020315-basis
789    Description:
790    
791    Provided (preliminary?) implementations for
792    
793      {String,Substring}.{concatWith,isSuffix,isSubstring}
794    
795    and
796    
797      Substring.full
798    
799    Those are in the Basis spec but they were missing in SML/NJ.
800    
801    ----------------------------------------------------------------------
802    Name: Matthias Blume
803    Date: 2002/03/14 21:30:00 EST
804    Tag: blume-20020314-controls
805    Description:
806    
807    Controls:
808    ---------
809    
810    1. Factored out the recently-added Controls : CONTROLS stuff and put
811       it into its own library $/controls-lib.cm.  The source tree for
812       this is under src/smlnj-lib/Controls.
813    
814    2. Changed the names of types and functions in this interface, so they
815       make a bit more "sense":
816    
817          module -> registry
818          'a registry -> 'a group
819    
820    3. The interface now deals in ref cells only.  The getter/setter interface
821       is (mostly) gone.
822    
823    4. Added a function that lets one register an already-existing ref cell.
824    
825    5. Made the corresponding modifications to the rest of the code so that
826       everything compiles again.
827    
828    6. Changed the implementation of Controls.MLRISC back to something closer
829       to the original.  In particular, this module (and therefore MLRISC)
830       does not depend on Controls.  There now is some link-time code in
831       int-sys.sml that registers the MLRISC controls with the Controls
832       module.
833    
834    CM:
835    ---
836    
837      * One can now specify the lambda-split aggressiveness in init.cmi.
838    
839    ----------------------------------------------------------------------
840    Name: Allen Leung
841    Date: 2002/03/13 17:30:00 EST
842    Tag: leunga-20020313-x86-fp-unary
843    Description:
844    
845    Bug fix for:
846    
847    > leunga@weaselbane:~/Yale/tmp/sml-dist{21} bin/sml
848    > Standard ML of New Jersey v110.39.1 [FLINT v1.5], March 08, 2002
849    > - fun f(x,(y,z)) = Real.~ y;
850    > [autoloading]
851    > [autoloading done]
852    >       fchsl   (%eax), 184(%esp)
853    > Error: MLRisc bug: X86MCEmitter.emitInstr
854    >
855    > uncaught exception Error
856    >   raised at: ../MLRISC/control/mlriscErrormsg.sml:16.14-16.19
857    
858    The problem was that the code generator did not generate any fp registers
859    in this case, and the ra didn't know that it needed to run the X86FP phase to
860    translate the pseudo fp instruction.   This only happened with unary fp
861    operators in certain situations.
862    
863    ----------------------------------------------------------------------
864    Name: Matthias Blume
865    Date: 2002/03/13 14:00:00 EST
866    Tag: blume-20020313-overload-etc
867    Description:
868    
869    1. Added _overload as a synonym for overload for backward compatibility.
870       (Control.overloadKW must be true for either version to be accepted.)
871    
872    2. Fixed bug in install script that caused more things to be installed
873       than what was requested in config/targets.
874    
875    3. Made CM aware of the (_)overload construct so that autoloading
876       works.
877    
878    ----------------------------------------------------------------------
879    Name: Matthias Blume
880    Date: 2002/03/12 22:03:00 EST
881    Tag: blume-20020312-url
882    Description:
883    
884    Forgot to update BOOT and srcarchiveurl.
885    
886    ----------------------------------------------------------------------
887    Name: Matthias Blume
888    Date: 2002/03/12 17:30:00 EST
889    Tag: blume-20020312-version110392
890    Description:
891    
892    Yet another version number bump (because of small changes to the
893    binfile format).  Version number is now 110.39.2.  NEW BOOTFILES!
894    
895    Changes:
896    
897      The new pid generation scheme described a few weeks ago was overly
898      complicated.  I implemented a new mechanism that is simpler and
899      provides a bit more "stability":  Once CM has seen a compilation
900      unit, it keeps its identity constant (as long as you do not delete
901      those crucial CM/GUID/* files).  This means that when you change
902      an interface, compile, then go back to the old interface, and
903      compile again, you arrive at the original pid.
904    
905      There now also is a mechanism that instructs CM to use the plain
906      environment hash as a module's pid (effectively making its GUID
907      the empty string).  For this, "noguid" must be specified as an
908      option to the .sml file in question within its .cm file.
909      This is most useful for code that is being generated by tools such
910      as ml-nlffigen (because during development programmers tend to
911      erase the tool's entire output directory tree including CM's cached
912      GUIDs).  "noguid" is somewhat dangerous (since it can be used to locally
913      revert to the old, broken behavior of SML/NJ, but in specific cases
914      where there is no danger of interface confusion, its use is ok
915      (I think).
916    
917      ml-nlffigen by default generates "noguid" annotations.  They can be
918      turned off by specifying -guid in its command line.
919    
920    ----------------------------------------------------------------------
921    Name: Lal George
922    Date: 2002/03/12 12 14:42:36 EST
923    Tag: george-20020312-frequency-computation
924    Description:
925    
926    Integrated jump chaining and static block frequency into the
927    compiler. More details and numbers later.
928    
929    ----------------------------------------------------------------------
930  Name: Lal George  Name: Lal George
931  Date: 2002/03/11 11 22:38:53 EST  Date: 2002/03/11 11 22:38:53 EST
932  Tag: george-20020311-jump-chain-elim  Tag: george-20020311-jump-chain-elim
# Line 60  Line 974 
974  ----------------------------------------------------------------------  ----------------------------------------------------------------------
975  Name: Allen Leung  Name: Allen Leung
976  Date: 2002/03/11 10:30:00 EST  Date: 2002/03/11 10:30:00 EST
977  Tag: leunga-20020310-runtime-string0  Tag: leunga-20020311-runtime-string0
978  Description:  Description:
979    
980     The representation of the empty string now points to a     The representation of the empty string now points to a

Legend:
Removed from v.1133  
changed lines
  Added in v.1327

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