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 1158, Fri Mar 22 01:21:25 2002 UTC revision 1334, Thu May 22 22:46:30 2003 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Matthias Blume (blume@tti-c.org)
17    Date: 2003/05/21 17:45:00 CDT
18    Tag: blume-20030517-complete
19    Description:
20    
21    Two changes:
22    
23      1. Added a flag for controlling whether non-exhaustive bindings will
24         be treated as errors (default is false).
25      2. Cleaned up the *entire* source tree so that CMB.make goes through
26         without a single non-exhaustive match- or bind warning.
27    
28    ----------------------------------------------------------------------
29    Name: Matthias Blume (blume@tti-c.org)
30    Date: 2003/05/17 10:20:00 CDT
31    Tag: blume-20030517-absyn
32    Description:
33    
34    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
35    
36       This mainly affects the quality of error messages.  However, some
37       of the code is now more straightforward than before. (Treatment of
38       the above four constructs in translate.sml is much simpler than
39       the "macro-expansion" that was going on before.  Plus, the mach-
40       compiler no longer gets invoked just to be able to compile an
41       if-expression.)
42    
43    2. The ErrorMsg.Error exception is now caught and absorbed by the
44       interactive loop.
45    
46    ----------------------------------------------------------------------
47    Name: Allen Leung
48    Date: 2003/05/16 13:05:00 CDT
49    Tag: leunga-20030516-cygwin-runtime
50    Description:
51    
52        Ported the runtime system to cygwin, which uses the unix
53    x86-unix bin files.  Missing/buggy features:
54    
55       o getnetbyname, getnetbyaddr: these functions seem to be missing in
56         the Cygwin library.
57       o Ctrl-C handling may be flaky.
58       o Windows system calls and Windows I/O are not supported.
59    
60       A new set of binfiles is located at:
61    
62         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
63    
64       This is only needed for bootstrapping the cygwin version of smlnj.
65       Other x86 versions can use the existing binfiles.
66    
67    ----------------------------------------------------------------------
68    Name: Matthias Blume
69    Date: 2003/04/08 15:42:00 CDT
70    Tag: blume-20030408-listpair
71    Description:
72    
73    1. Added a target 'mlrisc' to installer.
74    
75    2. Added missing elements to structure ListPair.
76    
77    ----------------------------------------------------------------------
78    Name: Allen Leung
79    Date: 2003/01/07 10:40:00 EST
80    Tag: leunga-20030107-int-rem
81    Description:
82    
83    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
84    The arguments to the SUBL instruction were swapped.
85    
86    ----------------------------------------------------------------------
87    Name: Matthias Blume
88    Date: 2002/12/12 16:25:00 EST
89    Tag: blume-20021212-risc-ra
90    Description:
91    
92    Fixed a serious bug in the rewrite code for FP spilling/reloading that
93    sent the RA into an infinite loop when floating point registers get
94    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
95    110.37 and 110.38.)
96    There was another set of potential problems related to the handling of
97    MLRISC annotations (but those did not yet cause real problems, apparently).
98    
99    ----------------------------------------------------------------------
100    Name: Matthias Blume
101    Date: 2002/12/06 22:40:00 EST
102    Tag: blume-20021206-cm-fileid
103    Description:
104    
105    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
106    This fixes the problem of CM getting confused by files that suddenly
107    change their identity (e.g., by getting unlinked and recreated by some
108    text editor such as vi).  There might be a better/cheaper/cleaner way
109    of doing this, but for now this will have to do.
110    
111    ----------------------------------------------------------------------
112    Name: Matthias Blume
113    Date: 2002/10/28 09:50:00 EST
114    Tag: blume-20021028-typecheck
115    Description:
116    
117    Exported structure Typecheck from $smlnj/viscomp/core.cm.
118    
119    ----------------------------------------------------------------------
120    Name: Matthias Blume
121    Date: 2002/10/17 09:10:00 EDT
122    Tag: Release_110_42
123    Description:
124    
125    In good old tradition, there has been a slight hiccup so that we have
126    to patch 110.42 after the fact.   The old release tag has been replaced
127    (see below).
128    
129    The change solves a problem with two competing approaches the
130    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
131    each other's way.
132    
133    This change only affects the runtime system code and the installer script.
134    (No new bootfiles.)
135    
136    ----------------------------------------------------------------------
137    Name: Matthias Blume
138    Date: 2002/10/16 12:00:00 EDT
139    Tag: Release_110_42_removed
140    Description:
141    
142    New working release.  New bootfiles.
143    
144    ----------------------------------------------------------------------
145    Name: Matthias Blume
146    Date: 2002/10/10 13:10:00 EDT
147    Tag: blume-20021010-ppc-divs
148    Description:
149    
150    The mltree operator DIVS must be implemented with an overflow check on
151    the PPC because the hardware indicates divide-by-zero using "overflow" as
152    well.
153    
154    ----------------------------------------------------------------------
155    Name: Matthias Blume
156    Date: 2002/07/23 11:45:00
157    Tag: blume-20020723-smlnj-home
158    Description:
159    
160    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
161    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
162    CM_PATHCONFIG is also set), the path configuration file is assumed
163    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
164    the entire tree to some other place and everything will "just work".
165    
166    (Companion commands such as ml-build and ml-makedepend also sense this
167    variable.)
168    
169    ----------------------------------------------------------------------
170    Name: Matthias Blume
171    Date: 2002/07/12 21:19:00 EDT
172    Tag: blume-20020712-liveness
173    Description:
174    
175    Exported two useful "step" functions from liveness module (MLRISC).
176    
177    ----------------------------------------------------------------------
178    Name: Matthias Blume
179    Date: 2002/07/05 16:00 EDT
180    Tag: Release_110_41
181    Description:
182    
183    New working release.  New bootfiles.
184    
185    ----------------------------------------------------------------------
186    Name: Matthias Blume
187    Date: 2002/07/05 10:25:00 EDT
188    Tag: blume-20020705-btimp
189    Description:
190    
191    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
192    other clients can set up backtracing support.
193    
194    ----------------------------------------------------------------------
195    Name: Matthias Blume
196    Date: 2002/06/25 17:23:00 EDT
197    Tag: blume-20020625-fpmax
198    Description:
199    
200    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
201    case.  (The sense of the isNaN test was reversed -- which made min and
202    max always return their first argument.)
203    
204    ----------------------------------------------------------------------
205    Name: Matthias Blume
206    Date: 2002/06/11
207    Tag: blume-20020611-unixpath
208    Description:
209    
210    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
211    
212    ----------------------------------------------------------------------
213    Name: Matthias Blume
214    Date: 2002/06/10 16:35:00 EDT
215    Tag: blume-20020610-ieeereal
216    Description:
217    
218    I back-ported my implementation of IEEEReal.fromString from the
219    idlbasis-devel branch so that we can test it.
220    
221    Another small change is that ppDec tries to give more information
222    than just "<sig>" in the case of functors.  However, this code is
223    broken in some mysterious way if the functor's body's signature
224    has not been declared by ascription but gets inferred from the
225    implementation.  This needs fixing...
226    
227    ----------------------------------------------------------------------
228    Name: Matthias Blume
229    Date: 2002/05/31
230    Tag: blume-20020531-btrace-mode
231    Description:
232    
233    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
234    the wayside when I switched over to using Controls everywhere.)
235    
236    ----------------------------------------------------------------------
237    Name: Lal George
238    Date: 2002/05/23 12:21:40 EDT
239    Tag: george-20020523-visual-labels
240    Description:
241    
242    Labels are now displayed in the graphical output to make
243    the fall-through and target blocks obvious.
244    
245    ----------------------------------------------------------------------
246    Name: Matthias Blume
247    Date: 2002/05/22 11:03:00 EDT
248    Tag: blume-20020522-shrink
249    Description:
250    
251    John tweaked yesterday's fix for 1131 to handle an out-of-memory
252    situation that comes up when allocating huge arrays.
253    
254    ----------------------------------------------------------------------
255    Name: Matthias Blume
256    Date: 2002/05/21 16:00:00 EDT
257    Tag: Release_110_40
258    Description:
259    
260    New working release (110.40).  New bootfiles.
261    
262    [Also: John Reppy fixed GC bug 1131.]
263    
264    ----------------------------------------------------------------------
265    Name: Matthias Blume
266    Date: 2002/05/21 12:35:00 EDT
267    Tag: blume-20020521-cmdoc
268    Description:
269    
270    CM documentation update.
271    
272    ----------------------------------------------------------------------
273    Name: Matthias Blume
274    Date: 2002/05/21 10:55:00 EDT
275    Tag: blume-20020521-misc
276    Description:
277    
278    - John tweaked runtime to be silent on heap export (except when
279      GC messages are on).
280    - I added a few more things (cross-compiling versions of CMB) to
281      config/preloads (as suggestions).
282    
283    ----------------------------------------------------------------------
284    Name: Matthias Blume
285    Date: 2002/05/20 22:25:00 EDT
286    Tag: blume-20020520-controls
287    Description:
288    
289    - Added ControlUtil structure to control-lib.cm.
290    - Use it throughout.
291    - Used Controls facility to define MLRISC controls (as opposed to
292      registering MLRISC control ref cells with Controls after the fact)
293    - Fixed messed-up controls priorities.
294    
295    * Removed again all the stuff from config/preloads that one wouldn't
296      be able to preload at the time the initial heap image is built.
297      (Many libraries, e.g., CML, do not exist yet at this time.  The
298       only libraries that can be preloaded via config/preloads are those
299       that come bundled with the bootfiles.)
300    
301    ----------------------------------------------------------------------
302    Name: Matthias Blume
303    Date: 2002/05/20 10:59:00 EDT
304    Tag: blume-20020520-preloads
305    Description:
306    
307    Added a lot of commented-out suggestions for things to be included
308    in config/preloads.
309    
310    ----------------------------------------------------------------------
311    Name: Allen Leung
312    Date: 2002/05/18 14:20:00 EDT
313    Tag: leunga-20020518-mdl
314    Description:
315    
316    o Made the mdl tool stuff compile and run again.
317    o I've disabled all the stuff that depends on RTL specifications; they
318      are all badly broken anyway.
319    
320    ----------------------------------------------------------------------
321    Name: Matthias Blume
322    Date: 2002/05/17 16:49:00 EDT
323    Tag: blume-20020517-controls
324    Description:
325    
326    0. John Reppy made several modifications to the SML/NJ library.
327       In particular, there is a shiny new controls-lib.cm.
328    
329    1. Pushed new controls interface through compiler so that everything
330       compiles again.
331    
332    2. Added FormatComb and FORMAT_COMB to the CML version of the
333       SML/NJ library (so that CML compiles again).
334    
335    3. Modified init scripts because XXX_DEFAULT environment variables
336       are no longer with us.  (Boot-time initialization is now done
337       using the same environment variables that are also used for
338       startup-time initialization of controls.)
339    
340    ----------------------------------------------------------------------
341    Name: Lal George
342    Date: 2002/05/15 09:20:10 EDT
343    Tag: george-20020515-pseudo-op-decls
344    Description:
345    
346            All pseudo-ops emitted before the first segment declaration
347    such as TEXT, DATA, and BSS directives are assumed to be global
348    declarations and are emitted first in the assembly file. This is
349    useful in a number of situations where one has pseudo-ops that are not
350    specific to any segment, and also works around the constraint that one
351    cannot have client pseudo-ops in the TEXT segment.
352    
353            Because no segment is associated with these declarations it is
354    an error to allocate any space or objects before the first segment
355    directive and an exception will be raised. However, we cannot make
356    this check for client pseudo-ops.
357    
358            These top level declarations are a field in the CFG graph_info.
359    In theory you can continue to add to this field after the CFG has been
360    built -- provided you know what you are doing;-)
361    
362    ----------------------------------------------------------------------
363    Name: Matthias Blume
364    Date: 2002/05/13 16:40:00 EDT
365    Tag: blume-20020513-pp-etc
366    Description:
367    
368    A few minor bugfixes:
369    
370      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
371        (Bogus printouts for redefined bindings still occur.  Compiler
372        bug should no longer occur now.  We need to redo the prettyprinter
373        from scratch.)
374    
375      - CM pathname printer now also adds escape sequences for ( and )
376    
377      - commend and docu fixes for ml-nlffi
378    
379    ----------------------------------------------------------------------
380    Name: Matthias Blume
381    Date: 2002/05/10 16:40:00 EDT
382    Tag: blume-20020510-erg-textio
383    Description:
384    
385    Applied the following bugfix provided by Emden Gansner:
386    
387        Output is corrupted when outputSubstr is used rather than output.
388    
389        The problem occurs when a substring
390    
391            ss = (s, dataStart, dataLen)
392    
393        where dataStart > 0, fills a stream buffer with avail bytes left.
394        avail bytes of s, starting at index dataStart, are copied into the
395        buffer, the buffer is flushed, and then the remaining dataLen-avail
396        bytes of ss are copied into the beginning of the buffer. Instead of
397        starting this copy at index dataStart+avail in s, the current code
398        starts the copy at index avail.
399    
400        Fix:
401        In text-io-fn.sml, change line 695 from
402             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
403        to
404             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
405    
406    ----------------------------------------------------------------------
407    Name: Matthias Blume
408    Date: 2002/04/12 13:55:00 EDT
409    Tag: blume-20020412-assyntax
410    Description:
411    
412    1. Grabbed newer assyntax.h from the XFree86 project.
413    2. Fiddled with how to compile X86.prim.asm without warnings.
414    3. (Very) Minor cleanup in CM.
415    
416    ----------------------------------------------------------------------
417    Name: Matthias Blume
418    Date: 2002/04/01 (no joke!) 17:07:00 EST
419    Tag: blume-20020401-x86div
420    Description:
421    
422    Added full support for div/mod/rem/quot on the x86, using the machine
423    instruction's two results (without clumsily recomputing the remainder)
424    directly where appropriate.
425    
426    Some more extensive power-of-two support was added to the x86 instruction
427    selector (avoiding expensive divs, mods, and muls where they can be
428    replaced with cheaper shifts and masks).  However, this sort of thing
429    ought to be done earlier, e.g., within the CPS optimizer so that
430    all architectures benefit from it.
431    
432    The compiler compiles to a fixed point, but changes might be somewhat
433    fragile nevertheless.  Please, report any strange things that you might
434    see wrt. div/mod/quot/rem...
435    
436    ----------------------------------------------------------------------
437    Name: Matthias Blume
438    Date: 2002/03/29 17:22:00
439    Tag: blume-20020329-div
440    Description:
441    
442    Fixed my broken div/mod logic.  Unfortunately, this means that the
443    inline code for div/mod now has one more comparison than before.
444    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
445    The problem was with quotient = 0, because that alone does not tell
446    us which way the rounding went.  One then has to look at whether
447    remainder and divisor have the same sign...  :(
448    
449    Anyway, I replaced the bootfiles with fresh ones...
450    
451    ----------------------------------------------------------------------
452    Name: Matthias Blume
453    Date: 2002/03/29 14:10:00 EST
454    Tag: blume-20020329-inlprims
455    Description:
456    
457    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
458    
459    Primops have changed. This means that the bin/boot-file formats have
460    changed as well.
461    
462    To make sure that there is no confusion, I made a new version.
463    
464    
465    CHANGES:
466    
467    * removed REMT from mltree (remainder should never overflow).
468    
469    * added primops to deal with divisions of all flavors to the frontend
470    
471    * handled these primops all the way through so they map to their respective
472      MLRISC support
473    
474    * used these primops in the implementation of Int, Int32, Word, Word32
475    
476    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
477    
478    * parameterized INLMIN, INLMAX, and INLABS by a numkind
479    
480    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
481      floating point
482    
483    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
484      and Real (but Real.abs maps to a separate floating-point-only primop)
485    
486    
487    TODO items:
488    
489    * Hacked Alpha32 instruction selection, disabling the selection of REMx
490      instructions because the machine instruction encoder cannot handle
491      them.  (Hppa, PPC, and Sparc instruction selection did not handle
492      REM in the first place, and REM is supported by the x86 machine coder.)
493    
494    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
495      selection phase.  (The two can be streamlined because the hardware
496      delivers both quotient and remainder at the same time anyway.)
497    
498    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
499      (Currently the behavior is inconsistent both across architectures and
500      wrt. the draft Basis spec.)
501    
502    * Word8 should eventually be handled natively, too.
503    
504    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
505      as if there currently is no execution path that could trigger it in
506      SML/NJ.  (The assumptions underlying functions arith and promotable do not
507      hold for things like multiplication and division.)
508    
509    ----------------------------------------------------------------------
510    Name: Matthias Blume
511    Date: 2002/03/27 16:27:00 EST
512    Tag: blume-20020327-mlrisc-divisions
513    Description:
514    
515    Added support for all four division operations (ML's div, mod, quot,
516    and rem) to MLRISC.  In the course of doing so, I also rationalized
517    the naming (no more annoying switch-around of DIV and QUOT), by
518    parameterizing the operation by div_rounding_mode (which can be either
519    DIV_TO_ZERO or DIV_TO_NEGINF).
520    
521    The generic MLTreeGen functor takes care of compiling all four
522    operations down to only round-to-zero div.
523    
524    Missing pieces:
525    
526      * Doing something smarter than relying on MLTreeGen on architectures
527        like, e.g., the x86 where hardware division delivers both quotient and
528        remainder at the same time.  With this, the implementation of the
529        round-to-neginf operations could be further streamlined.
530    
531      * Remove inlining support for div/mod/rem from the frontend and replace it
532        with primops that get carried through to the backend.  Do this for all
533        int and word types.
534    
535    ----------------------------------------------------------------------
536    Name: Matthias Blume
537    Date: 2002/03/25 17:25:00 EST
538    Tag: blume-20020325-divmod
539    Description:
540    
541    I improved (hopefully without breaking them) the implementation of Int.div,
542    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
543    advantage of the following observations:
544    
545      Let  q = x quot y      r = x rem y
546           d = x div  y      m = x mod y
547    
548    where "quot" is the round-to-zero version of integer division that
549    hardware usually provides.  Then we have:
550    
551         r = x - q * y        where neither the * nor the - will overflow
552         d = if q >= 0 orelse x = q * y then q else q - 1
553                              where neither the * nor the - will overflow
554         m = if q >= 0 orelse r = 0 then r else r + y
555                              where the + will not overflow
556    
557    This results in substantial simplification of the generated code.
558    The following table shows the number of CFG nodes and edges generated
559    for
560            fun f (x, y) = x OPER y
561            (* with OPER \in div, mod, quot, rem *)
562    
563    
564        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
565        --------------------------------------------------------
566         div |         24 |         39 |         12 |         16
567         mod |         41 |         71 |         12 |         16
568        quot |          8 |         10 |          8 |         10
569         rem |         10 |         14 |          8 |         10
570    
571    
572    ----------------------------------------------------------------------
573    Name: Matthias Blume
574    Date: 2002/03/25 22:06:00 EST
575    Tag: blume-20020325-cprotobug
576    Description:
577    
578    Fixed a bug in cproto (c prototype decoder).
579    
580    ----------------------------------------------------------------------
581    Name: Matthias Blume
582    Date: 2002/03/25 16:00:00 EST
583    Tag: blume-20020325-raw-primops
584    Description:
585    
586    I did some cleanup to Allen's new primop code and
587    replaced yesterday's bootfiles with new ones.
588    (But they are stored in the same place.)
589    
590    ----------------------------------------------------------------------
591    Name: Matthias Blume
592    Date: 2002/03/24 22:40:00 EST
593    Tag: blume-20020324-bootfiles
594    Description:
595    
596    Made the bootfiles that Allen asked for.
597    
598    ----------------------------------------------------------------------
599    Name: Allen Leung
600    Date: 2002/03/23 15:50:00 EST
601    Tag: leunga-20020323-flint-cps-rcc-primops
602    Description:
603    
604      1. Changes to FLINT primops:
605    
606        (* make a call to a C-function;
607         * The primop carries C function prototype information and specifies
608         * which of its (ML-) arguments are floating point. C prototype
609         * information is for use by the backend, ML information is for
610         * use by the CPS converter. *)
611      | RAW_CCALL of { c_proto: CTypes.c_proto,
612                       ml_args: ccall_type list,
613                       ml_res_opt: ccall_type option,
614                       reentrant : bool
615                     } option
616       (* Allocate uninitialized storage on the heap.
617        * The record is meant to hold short-lived C objects, i.e., they
618        * are not ML pointers.  With the tag, the representation is
619        * the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8)
620        *)
621      | RAW_RECORD of {tag:bool,sz:int}
622      and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR
623    
624      2.  These CPS primops are now overloaded:
625    
626           rawload of {kind:numkind}
627           rawstore of {kind:numkind}
628    
629          The one argument form is:
630    
631             rawload {kind} address
632    
633          The two argument form is:
634    
635             rawload {kind} [ml object, byte-offset]
636    
637      3. RAW_CCALL/RCC now takes two extra arguments:
638    
639         a. The first is whether the C call is reentrant, i.e., whether
640            ML state should be saved and restored.
641         b. The second argument is a string argument specifying the name of
642            library and the C function.
643    
644         These things are currently not handled in the code generator, yet.
645    
646      4. In CProto,
647    
648         An encoding type of "bool" means "ml object" and is mapped into
649         C prototype of PTR.  Note that "bool" is different than "string",
650         even though "string" is also mapped into PTR, because "bool"
651         is assigned an CPS type of BOGt, while "string" is assigned INT32t.
652    
653      5. Pickler/unpicker
654    
655         Changed to handle RAW_RECORD and newest RAW_CCALL
656    
657      6. MLRiscGen,
658    
659         1. Changed to handle the new rawload/rawstore/rawrecord operators.
660         2. Code for handling C Calls has been moved to a new module CPSCCalls,
661            in the file CodeGen/cpscompile/cps-c-calls.sml
662    
663      7. Added the conditional move operator
664    
665             condmove of branch
666    
667         to cps.  Generation of this is still buggy so it is currently
668         disabled.
669    
670    ----------------------------------------------------------------------
671    Name: Lal George
672    Date: 2002/03/22 14:18:25 EST
673    Tag: george-20020322-cps-branch-prob
674    Description:
675    
676    Implemented the Ball-Larus branch prediction-heuristics, and
677    incorporated graphical viewers for control flow graphs.
678    
679    Ball-Larus Heuristics:
680    ---------------------
681    See the file compiler/CodeGen/cpscompile/cpsBranchProb.sml.
682    
683    By design it uses the Dempster-Shafer theory for combining
684    probabilities.  For example, in the function:
685    
686        fun f(n,acc) = if n = 0 then acc else f(n-1, n*acc)
687    
688    the ball-larus heuristics predicts that the n=0 is unlikely
689    (OH-heuristic), and the 'then' branch is unlikely because of the
690    RH-heuristic -- giving the 'then' branch an even lower combined
691    probability using the Dempster-Shafer theory.
692    
693    Finally, John Reppy's loop analysis in MLRISC, further lowers the
694    probability of the 'then' branch because of the loop in the else
695    branch.
696    
697    
698    Graphical Viewing:
699    ------------------
700    I merely plugged in Allen's graphical viewers into the compiler. The
701    additional code is not much. At the top level, saying:
702    
703            Control.MLRISC.getFlag "cfg-graphical-view" := true;
704    
705    will display the graphical view of the control flow graph just before
706    back-patching.  daVinci must be in your path for this to work. If
707    daVinci is not available, then the default viewer can be changed
708    using:
709    
710            Control.MLRISC.getString "viewer"
711    
712    which can be set to "dot" or "vcg" for the corresponding viewers. Of
713    course, these viewers must be in your path.
714    
715    The above will display the compilation unit at the level of clusters,
716    many of which are small, boring, and un-interesting. Also setting:
717    
718            Control.MLRISC.getInt "cfg-graphical-view_size"
719    
720    will display clusters that are larger than the value set by the above.
721    
722    
723    ----------------------------------------------------------------------
724    Name: Matthias Blume
725    Date: 2002/03/21 22:20:00 EST
726    Tag: blume-20020321-kmp-bugfix
727    Description:
728    
729    Changed the interface to the KMP routine in PreString and fixed
730    a minor bug in one place where it was used.
731    
732    ----------------------------------------------------------------------
733  Name: Allen Leung  Name: Allen Leung
734  Date: 2002/03/21 20:30:00 EST  Date: 2002/03/21 20:30:00 EST
735  Tag: leunga-20020321-cfg  Tag: leunga-20020321-cfg

Legend:
Removed from v.1158  
changed lines
  Added in v.1334

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