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 1181, Wed Mar 27 21:27:27 2002 UTC revision 1192, Wed May 15 14:02:06 2002 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Lal George
17    Date: 2002/05/15 09:20:10 EDT
18    Tag: george-20020515-pseudo-op-decls
19    Description:
20    
21            All pseudo-ops emitted before the first segment declaration
22    such as TEXT, DATA, and BSS directives are assumed to be global
23    declarations and are emitted first in the assembly file. This is
24    useful in a number of situations where one has pseudo-ops that are not
25    specific to any segment, and also works around the constraint that one
26    cannot have client pseudo-ops in the TEXT segment.
27    
28            Because no segment is associated with these declarations it is
29    an error to allocate any space or objects before the first segment
30    directive and an exception will be raised. However, we cannot make
31    this check for client pseudo-ops.
32    
33            These top level declarations are a field in the CFG graph_info.
34    In theory you can continue to add to this field after the CFG has been
35    built -- provided you know what you are doing;-)
36    
37    ----------------------------------------------------------------------
38    Name: Matthias Blume
39    Date: 2002/05/13 16:40:00 EDT
40    Tag: blume-20020513-pp-etc
41    Description:
42    
43    A few minor bugfixes:
44    
45      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
46        (Bogus printouts for redefined bindings still occur.  Compiler
47        bug should no longer occur now.  We need to redo the prettyprinter
48        from scratch.)
49    
50      - CM pathname printer now also adds escape sequences for ( and )
51    
52      - commend and docu fixes for ml-nlffi
53    
54    ----------------------------------------------------------------------
55    Name: Matthias Blume
56    Date: 2002/05/10 16:40:00 EDT
57    Tag: blume-20020510-erg-textio
58    Description:
59    
60    Applied the following bugfix provided by Emden Gansner:
61    
62        Output is corrupted when outputSubstr is used rather than output.
63    
64        The problem occurs when a substring
65    
66            ss = (s, dataStart, dataLen)
67    
68        where dataStart > 0, fills a stream buffer with avail bytes left.
69        avail bytes of s, starting at index dataStart, are copied into the
70        buffer, the buffer is flushed, and then the remaining dataLen-avail
71        bytes of ss are copied into the beginning of the buffer. Instead of
72        starting this copy at index dataStart+avail in s, the current code
73        starts the copy at index avail.
74    
75        Fix:
76        In text-io-fn.sml, change line 695 from
77             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
78        to
79             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
80    
81    ----------------------------------------------------------------------
82    Name: Matthias Blume
83    Date: 2002/04/12 13:55:00 EDT
84    Tag: blume-20020412-assyntax
85    Description:
86    
87    1. Grabbed newer assyntax.h from the XFree86 project.
88    2. Fiddled with how to compile X86.prim.asm without warnings.
89    3. (Very) Minor cleanup in CM.
90    
91    ----------------------------------------------------------------------
92    Name: Matthias Blume
93    Date: 2002/04/01 (no joke!) 17:07:00 EST
94    Tag: blume-20020401-x86div
95    Description:
96    
97    Added full support for div/mod/rem/quot on the x86, using the machine
98    instruction's two results (without clumsily recomputing the remainder)
99    directly where appropriate.
100    
101    Some more extensive power-of-two support was added to the x86 instruction
102    selector (avoiding expensive divs, mods, and muls where they can be
103    replaced with cheaper shifts and masks).  However, this sort of thing
104    ought to be done earlier, e.g., within the CPS optimizer so that
105    all architectures benefit from it.
106    
107    The compiler compiles to a fixed point, but changes might be somewhat
108    fragile nevertheless.  Please, report any strange things that you might
109    see wrt. div/mod/quot/rem...
110    
111    ----------------------------------------------------------------------
112    Name: Matthias Blume
113    Date: 2002/03/29 17:22:00
114    Tag: blume-20020329-div
115    Description:
116    
117    Fixed my broken div/mod logic.  Unfortunately, this means that the
118    inline code for div/mod now has one more comparison than before.
119    Fast paths (quotient > 0 or remainder = 0) are not affected, though.
120    The problem was with quotient = 0, because that alone does not tell
121    us which way the rounding went.  One then has to look at whether
122    remainder and divisor have the same sign...  :(
123    
124    Anyway, I replaced the bootfiles with fresh ones...
125    
126    ----------------------------------------------------------------------
127    Name: Matthias Blume
128    Date: 2002/03/29 14:10:00 EST
129    Tag: blume-20020329-inlprims
130    Description:
131    
132    NEW BOOTFILES!!!    Version number bumped to 110.39.3.
133    
134    Primops have changed. This means that the bin/boot-file formats have
135    changed as well.
136    
137    To make sure that there is no confusion, I made a new version.
138    
139    
140    CHANGES:
141    
142    * removed REMT from mltree (remainder should never overflow).
143    
144    * added primops to deal with divisions of all flavors to the frontend
145    
146    * handled these primops all the way through so they map to their respective
147      MLRISC support
148    
149    * used these primops in the implementation of Int, Int32, Word, Word32
150    
151    * removed INLDIV, INLMOD, and INLREM as they are no longer necessary
152    
153    * parameterized INLMIN, INLMAX, and INLABS by a numkind
154    
155    * translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including
156      floating point
157    
158    * used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32,
159      and Real (but Real.abs maps to a separate floating-point-only primop)
160    
161    
162    TODO items:
163    
164    * Hacked Alpha32 instruction selection, disabling the selection of REMx
165      instructions because the machine instruction encoder cannot handle
166      them.  (Hppa, PPC, and Sparc instruction selection did not handle
167      REM in the first place, and REM is supported by the x86 machine coder.)
168    
169    * Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction
170      selection phase.  (The two can be streamlined because the hardware
171      delivers both quotient and remainder at the same time anyway.)
172    
173    * Think about what to do with "valOf(Int32.minInt) div ~1" and friends.
174      (Currently the behavior is inconsistent both across architectures and
175      wrt. the draft Basis spec.)
176    
177    * Word8 should eventually be handled natively, too.
178    
179    * There seems to be one serious bug in mltree-gen.sml.  It appears, though,
180      as if there currently is no execution path that could trigger it in
181      SML/NJ.  (The assumptions underlying functions arith and promotable do not
182      hold for things like multiplication and division.)
183    
184    ----------------------------------------------------------------------
185  Name: Matthias Blume  Name: Matthias Blume
186  Date: 2002/03/27 16:27:00 EST  Date: 2002/03/27 16:27:00 EST
187  Tag: blume-20020327-mlrisc-divisions  Tag: blume-20020327-mlrisc-divisions

Legend:
Removed from v.1181  
changed lines
  Added in v.1192

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