11 |
Date: yyyy/mm/dd |
Date: yyyy/mm/dd |
12 |
Tag: <post-commit CVS tag> |
Tag: <post-commit CVS tag> |
13 |
Description: |
Description: |
14 |
|
|
15 |
|
---------------------------------------------------------------------- |
16 |
|
Name: Matthias Blume |
17 |
|
Date: 2002/05/21 12:35:00 EDT |
18 |
|
Tag: blume-20020521-cmdoc |
19 |
|
Description: |
20 |
|
|
21 |
|
CM documentation update. |
22 |
|
|
23 |
|
---------------------------------------------------------------------- |
24 |
|
Name: Matthias Blume |
25 |
|
Date: 2002/05/21 10:55:00 EDT |
26 |
|
Tag: blume-20020521-misc |
27 |
|
Description: |
28 |
|
|
29 |
|
- John tweaked runtime to be silent on heap export (except when |
30 |
|
GC messages are on). |
31 |
|
- I added a few more things (cross-compiling versions of CMB) to |
32 |
|
config/preloads (as suggestions). |
33 |
|
|
34 |
|
---------------------------------------------------------------------- |
35 |
|
Name: Matthias Blume |
36 |
|
Date: 2002/05/20 22:25:00 EDT |
37 |
|
Tag: blume-20020520-controls |
38 |
|
Description: |
39 |
|
|
40 |
|
- Added ControlUtil structure to control-lib.cm. |
41 |
|
- Use it throughout. |
42 |
|
- Used Controls facility to define MLRISC controls (as opposed to |
43 |
|
registering MLRISC control ref cells with Controls after the fact) |
44 |
|
- Fixed messed-up controls priorities. |
45 |
|
|
46 |
|
* Removed again all the stuff from config/preloads that one wouldn't |
47 |
|
be able to preload at the time the initial heap image is built. |
48 |
|
(Many libraries, e.g., CML, do not exist yet at this time. The |
49 |
|
only libraries that can be preloaded via config/preloads are those |
50 |
|
that come bundled with the bootfiles.) |
51 |
|
|
52 |
|
---------------------------------------------------------------------- |
53 |
|
Name: Matthias Blume |
54 |
|
Date: 2002/05/20 10:59:00 EDT |
55 |
|
Tag: blume-20020520-preloads |
56 |
|
Description: |
57 |
|
|
58 |
|
Added a lot of commented-out suggestions for things to be included |
59 |
|
in config/preloads. |
60 |
|
|
61 |
|
---------------------------------------------------------------------- |
62 |
|
Name: Allen Leung |
63 |
|
Date: 2002/05/18 14:20:00 EDT |
64 |
|
Tag: leunga-20020518-mdl |
65 |
|
Description: |
66 |
|
|
67 |
|
o Made the mdl tool stuff compile and run again. |
68 |
|
o I've disabled all the stuff that depends on RTL specifications; they |
69 |
|
are all badly broken anyway. |
70 |
|
|
71 |
|
---------------------------------------------------------------------- |
72 |
|
Name: Matthias Blume |
73 |
|
Date: 2002/05/17 16:49:00 EDT |
74 |
|
Tag: blume-20020517-controls |
75 |
|
Description: |
76 |
|
|
77 |
|
0. John Reppy made several modifications to the SML/NJ library. |
78 |
|
In particular, there is a shiny new controls-lib.cm. |
79 |
|
|
80 |
|
1. Pushed new controls interface through compiler so that everything |
81 |
|
compiles again. |
82 |
|
|
83 |
|
2. Added FormatComb and FORMAT_COMB to the CML version of the |
84 |
|
SML/NJ library (so that CML compiles again). |
85 |
|
|
86 |
|
3. Modified init scripts because XXX_DEFAULT environment variables |
87 |
|
are no longer with us. (Boot-time initialization is now done |
88 |
|
using the same environment variables that are also used for |
89 |
|
startup-time initialization of controls.) |
90 |
|
|
91 |
|
---------------------------------------------------------------------- |
92 |
|
Name: Lal George |
93 |
|
Date: 2002/05/15 09:20:10 EDT |
94 |
|
Tag: george-20020515-pseudo-op-decls |
95 |
|
Description: |
96 |
|
|
97 |
|
All pseudo-ops emitted before the first segment declaration |
98 |
|
such as TEXT, DATA, and BSS directives are assumed to be global |
99 |
|
declarations and are emitted first in the assembly file. This is |
100 |
|
useful in a number of situations where one has pseudo-ops that are not |
101 |
|
specific to any segment, and also works around the constraint that one |
102 |
|
cannot have client pseudo-ops in the TEXT segment. |
103 |
|
|
104 |
|
Because no segment is associated with these declarations it is |
105 |
|
an error to allocate any space or objects before the first segment |
106 |
|
directive and an exception will be raised. However, we cannot make |
107 |
|
this check for client pseudo-ops. |
108 |
|
|
109 |
|
These top level declarations are a field in the CFG graph_info. |
110 |
|
In theory you can continue to add to this field after the CFG has been |
111 |
|
built -- provided you know what you are doing;-) |
112 |
|
|
113 |
|
---------------------------------------------------------------------- |
114 |
|
Name: Matthias Blume |
115 |
|
Date: 2002/05/13 16:40:00 EDT |
116 |
|
Tag: blume-20020513-pp-etc |
117 |
|
Description: |
118 |
|
|
119 |
|
A few minor bugfixes: |
120 |
|
|
121 |
|
- Stopgap measure for bug recently reported by Elsa Gunter (ppDec). |
122 |
|
(Bogus printouts for redefined bindings still occur. Compiler |
123 |
|
bug should no longer occur now. We need to redo the prettyprinter |
124 |
|
from scratch.) |
125 |
|
|
126 |
|
- CM pathname printer now also adds escape sequences for ( and ) |
127 |
|
|
128 |
|
- commend and docu fixes for ml-nlffi |
129 |
|
|
130 |
|
---------------------------------------------------------------------- |
131 |
|
Name: Matthias Blume |
132 |
|
Date: 2002/05/10 16:40:00 EDT |
133 |
|
Tag: blume-20020510-erg-textio |
134 |
|
Description: |
135 |
|
|
136 |
|
Applied the following bugfix provided by Emden Gansner: |
137 |
|
|
138 |
|
Output is corrupted when outputSubstr is used rather than output. |
139 |
|
|
140 |
|
The problem occurs when a substring |
141 |
|
|
142 |
|
ss = (s, dataStart, dataLen) |
143 |
|
|
144 |
|
where dataStart > 0, fills a stream buffer with avail bytes left. |
145 |
|
avail bytes of s, starting at index dataStart, are copied into the |
146 |
|
buffer, the buffer is flushed, and then the remaining dataLen-avail |
147 |
|
bytes of ss are copied into the beginning of the buffer. Instead of |
148 |
|
starting this copy at index dataStart+avail in s, the current code |
149 |
|
starts the copy at index avail. |
150 |
|
|
151 |
|
Fix: |
152 |
|
In text-io-fn.sml, change line 695 from |
153 |
|
val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0) |
154 |
|
to |
155 |
|
val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0) |
156 |
|
|
157 |
|
---------------------------------------------------------------------- |
158 |
|
Name: Matthias Blume |
159 |
|
Date: 2002/04/12 13:55:00 EDT |
160 |
|
Tag: blume-20020412-assyntax |
161 |
|
Description: |
162 |
|
|
163 |
|
1. Grabbed newer assyntax.h from the XFree86 project. |
164 |
|
2. Fiddled with how to compile X86.prim.asm without warnings. |
165 |
|
3. (Very) Minor cleanup in CM. |
166 |
|
|
167 |
|
---------------------------------------------------------------------- |
168 |
|
Name: Matthias Blume |
169 |
|
Date: 2002/04/01 (no joke!) 17:07:00 EST |
170 |
|
Tag: blume-20020401-x86div |
171 |
|
Description: |
172 |
|
|
173 |
|
Added full support for div/mod/rem/quot on the x86, using the machine |
174 |
|
instruction's two results (without clumsily recomputing the remainder) |
175 |
|
directly where appropriate. |
176 |
|
|
177 |
|
Some more extensive power-of-two support was added to the x86 instruction |
178 |
|
selector (avoiding expensive divs, mods, and muls where they can be |
179 |
|
replaced with cheaper shifts and masks). However, this sort of thing |
180 |
|
ought to be done earlier, e.g., within the CPS optimizer so that |
181 |
|
all architectures benefit from it. |
182 |
|
|
183 |
|
The compiler compiles to a fixed point, but changes might be somewhat |
184 |
|
fragile nevertheless. Please, report any strange things that you might |
185 |
|
see wrt. div/mod/quot/rem... |
186 |
|
|
187 |
|
---------------------------------------------------------------------- |
188 |
|
Name: Matthias Blume |
189 |
|
Date: 2002/03/29 17:22:00 |
190 |
|
Tag: blume-20020329-div |
191 |
|
Description: |
192 |
|
|
193 |
|
Fixed my broken div/mod logic. Unfortunately, this means that the |
194 |
|
inline code for div/mod now has one more comparison than before. |
195 |
|
Fast paths (quotient > 0 or remainder = 0) are not affected, though. |
196 |
|
The problem was with quotient = 0, because that alone does not tell |
197 |
|
us which way the rounding went. One then has to look at whether |
198 |
|
remainder and divisor have the same sign... :( |
199 |
|
|
200 |
|
Anyway, I replaced the bootfiles with fresh ones... |
201 |
|
|
202 |
|
---------------------------------------------------------------------- |
203 |
|
Name: Matthias Blume |
204 |
|
Date: 2002/03/29 14:10:00 EST |
205 |
|
Tag: blume-20020329-inlprims |
206 |
|
Description: |
207 |
|
|
208 |
|
NEW BOOTFILES!!! Version number bumped to 110.39.3. |
209 |
|
|
210 |
|
Primops have changed. This means that the bin/boot-file formats have |
211 |
|
changed as well. |
212 |
|
|
213 |
|
To make sure that there is no confusion, I made a new version. |
214 |
|
|
215 |
|
|
216 |
|
CHANGES: |
217 |
|
|
218 |
|
* removed REMT from mltree (remainder should never overflow). |
219 |
|
|
220 |
|
* added primops to deal with divisions of all flavors to the frontend |
221 |
|
|
222 |
|
* handled these primops all the way through so they map to their respective |
223 |
|
MLRISC support |
224 |
|
|
225 |
|
* used these primops in the implementation of Int, Int32, Word, Word32 |
226 |
|
|
227 |
|
* removed INLDIV, INLMOD, and INLREM as they are no longer necessary |
228 |
|
|
229 |
|
* parameterized INLMIN, INLMAX, and INLABS by a numkind |
230 |
|
|
231 |
|
* translate.sml now deals with all flavors of INL{MIN,MAX,ABS}, including |
232 |
|
floating point |
233 |
|
|
234 |
|
* used INL{MIN,MAX,ABS} in the implementation of Int, Int32, Word, Word32, |
235 |
|
and Real (but Real.abs maps to a separate floating-point-only primop) |
236 |
|
|
237 |
|
|
238 |
|
TODO items: |
239 |
|
|
240 |
|
* Hacked Alpha32 instruction selection, disabling the selection of REMx |
241 |
|
instructions because the machine instruction encoder cannot handle |
242 |
|
them. (Hppa, PPC, and Sparc instruction selection did not handle |
243 |
|
REM in the first place, and REM is supported by the x86 machine coder.) |
244 |
|
|
245 |
|
* Handle DIV and MOD with DIV_TO_NEGINF directly in the x86 instruction |
246 |
|
selection phase. (The two can be streamlined because the hardware |
247 |
|
delivers both quotient and remainder at the same time anyway.) |
248 |
|
|
249 |
|
* Think about what to do with "valOf(Int32.minInt) div ~1" and friends. |
250 |
|
(Currently the behavior is inconsistent both across architectures and |
251 |
|
wrt. the draft Basis spec.) |
252 |
|
|
253 |
|
* Word8 should eventually be handled natively, too. |
254 |
|
|
255 |
|
* There seems to be one serious bug in mltree-gen.sml. It appears, though, |
256 |
|
as if there currently is no execution path that could trigger it in |
257 |
|
SML/NJ. (The assumptions underlying functions arith and promotable do not |
258 |
|
hold for things like multiplication and division.) |
259 |
|
|
260 |
|
---------------------------------------------------------------------- |
261 |
|
Name: Matthias Blume |
262 |
|
Date: 2002/03/27 16:27:00 EST |
263 |
|
Tag: blume-20020327-mlrisc-divisions |
264 |
|
Description: |
265 |
|
|
266 |
|
Added support for all four division operations (ML's div, mod, quot, |
267 |
|
and rem) to MLRISC. In the course of doing so, I also rationalized |
268 |
|
the naming (no more annoying switch-around of DIV and QUOT), by |
269 |
|
parameterizing the operation by div_rounding_mode (which can be either |
270 |
|
DIV_TO_ZERO or DIV_TO_NEGINF). |
271 |
|
|
272 |
|
The generic MLTreeGen functor takes care of compiling all four |
273 |
|
operations down to only round-to-zero div. |
274 |
|
|
275 |
|
Missing pieces: |
276 |
|
|
277 |
|
* Doing something smarter than relying on MLTreeGen on architectures |
278 |
|
like, e.g., the x86 where hardware division delivers both quotient and |
279 |
|
remainder at the same time. With this, the implementation of the |
280 |
|
round-to-neginf operations could be further streamlined. |
281 |
|
|
282 |
|
* Remove inlining support for div/mod/rem from the frontend and replace it |
283 |
|
with primops that get carried through to the backend. Do this for all |
284 |
|
int and word types. |
285 |
|
|
286 |
|
---------------------------------------------------------------------- |
287 |
|
Name: Matthias Blume |
288 |
|
Date: 2002/03/25 17:25:00 EST |
289 |
|
Tag: blume-20020325-divmod |
290 |
|
Description: |
291 |
|
|
292 |
|
I improved (hopefully without breaking them) the implementation of Int.div, |
293 |
|
Int.mod, and Int.rem. For this, the code in translate.sml now takes |
294 |
|
advantage of the following observations: |
295 |
|
|
296 |
|
Let q = x quot y r = x rem y |
297 |
|
d = x div y m = x mod y |
298 |
|
|
299 |
|
where "quot" is the round-to-zero version of integer division that |
300 |
|
hardware usually provides. Then we have: |
301 |
|
|
302 |
|
r = x - q * y where neither the * nor the - will overflow |
303 |
|
d = if q >= 0 orelse x = q * y then q else q - 1 |
304 |
|
where neither the * nor the - will overflow |
305 |
|
m = if q >= 0 orelse r = 0 then r else r + y |
306 |
|
where the + will not overflow |
307 |
|
|
308 |
|
This results in substantial simplification of the generated code. |
309 |
|
The following table shows the number of CFG nodes and edges generated |
310 |
|
for |
311 |
|
fun f (x, y) = x OPER y |
312 |
|
(* with OPER \in div, mod, quot, rem *) |
313 |
|
|
314 |
|
|
315 |
|
OPER | nodes(old) | edges(old) | nodes(new) | edges(new) |
316 |
|
-------------------------------------------------------- |
317 |
|
div | 24 | 39 | 12 | 16 |
318 |
|
mod | 41 | 71 | 12 | 16 |
319 |
|
quot | 8 | 10 | 8 | 10 |
320 |
|
rem | 10 | 14 | 8 | 10 |
321 |
|
|
322 |
|
|
323 |
|
---------------------------------------------------------------------- |
324 |
|
Name: Matthias Blume |
325 |
|
Date: 2002/03/25 22:06:00 EST |
326 |
|
Tag: blume-20020325-cprotobug |
327 |
|
Description: |
328 |
|
|
329 |
|
Fixed a bug in cproto (c prototype decoder). |
330 |
|
|
331 |
|
---------------------------------------------------------------------- |
332 |
|
Name: Matthias Blume |
333 |
|
Date: 2002/03/25 16:00:00 EST |
334 |
|
Tag: blume-20020325-raw-primops |
335 |
|
Description: |
336 |
|
|
337 |
|
I did some cleanup to Allen's new primop code and |
338 |
|
replaced yesterday's bootfiles with new ones. |
339 |
|
(But they are stored in the same place.) |
340 |
|
|
341 |
|
---------------------------------------------------------------------- |
342 |
|
Name: Matthias Blume |
343 |
|
Date: 2002/03/24 22:40:00 EST |
344 |
|
Tag: blume-20020324-bootfiles |
345 |
|
Description: |
346 |
|
|
347 |
|
Made the bootfiles that Allen asked for. |
348 |
|
|
349 |
|
---------------------------------------------------------------------- |
350 |
|
Name: Allen Leung |
351 |
|
Date: 2002/03/23 15:50:00 EST |
352 |
|
Tag: leunga-20020323-flint-cps-rcc-primops |
353 |
|
Description: |
354 |
|
|
355 |
|
1. Changes to FLINT primops: |
356 |
|
|
357 |
|
(* make a call to a C-function; |
358 |
|
* The primop carries C function prototype information and specifies |
359 |
|
* which of its (ML-) arguments are floating point. C prototype |
360 |
|
* information is for use by the backend, ML information is for |
361 |
|
* use by the CPS converter. *) |
362 |
|
| RAW_CCALL of { c_proto: CTypes.c_proto, |
363 |
|
ml_args: ccall_type list, |
364 |
|
ml_res_opt: ccall_type option, |
365 |
|
reentrant : bool |
366 |
|
} option |
367 |
|
(* Allocate uninitialized storage on the heap. |
368 |
|
* The record is meant to hold short-lived C objects, i.e., they |
369 |
|
* are not ML pointers. With the tag, the representation is |
370 |
|
* the same as RECORD with tag tag_raw32 (sz=4), or tag_fblock (sz=8) |
371 |
|
*) |
372 |
|
| RAW_RECORD of {tag:bool,sz:int} |
373 |
|
and ccall_type = CCALL_INT32 | CCALL_REAL64 | CCALL_ML_PTR |
374 |
|
|
375 |
|
2. These CPS primops are now overloaded: |
376 |
|
|
377 |
|
rawload of {kind:numkind} |
378 |
|
rawstore of {kind:numkind} |
379 |
|
|
380 |
|
The one argument form is: |
381 |
|
|
382 |
|
rawload {kind} address |
383 |
|
|
384 |
|
The two argument form is: |
385 |
|
|
386 |
|
rawload {kind} [ml object, byte-offset] |
387 |
|
|
388 |
|
3. RAW_CCALL/RCC now takes two extra arguments: |
389 |
|
|
390 |
|
a. The first is whether the C call is reentrant, i.e., whether |
391 |
|
ML state should be saved and restored. |
392 |
|
b. The second argument is a string argument specifying the name of |
393 |
|
library and the C function. |
394 |
|
|
395 |
|
These things are currently not handled in the code generator, yet. |
396 |
|
|
397 |
|
4. In CProto, |
398 |
|
|
399 |
|
An encoding type of "bool" means "ml object" and is mapped into |
400 |
|
C prototype of PTR. Note that "bool" is different than "string", |
401 |
|
even though "string" is also mapped into PTR, because "bool" |
402 |
|
is assigned an CPS type of BOGt, while "string" is assigned INT32t. |
403 |
|
|
404 |
|
5. Pickler/unpicker |
405 |
|
|
406 |
|
Changed to handle RAW_RECORD and newest RAW_CCALL |
407 |
|
|
408 |
|
6. MLRiscGen, |
409 |
|
|
410 |
|
1. Changed to handle the new rawload/rawstore/rawrecord operators. |
411 |
|
2. Code for handling C Calls has been moved to a new module CPSCCalls, |
412 |
|
in the file CodeGen/cpscompile/cps-c-calls.sml |
413 |
|
|
414 |
|
7. Added the conditional move operator |
415 |
|
|
416 |
|
condmove of branch |
417 |
|
|
418 |
|
to cps. Generation of this is still buggy so it is currently |
419 |
|
disabled. |
420 |
|
|
421 |
|
---------------------------------------------------------------------- |
422 |
|
Name: Lal George |
423 |
|
Date: 2002/03/22 14:18:25 EST |
424 |
|
Tag: george-20020322-cps-branch-prob |
425 |
|
Description: |
426 |
|
|
427 |
|
Implemented the Ball-Larus branch prediction-heuristics, and |
428 |
|
incorporated graphical viewers for control flow graphs. |
429 |
|
|
430 |
|
Ball-Larus Heuristics: |
431 |
|
--------------------- |
432 |
|
See the file compiler/CodeGen/cpscompile/cpsBranchProb.sml. |
433 |
|
|
434 |
|
By design it uses the Dempster-Shafer theory for combining |
435 |
|
probabilities. For example, in the function: |
436 |
|
|
437 |
|
fun f(n,acc) = if n = 0 then acc else f(n-1, n*acc) |
438 |
|
|
439 |
|
the ball-larus heuristics predicts that the n=0 is unlikely |
440 |
|
(OH-heuristic), and the 'then' branch is unlikely because of the |
441 |
|
RH-heuristic -- giving the 'then' branch an even lower combined |
442 |
|
probability using the Dempster-Shafer theory. |
443 |
|
|
444 |
|
Finally, John Reppy's loop analysis in MLRISC, further lowers the |
445 |
|
probability of the 'then' branch because of the loop in the else |
446 |
|
branch. |
447 |
|
|
448 |
|
|
449 |
|
Graphical Viewing: |
450 |
|
------------------ |
451 |
|
I merely plugged in Allen's graphical viewers into the compiler. The |
452 |
|
additional code is not much. At the top level, saying: |
453 |
|
|
454 |
|
Control.MLRISC.getFlag "cfg-graphical-view" := true; |
455 |
|
|
456 |
|
will display the graphical view of the control flow graph just before |
457 |
|
back-patching. daVinci must be in your path for this to work. If |
458 |
|
daVinci is not available, then the default viewer can be changed |
459 |
|
using: |
460 |
|
|
461 |
|
Control.MLRISC.getString "viewer" |
462 |
|
|
463 |
|
which can be set to "dot" or "vcg" for the corresponding viewers. Of |
464 |
|
course, these viewers must be in your path. |
465 |
|
|
466 |
|
The above will display the compilation unit at the level of clusters, |
467 |
|
many of which are small, boring, and un-interesting. Also setting: |
468 |
|
|
469 |
|
Control.MLRISC.getInt "cfg-graphical-view_size" |
470 |
|
|
471 |
|
will display clusters that are larger than the value set by the above. |
472 |
|
|
473 |
|
|
474 |
|
---------------------------------------------------------------------- |
475 |
|
Name: Matthias Blume |
476 |
|
Date: 2002/03/21 22:20:00 EST |
477 |
|
Tag: blume-20020321-kmp-bugfix |
478 |
|
Description: |
479 |
|
|
480 |
|
Changed the interface to the KMP routine in PreString and fixed |
481 |
|
a minor bug in one place where it was used. |
482 |
|
|
483 |
|
---------------------------------------------------------------------- |
484 |
|
Name: Allen Leung |
485 |
|
Date: 2002/03/21 20:30:00 EST |
486 |
|
Tag: leunga-20020321-cfg |
487 |
|
Description: |
488 |
|
|
489 |
|
Fixed a potential problem in cfg edge splitting. |
490 |
|
|
491 |
|
---------------------------------------------------------------------- |
492 |
|
Name: Allen Leung |
493 |
|
Date: 2002/03/21 17:15:00 EST |
494 |
|
Tag: leunga-20020321-x86-fp-cfg |
495 |
|
Description: |
496 |
|
|
497 |
|
1. Recoded the buggy parts of x86-fp. |
498 |
|
|
499 |
|
a. All the block reordering code has been removed. |
500 |
|
We now depend on the block placement phases to do this work. |
501 |
|
|
502 |
|
b. Critical edge splitting code has been simplified and moved into the |
503 |
|
CFG modules, as where they belong. |
504 |
|
|
505 |
|
Both of these were quite buggy and complex. The code is now much, much |
506 |
|
simpler. |
507 |
|
|
508 |
|
2. X86 backend. |
509 |
|
|
510 |
|
a. Added instructions for 64-bit support. Instruction selection for |
511 |
|
64-bit has not been committed, however, since that |
512 |
|
requires changes to MLTREE which haven't been approved by |
513 |
|
Lal and John. |
514 |
|
|
515 |
|
b. Added support for FUCOMI and FUCOMIP when generating code for |
516 |
|
PentiumPro and above. We only generate these instructions in |
517 |
|
the fast-fp mode. |
518 |
|
|
519 |
|
c. Added cases for JP and JNP in X86FreqProps. |
520 |
|
|
521 |
|
3. CFG |
522 |
|
|
523 |
|
CFG now has a bunch of methods for edge splitting and merging. |
524 |
|
|
525 |
|
4. Machine description. |
526 |
|
|
527 |
|
John's simplification of MLTREE_BASIS.fcond broke a few machine |
528 |
|
description things: |
529 |
|
|
530 |
|
rtl-build.{sig,sml} and hppa.mdl fixed. |
531 |
|
|
532 |
|
NOTE: the machine description stuff in the repository is still broken. |
533 |
|
Again, I can't put my fixes in because that involves |
534 |
|
changes to MLTREE. |
535 |
|
|
536 |
|
---------------------------------------------------------------------- |
537 |
|
Name: Matthias Blume |
538 |
|
Date: 2002/03/20 15:55:00 EST |
539 |
|
Tag: blume-20020320-kmp |
540 |
|
Description: |
541 |
|
|
542 |
|
Implemented Knuth-Morris-Pratt string matching in PreString and used |
543 |
|
it for String.isSubstring, Substring.isSubstring, and |
544 |
|
Substring.position. |
545 |
|
|
546 |
|
(Might need some stress-testing. Simple examples worked fine.) |
547 |
|
|
548 |
|
---------------------------------------------------------------------- |
549 |
|
Name: Matthias Blume |
550 |
|
Date: 2002/03/19 16:37:00 EST |
551 |
|
Tag: blume-20020319-witnesses |
552 |
|
Description: |
553 |
|
|
554 |
|
Added a structure C.W and functions convert/Ptr.convert to ml-nlffi-lib. |
555 |
|
|
556 |
|
This implements a generic mechanism for changing constness qualifiers |
557 |
|
anywhere within big C types without resorting to outright "casts". |
558 |
|
(So far, functions such as C.rw/C.ro or C.Ptr.rw/C.Ptr.ro only let you |
559 |
|
modify the constness at the outermost level.) |
560 |
|
The implementation of "convert" is based on the idea of "witness" |
561 |
|
values -- values that are not used by the operation but whose types |
562 |
|
"testify" to their applicability. On the implementation side, "convert" |
563 |
|
is simply a projection (returning its second curried argument). With |
564 |
|
cross-module inlining, it should not result in any machine code being |
565 |
|
generated. |
566 |
|
|
567 |
|
---------------------------------------------------------------------- |
568 |
|
Name: Matthias Blume |
569 |
|
Date: 2002/03/15 16:40:00 EST |
570 |
|
Tag: blume-20020315-basis |
571 |
|
Description: |
572 |
|
|
573 |
|
Provided (preliminary?) implementations for |
574 |
|
|
575 |
|
{String,Substring}.{concatWith,isSuffix,isSubstring} |
576 |
|
|
577 |
|
and |
578 |
|
|
579 |
|
Substring.full |
580 |
|
|
581 |
|
Those are in the Basis spec but they were missing in SML/NJ. |
582 |
|
|
583 |
|
---------------------------------------------------------------------- |
584 |
|
Name: Matthias Blume |
585 |
|
Date: 2002/03/14 21:30:00 EST |
586 |
|
Tag: blume-20020314-controls |
587 |
|
Description: |
588 |
|
|
589 |
|
Controls: |
590 |
|
--------- |
591 |
|
|
592 |
|
1. Factored out the recently-added Controls : CONTROLS stuff and put |
593 |
|
it into its own library $/controls-lib.cm. The source tree for |
594 |
|
this is under src/smlnj-lib/Controls. |
595 |
|
|
596 |
|
2. Changed the names of types and functions in this interface, so they |
597 |
|
make a bit more "sense": |
598 |
|
|
599 |
|
module -> registry |
600 |
|
'a registry -> 'a group |
601 |
|
|
602 |
|
3. The interface now deals in ref cells only. The getter/setter interface |
603 |
|
is (mostly) gone. |
604 |
|
|
605 |
|
4. Added a function that lets one register an already-existing ref cell. |
606 |
|
|
607 |
|
5. Made the corresponding modifications to the rest of the code so that |
608 |
|
everything compiles again. |
609 |
|
|
610 |
|
6. Changed the implementation of Controls.MLRISC back to something closer |
611 |
|
to the original. In particular, this module (and therefore MLRISC) |
612 |
|
does not depend on Controls. There now is some link-time code in |
613 |
|
int-sys.sml that registers the MLRISC controls with the Controls |
614 |
|
module. |
615 |
|
|
616 |
|
CM: |
617 |
|
--- |
618 |
|
|
619 |
|
* One can now specify the lambda-split aggressiveness in init.cmi. |
620 |
|
|
621 |
|
---------------------------------------------------------------------- |
622 |
|
Name: Allen Leung |
623 |
|
Date: 2002/03/13 17:30:00 EST |
624 |
|
Tag: leunga-20020313-x86-fp-unary |
625 |
|
Description: |
626 |
|
|
627 |
|
Bug fix for: |
628 |
|
|
629 |
|
> leunga@weaselbane:~/Yale/tmp/sml-dist{21} bin/sml |
630 |
|
> Standard ML of New Jersey v110.39.1 [FLINT v1.5], March 08, 2002 |
631 |
|
> - fun f(x,(y,z)) = Real.~ y; |
632 |
|
> [autoloading] |
633 |
|
> [autoloading done] |
634 |
|
> fchsl (%eax), 184(%esp) |
635 |
|
> Error: MLRisc bug: X86MCEmitter.emitInstr |
636 |
|
> |
637 |
|
> uncaught exception Error |
638 |
|
> raised at: ../MLRISC/control/mlriscErrormsg.sml:16.14-16.19 |
639 |
|
|
640 |
|
The problem was that the code generator did not generate any fp registers |
641 |
|
in this case, and the ra didn't know that it needed to run the X86FP phase to |
642 |
|
translate the pseudo fp instruction. This only happened with unary fp |
643 |
|
operators in certain situations. |
644 |
|
|
645 |
|
---------------------------------------------------------------------- |
646 |
|
Name: Matthias Blume |
647 |
|
Date: 2002/03/13 14:00:00 EST |
648 |
|
Tag: blume-20020313-overload-etc |
649 |
|
Description: |
650 |
|
|
651 |
|
1. Added _overload as a synonym for overload for backward compatibility. |
652 |
|
(Control.overloadKW must be true for either version to be accepted.) |
653 |
|
|
654 |
|
2. Fixed bug in install script that caused more things to be installed |
655 |
|
than what was requested in config/targets. |
656 |
|
|
657 |
|
3. Made CM aware of the (_)overload construct so that autoloading |
658 |
|
works. |
659 |
|
|
660 |
|
---------------------------------------------------------------------- |
661 |
|
Name: Matthias Blume |
662 |
|
Date: 2002/03/12 22:03:00 EST |
663 |
|
Tag: blume-20020312-url |
664 |
|
Description: |
665 |
|
|
666 |
|
Forgot to update BOOT and srcarchiveurl. |
667 |
|
|
668 |
---------------------------------------------------------------------- |
---------------------------------------------------------------------- |
669 |
Name: Matthias Blume |
Name: Matthias Blume |
670 |
Date: 2002/03/12 17:30:00 EST |
Date: 2002/03/12 17:30:00 EST |
681 |
provides a bit more "stability": Once CM has seen a compilation |
provides a bit more "stability": Once CM has seen a compilation |
682 |
unit, it keeps its identity constant (as long as you do not delete |
unit, it keeps its identity constant (as long as you do not delete |
683 |
those crucial CM/GUID/* files). This means that when you change |
those crucial CM/GUID/* files). This means that when you change |
684 |
and interface, compiler, then go back to the old interface, and |
an interface, compile, then go back to the old interface, and |
685 |
compile again, you arrive at the original pid. |
compile again, you arrive at the original pid. |
686 |
|
|
687 |
There now also is a mechanism that instructs CM to use the plain |
There now also is a mechanism that instructs CM to use the plain |
756 |
---------------------------------------------------------------------- |
---------------------------------------------------------------------- |
757 |
Name: Allen Leung |
Name: Allen Leung |
758 |
Date: 2002/03/11 10:30:00 EST |
Date: 2002/03/11 10:30:00 EST |
759 |
Tag: leunga-20020310-runtime-string0 |
Tag: leunga-20020311-runtime-string0 |
760 |
Description: |
Description: |
761 |
|
|
762 |
The representation of the empty string now points to a |
The representation of the empty string now points to a |