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 1174, Sat Mar 23 21:14:40 2002 UTC revision 1250, Fri Jul 5 14:22:42 2002 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Matthias Blume
17    Date: 2002/07/05 10:25:00 EDT
18    Tag: blume-20020705-btimp
19    Description:
20    
21    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
22    other clients can set up backtracing support.
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume
26    Date: 2002/06/25 17:23:00 EDT
27    Tag: blume-20020625-fpmax
28    Description:
29    
30    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
31    case.  (The sense of the isNaN test was reversed -- which made min and
32    max always return their first argument.)
33    
34    ----------------------------------------------------------------------
35    Name: Matthias Blume
36    Date: 2002/06/11
37    Tag: blume-20020611-unixpath
38    Description:
39    
40    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
41    
42    ----------------------------------------------------------------------
43    Name: Matthias Blume
44    Date: 2002/06/10 16:35:00 EDT
45    Tag: blume-20020610-ieeereal
46    Description:
47    
48    I back-ported my implementation of IEEEReal.fromString from the
49    idlbasis-devel branch so that we can test it.
50    
51    Another small change is that ppDec tries to give more information
52    than just "<sig>" in the case of functors.  However, this code is
53    broken in some mysterious way if the functor's body's signature
54    has not been declared by ascription but gets inferred from the
55    implementation.  This needs fixing...
56    
57    ----------------------------------------------------------------------
58    Name: Matthias Blume
59    Date: 2002/05/31
60    Tag: blume-20020531-btrace-mode
61    Description:
62    
63    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
64    the wayside when I switched over to using Controls everywhere.)
65    
66    ----------------------------------------------------------------------
67    Name: Lal George
68    Date: 2002/05/23 12:21:40 EDT
69    Tag: george-20020523-visual-labels
70    Description:
71    
72    Labels are now displayed in the graphical output to make
73    the fall-through and target blocks obvious.
74    
75    ----------------------------------------------------------------------
76    Name: Matthias Blume
77    Date: 2002/05/22 11:03:00 EDT
78    Tag: blume-20020522-shrink
79    Description:
80    
81    John tweaked yesterday's fix for 1131 to handle an out-of-memory
82    situation that comes up when allocating huge arrays.
83    
84    ----------------------------------------------------------------------
85    Name: Matthias Blume
86    Date: 2002/05/21 16:00:00 EDT
87    Tag: Release_110_40
88    Description:
89    
90    New working release (110.40).  New bootfiles.
91    
92    [Also: John Reppy fixed GC bug 1131.]
93    
94    ----------------------------------------------------------------------
95    Name: Matthias Blume
96    Date: 2002/05/21 12:35:00 EDT
97    Tag: blume-20020521-cmdoc
98    Description:
99    
100    CM documentation update.
101    
102    ----------------------------------------------------------------------
103    Name: Matthias Blume
104    Date: 2002/05/21 10:55:00 EDT
105    Tag: blume-20020521-misc
106    Description:
107    
108    - John tweaked runtime to be silent on heap export (except when
109      GC messages are on).
110    - I added a few more things (cross-compiling versions of CMB) to
111      config/preloads (as suggestions).
112    
113    ----------------------------------------------------------------------
114    Name: Matthias Blume
115    Date: 2002/05/20 22:25:00 EDT
116    Tag: blume-20020520-controls
117    Description:
118    
119    - Added ControlUtil structure to control-lib.cm.
120    - Use it throughout.
121    - Used Controls facility to define MLRISC controls (as opposed to
122      registering MLRISC control ref cells with Controls after the fact)
123    - Fixed messed-up controls priorities.
124    
125    * Removed again all the stuff from config/preloads that one wouldn't
126      be able to preload at the time the initial heap image is built.
127      (Many libraries, e.g., CML, do not exist yet at this time.  The
128       only libraries that can be preloaded via config/preloads are those
129       that come bundled with the bootfiles.)
130    
131    ----------------------------------------------------------------------
132    Name: Matthias Blume
133    Date: 2002/05/20 10:59:00 EDT
134    Tag: blume-20020520-preloads
135    Description:
136    
137    Added a lot of commented-out suggestions for things to be included
138    in config/preloads.
139    
140    ----------------------------------------------------------------------
141    Name: Allen Leung
142    Date: 2002/05/18 14:20:00 EDT
143    Tag: leunga-20020518-mdl
144    Description:
145    
146    o Made the mdl tool stuff compile and run again.
147    o I've disabled all the stuff that depends on RTL specifications; they
148      are all badly broken anyway.
149    
150    ----------------------------------------------------------------------
151    Name: Matthias Blume
152    Date: 2002/05/17 16:49:00 EDT
153    Tag: blume-20020517-controls
154    Description:
155    
156    0. John Reppy made several modifications to the SML/NJ library.
157       In particular, there is a shiny new controls-lib.cm.
158    
159    1. Pushed new controls interface through compiler so that everything
160       compiles again.
161    
162    2. Added FormatComb and FORMAT_COMB to the CML version of the
163       SML/NJ library (so that CML compiles again).
164    
165    3. Modified init scripts because XXX_DEFAULT environment variables
166       are no longer with us.  (Boot-time initialization is now done
167       using the same environment variables that are also used for
168       startup-time initialization of controls.)
169    
170    ----------------------------------------------------------------------
171    Name: Lal George
172    Date: 2002/05/15 09:20:10 EDT
173    Tag: george-20020515-pseudo-op-decls
174    Description:
175    
176            All pseudo-ops emitted before the first segment declaration
177    such as TEXT, DATA, and BSS directives are assumed to be global
178    declarations and are emitted first in the assembly file. This is
179    useful in a number of situations where one has pseudo-ops that are not
180    specific to any segment, and also works around the constraint that one
181    cannot have client pseudo-ops in the TEXT segment.
182    
183            Because no segment is associated with these declarations it is
184    an error to allocate any space or objects before the first segment
185    directive and an exception will be raised. However, we cannot make
186    this check for client pseudo-ops.
187    
188            These top level declarations are a field in the CFG graph_info.
189    In theory you can continue to add to this field after the CFG has been
190    built -- provided you know what you are doing;-)
191    
192    ----------------------------------------------------------------------
193    Name: Matthias Blume
194    Date: 2002/05/13 16:40:00 EDT
195    Tag: blume-20020513-pp-etc
196    Description:
197    
198    A few minor bugfixes:
199    
200      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
201        (Bogus printouts for redefined bindings still occur.  Compiler
202        bug should no longer occur now.  We need to redo the prettyprinter
203        from scratch.)
204    
205      - CM pathname printer now also adds escape sequences for ( and )
206    
207      - commend and docu fixes for ml-nlffi
208    
209    ----------------------------------------------------------------------
210    Name: Matthias Blume
211    Date: 2002/05/10 16:40:00 EDT
212    Tag: blume-20020510-erg-textio
213    Description:
214    
215    Applied the following bugfix provided by Emden Gansner:
216    
217        Output is corrupted when outputSubstr is used rather than output.
218    
219        The problem occurs when a substring
220    
221            ss = (s, dataStart, dataLen)
222    
223        where dataStart > 0, fills a stream buffer with avail bytes left.
224        avail bytes of s, starting at index dataStart, are copied into the
225        buffer, the buffer is flushed, and then the remaining dataLen-avail
226        bytes of ss are copied into the beginning of the buffer. Instead of
227        starting this copy at index dataStart+avail in s, the current code
228        starts the copy at index avail.
229    
230        Fix:
231        In text-io-fn.sml, change line 695 from
232             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
233        to
234             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
235    
236    ----------------------------------------------------------------------
237    Name: Matthias Blume
238    Date: 2002/04/12 13:55:00 EDT
239    Tag: blume-20020412-assyntax
240    Description:
241    
242    1. Grabbed newer assyntax.h from the XFree86 project.
243    2. Fiddled with how to compile X86.prim.asm without warnings.
244    3. (Very) Minor cleanup in CM.
245    
246    ----------------------------------------------------------------------
247    Name: Matthias Blume
248    Date: 2002/04/01 (no joke!) 17:07:00 EST
249    Tag: blume-20020401-x86div
250    Description:
251    
252    Added full support for div/mod/rem/quot on the x86, using the machine
253    instruction's two results (without clumsily recomputing the remainder)
254    directly where appropriate.
255    
256    Some more extensive power-of-two support was added to the x86 instruction
257    selector (avoiding expensive divs, mods, and muls where they can be
258    replaced with cheaper shifts and masks).  However, this sort of thing
259    ought to be done earlier, e.g., within the CPS optimizer so that
260    all architectures benefit from it.
261    
262    The compiler compiles to a fixed point, but changes might be somewhat
263    fragile nevertheless.  Please, report any strange things that you might
264    see wrt. div/mod/quot/rem...
265    
266    ----------------------------------------------------------------------
267    Name: Matthias Blume
268    Date: 2002/03/29 17:22:00
269    Tag: blume-20020329-div
270    Description:
271    
272    Fixed my broken div/mod logic.  Unfortunately, this means that the
273    inline code for div/mod now has one more comparison than before.
274    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
275    The problem was with quotient = 0, because that alone does not tell
276    us which way the rounding went.  One then has to look at whether
277    remainder and divisor have the same sign...  :(
278    
279    Anyway, I replaced the bootfiles with fresh ones...
280    
281    ----------------------------------------------------------------------
282    Name: Matthias Blume
283    Date: 2002/03/29 14:10:00 EST
284    Tag: blume-20020329-inlprims
285    Description:
286    
287    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
288    
289    Primops have changed. This means that the bin/boot-file formats have
290    changed as well.
291    
292    To make sure that there is no confusion, I made a new version.
293    
294    
295    CHANGES:
296    
297    * removed REMT from mltree (remainder should never overflow).
298    
299    * added primops to deal with divisions of all flavors to the frontend
300    
301    * handled these primops all the way through so they map to their respective
302      MLRISC support
303    
304    * used these primops in the implementation of Int, Int32, Word, Word32
305    
306    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
307    
308    * parameterized INLMIN, INLMAX, and INLABS by a numkind
309    
310    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
311      floating point
312    
313    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
314      and Real (but Real.abs maps to a separate floating-point-only primop)
315    
316    
317    TODO items:
318    
319    * Hacked Alpha32 instruction selection, disabling the selection of REMx
320      instructions because the machine instruction encoder cannot handle
321      them.  (Hppa, PPC, and Sparc instruction selection did not handle
322      REM in the first place, and REM is supported by the x86 machine coder.)
323    
324    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
325      selection phase.  (The two can be streamlined because the hardware
326      delivers both quotient and remainder at the same time anyway.)
327    
328    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
329      (Currently the behavior is inconsistent both across architectures and
330      wrt. the draft Basis spec.)
331    
332    * Word8 should eventually be handled natively, too.
333    
334    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
335      as if there currently is no execution path that could trigger it in
336      SML/NJ.  (The assumptions underlying functions arith and promotable do not
337      hold for things like multiplication and division.)
338    
339    ----------------------------------------------------------------------
340    Name: Matthias Blume
341    Date: 2002/03/27 16:27:00 EST
342    Tag: blume-20020327-mlrisc-divisions
343    Description:
344    
345    Added support for all four division operations (ML's div, mod, quot,
346    and rem) to MLRISC.  In the course of doing so, I also rationalized
347    the naming (no more annoying switch-around of DIV and QUOT), by
348    parameterizing the operation by div_rounding_mode (which can be either
349    DIV_TO_ZERO or DIV_TO_NEGINF).
350    
351    The generic MLTreeGen functor takes care of compiling all four
352    operations down to only round-to-zero div.
353    
354    Missing pieces:
355    
356      * Doing something smarter than relying on MLTreeGen on architectures
357        like, e.g., the x86 where hardware division delivers both quotient and
358        remainder at the same time.  With this, the implementation of the
359        round-to-neginf operations could be further streamlined.
360    
361      * Remove inlining support for div/mod/rem from the frontend and replace it
362        with primops that get carried through to the backend.  Do this for all
363        int and word types.
364    
365    ----------------------------------------------------------------------
366    Name: Matthias Blume
367    Date: 2002/03/25 17:25:00 EST
368    Tag: blume-20020325-divmod
369    Description:
370    
371    I improved (hopefully without breaking them) the implementation of Int.div,
372    Int.mod, and Int.rem.   For this, the code in translate.sml now takes
373    advantage of the following observations:
374    
375      Let  q = x quot y      r = x rem y
376           d = x div  y      m = x mod y
377    
378    where "quot" is the round-to-zero version of integer division that
379    hardware usually provides.  Then we have:
380    
381         r = x - q * y        where neither the * nor the - will overflow
382         d = if q >= 0 orelse x = q * y then q else q - 1
383                              where neither the * nor the - will overflow
384         m = if q >= 0 orelse r = 0 then r else r + y
385                              where the + will not overflow
386    
387    This results in substantial simplification of the generated code.
388    The following table shows the number of CFG nodes and edges generated
389    for
390            fun f (x, y) = x OPER y
391            (* with OPER \in div, mod, quot, rem *)
392    
393    
394        OPER | nodes(old) | edges(old) | nodes(new) | edges(new)
395        --------------------------------------------------------
396         div |         24 |         39 |         12 |         16
397         mod |         41 |         71 |         12 |         16
398        quot |          8 |         10 |          8 |         10
399         rem |         10 |         14 |          8 |         10
400    
401    
402    ----------------------------------------------------------------------
403    Name: Matthias Blume
404    Date: 2002/03/25 22:06:00 EST
405    Tag: blume-20020325-cprotobug
406    Description:
407    
408    Fixed a bug in cproto (c prototype decoder).
409    
410    ----------------------------------------------------------------------
411    Name: Matthias Blume
412    Date: 2002/03/25 16:00:00 EST
413    Tag: blume-20020325-raw-primops
414    Description:
415    
416    I did some cleanup to Allen's new primop code and
417    replaced yesterday's bootfiles with new ones.
418    (But they are stored in the same place.)
419    
420    ----------------------------------------------------------------------
421    Name: Matthias Blume
422    Date: 2002/03/24 22:40:00 EST
423    Tag: blume-20020324-bootfiles
424    Description:
425    
426    Made the bootfiles that Allen asked for.
427    
428    ----------------------------------------------------------------------
429  Name: Allen Leung  Name: Allen Leung
430  Date: 2002/03/23 15:50:00 EST  Date: 2002/03/23 15:50:00 EST
431  Tag: leunga-20020323-flint-cps-rcc-primops  Tag: leunga-20020323-flint-cps-rcc-primops

Legend:
Removed from v.1174  
changed lines
  Added in v.1250

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