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

Legend:
Removed from v.1171  
changed lines
  Added in v.1317

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