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 677, Mon Jun 26 00:56:56 2000 UTC revision 832, Tue May 22 20:30:36 2001 UTC
# Line 11  Line 11 
11  Date:  Date:
12  Tag: <post-commit CVS tag>  Tag: <post-commit CVS tag>
13  Description:  Description:
14    
15    ----------------------------------------------------------------------
16    Name: Matthias Blume
17    Date: 2001/05/22 16:30:00 EDT
18    Tag: blume-20010522-minitut
19    Description:
20    
21    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
22       struct returns.
23    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
24       incomplete, preliminary documentation for NLFFI.
25    
26    ----------------------------------------------------------------------
27    Name: Matthias Blume
28    Date: 2001/05/14 11:30:00 EDT
29    Tag: blume-20010514-script
30    Description:
31    
32    Some bugs in install script fixed.
33    
34    In addition to that I also made a slight change to the NLFFI API:
35    Functors generated by ml-nlffigen now take the dynamic library as a
36    straight functor argument, not as a suspended one.  (The original
37    functor code used to force the suspension right away anyway, so there
38    was nothing gained by this complication of the interface.)
39    
40    ----------------------------------------------------------------------
41    Name: Matthias Blume
42    Date: 2001/05/11 14:35:00 EDT
43    Tag: blume-20010511-ml-nlffi
44    Description:
45    
46    I finally took the plunge and added my new FFI code to the main
47    repository.  For x86-linux it is now ready for prime-time.
48    
49    There are two new subdirectories of "src":
50    
51      - ml-nlffi-lib:
52           The utility library for programs using the FFI interface.
53           Here is the implementation of $/c.cm and its associated low-level
54           partners $/c-int.cm and $/memory.cm.
55      - ml-nlffigen:
56           A stand-alone program for generating ML glue code from C source
57           code.
58    
59    Building ml-nlffigen requires $/ckit-lib.cm.
60    
61    The config/install.sh script has been updates to do the Right Thing
62    (hopefully).
63    
64    Notice that the source tree for the C-Kit will not be put under "src"
65    but directly under the installation root directory.  (This is the
66    structure that currently exists on the CVS server when you check out
67    module "sml".)  Fortunately, config/install.sh knows about this oddity.
68    
69    Bugs: No documentation yet.
70    
71    ----------------------------------------------------------------------
72    Name: Matthias Blume
73    Date: 2001/05/09 16:35:00 EDT
74    Tag: blume-20010509-cpscontract
75    Description:
76    
77    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
78    wrapper/unwrapper elimination did not decrement usage counts and some
79    dead variables got overlooked by the dead-up logic.)
80    
81    ----------------------------------------------------------------------
82    Name: Lal George
83    Date: 2001/05/08  17:26:09 EDT
84    Tag: george-20010508-omit-frameptr
85    Description:
86    
87    Changes to implement the omit-frame-pointer optimization to support
88    raw C calls. For now, there is only support on the Intel x86, but
89    other architectures will follow as more experience is gained with this.
90    
91    
92    ----------------------------------------------------------------------
93    Name: Matthias Blume
94    Date: 2001/05/07 14:40:00 EDT
95    Tag: blume-20010507-proxies
96    Description:
97    
98    I made into "proxy libraries" all libraries that qualify for such a
99    change.  (A qualifying library is a library that has another library or
100    groups as its sole member and repeats that member's export list
101    verbatim.  A proxy library avoids this repetition by omitting its export
102    list, effectively inheriting the list that its (only) member exports.
103    See the CM manual for more explanation.)
104    The main effect is that explicit export lists for these libraries
105    do not have to be kepts in sync, making maintenance a bit easier.
106    
107    I also added copyright notices to many .cm-files.
108    
109    Last but not least, I made a new set of bootfiles.
110    
111    ----------------------------------------------------------------------
112    Name: Matthias Blume
113    Date: 2001/05/04 17:00:00 EDT
114    Tag: blume-20010504-cm-lsplit
115    Description:
116    
117    0. John merged pending changes to $/smlnj-lib.cm
118    
119    1. Allen's previous change accidentally backed out of one of Lal's
120       earlier changes.  I undid this mistake (re-introducing Lal's change).
121    
122    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
123       within the compiler where applicable.  There is some code simplification
124       because of that.
125    
126    3. The "split" phase (in FLINT) is now part of the default list of phases.
127       Compiler.Control.LambdaSplitting.* can be used to globally control the
128       lambda-splitting (cross-module-inlining) engine.  In addition to that,
129       it can now also be controlled on a per-source basis: CM has been taught
130       a new tool parameter applicable to ML source files.
131    
132       - To turn lambda-splitting off completely:
133            local open Compiler.Control.LambdaSplitting in
134                val _ = set Off
135            end
136       - To make "no lambda-splitting" the global default (but allow per-source
137         overriding); this is the initial setting:
138            local open Compiler.Control.LambdaSplitting in
139                val _ = set (Default NONE)
140            end
141       - To make "lambda-splitting with aggressiveness a" the global default
142         (and allow per-source overriding):
143            local open Compiler.Control.LambdaSplitting in
144                val _ = set (Default (SOME a))
145            end
146    
147       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
148         write (in the respective .cm-file):
149            a.sml (lambdasplitting:off)
150       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
151            a.sml (lambdasplitting:on)
152       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
153         <a> is a decimal non-negative integer):
154            a.sml (lambdasplitting:<a>)
155       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
156            a.sml (lambdasplitting:infinity)
157       - To use the global default for a.sml:
158            a.sml (lambdasplitting:default)
159         or simply
160            a.sml
161    
162    ----------------------------------------------------------------------
163    Name: Allen Leung
164    Date: 2001/05/04 01:57:00 EDT
165    Tag: leunga-20010504-sync
166    Description:
167    
168      MLRISC features.
169    
170      1. Fix to CMPXCHG instructions.
171      2. Changed RA interface to allow annotations in callbacks.
172      3. Added a new method to the stream interface to allow annotations updates.
173    
174    ----------------------------------------------------------------------
175    Name: Matthias Blume
176    Date: 2001/05/01 11:45:00 EDT
177    Tag: blume-20010501-pcedittmp
178    Description:
179    
180    Changed install.sh to use the current working directory instead of
181    /usr/tmp for a temporary file (pcedittmp).  The previous choice
182    of /usr/tmp caused trouble with MacOS X because of file premission
183    problems.
184    
185    ----------------------------------------------------------------------
186    Name: Matthias Blume
187    Date: 2001/04/20 11:10:00 EDT
188    Tag: blume-20010420-inMLflag
189    Description:
190    
191     - added vp_limitPtrMask to vproc-state.h
192       (for use by the raw-C-calls mechanism to implement proper interrupt
193        handling)
194     - made the ML compiler aware of various data-structure offsets so it
195       can generate code for accessing the vp_inML flag and vp_limitPtrMask
196     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
197       raw C-calls
198    
199    ----------------------------------------------------------------------
200    Name: Lal George
201    Date: 2001/04/20 09:15:28 EDT
202    Tag: george-20010420-macosX
203    Description:
204    
205     - Changes to port to Mac OS X; Darwin.
206    
207     - In the process I found that sqrt was broken on the PPC, because the
208       fsqrt instruction is not implemented.
209    
210    ----------------------------------------------------------------------
211    Name: Matthias Blume
212    Date: 2001/04/18 12:45:00 EDT
213    Tag: blume-20010418-ccalls
214    Description:
215    
216     - fixed two off-by-4 errors in the x86-specific c-calls implementation
217       (this bug prevented structure arguments containing pointers from being
218        passed correctly)
219     - changed the raw-C-call code in mlriscGen.sml in such a way that
220       structure arguments are represented as a pointer to the beginning
221       of the structure (instead of having a series of synthesized arguments,
222       one for each structure member)
223    
224     - made makeml script's verbosity level configurable via environment
225       variable (MAKEML_VERBOSITY)
226    
227     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
228       in rawmem-x86.sml; we are now using the real thing
229    
230    ----------------------------------------------------------------------
231    Name: Matthias Blume
232    Date: 2001/03/22 16:25:00 EST
233    Tag: blume-20010322-bootfiles
234    Description:
235    
236    Created a new set of bootfiles (for your automatic installation convenience).
237    
238    ----------------------------------------------------------------------
239    Name: Matthias Blume
240    Date: 2001/03/22 15:10:00 EST
241    Tag: blume-20010322-rawmem-parcm
242    Description:
243    
244    1. All "raw memory access" primitives for the new FFI are implemented now
245       (at least on the x86).
246    2. Some further cleanup of CM's parallel make mechanism.
247    
248    ----------------------------------------------------------------------
249    Name: Matthias Blume
250    Date: 2001/03/19 17:53:00 EST
251    Tag: blume-20010319-parallel
252    Description:
253    
254    Parallel make (using compile servers) now works again.
255    
256    To this end, CM.stabilize and CMB.make have been modified to work in
257    two passes when compile servers are attached:
258       1. Compile everything, do not perform stabilization; this pass
259          uses compile servers
260       2. Stabilize everything; this pass does not use compile servers
261    If there are no compile servers, the two passes are combined into one
262    (as before).  Splitting the passes increases the inherent parallelism
263    in the dependency graph because the entire graph including all
264    libraries is available at the same time.  This, in turn, improves
265    server utilization.  The downside is that the master process will
266    have to do some extra work after compilation is done (because for
267    technical reasons it must re-read all the binfiles during stabilization).
268    
269    ----------------------------------------------------------------------
270    Name: Matthias Blume
271    Date: 2001/03/16 12:22:00 EST
272    Tag: blume-20010316-bootfiles
273    Description:
274    
275    Created a new set of bootfiles (for your automatic installation convenience).
276    
277    ----------------------------------------------------------------------
278    Name: Matthias Blume
279    Date: 2001/03/16 11:00:00 EST
280    Tag: blume-20010316-MLTREE-fixup
281    Description:
282    
283    This is a minor fixup for an (untagged) earlier commit by Allen.
284    (A file was missing).
285    
286    ----------------------------------------------------------------------
287    Name: Allen Leung
288    Date: Mon Mar  5 18:54:57 EST 2001
289    Tag: leunga-20010305-cut-support
290    
291    1. New support for alternative control-flow in MLTREE.
292       Currently we support
293    
294          FLOW_TO(CALL ...., [k1,...,kn])
295    
296       This is needed for 'cuts to' in C-- and try/handle-like constructs
297       in Moby
298    
299       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
300    
301    2. Register Allocator
302    
303       Changes in interface [from Fermin, John]
304    
305    3. Alpha 8-bit SLL support [Fermin]
306    
307    4. All architectures
308    
309       A new module (ClusterExpandCopies) for expanding parallel copies.
310    
311    ----------------------------------------------------------------------
312    Name: Allen Leung
313    Date: 2001/02/27 23:07:00 EST
314    Tag: leunga-20010227-minor-stuff
315    
316    1. Alpha bug fix for CMOVNE
317    2. Handle mltree COND(..,FCMP ...,...)
318    3. Bug fix in simplifier
319    
320    ----------------------------------------------------------------------
321    Name: Matthias Blume
322    Date: 2001/01/30 17:50:00 EST
323    Tag: blume-20010130-sync
324    Description:
325    
326    This is just a minor update to sync my devel branch with the main brach.
327    The only visible change is the addition of some README files.
328    
329    ----------------------------------------------------------------------
330    Name: Matthias Blume
331    Date: 2001/01/12 23:30:00 JST
332    Tag: blume-20010112-bootfiles
333    Description:
334    
335    Made a new set of bootfiles that goes with the current state of the
336    repository.
337    
338    ----------------------------------------------------------------------
339    Name: Matthias Blume
340    Date: 2001/01/12 21:20:00 JST
341    Tag: blume-20010112-sync
342    Description:
343    
344    I am just flushing out some minor changes that had accumulated in
345    my private branch in order to sync with the main tree.  (This is
346    mainly because I had CVS trouble when trying to merge _into_ my
347    private branch.)
348    
349    Most people should be completely unaffected by this.
350    
351    ----------------------------------------------------------------------
352    Name: Allen Leung
353    Date: Thu Jan 11 21:03:00 EST 2001
354    Tag: leunga-20010111-labexp=mltree
355    Description:
356    
357    1.  Removed the type LabelExp and replace it by MLTree.
358    2.  Rewritten mltree-simplify with the pattern matcher tool.
359    3.  There were some bugs in alpha code generator which would break
360        64-bit code generation.
361    4.  Redo the tools to generate code with the
362    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
363        are now generated by perl scripts.
364    
365    ----------------------------------------------------------------------
366    Name: Matthias Blume
367    Date: 2001/01/10 21:55:00 JST
368    Tag: blume-20010110-rcc
369    Description:
370    
371    The RCC stuff now seems to work (but only on the x86).
372    This required hacking of the c-calls interface (and -implementation) in
373    MLRISC.
374    
375    Normal compiler users should be unaffected.
376    
377    ----------------------------------------------------------------------
378    Name: Matthias Blume
379    Date: 2001/01/09 01:20:00 JST
380    Tag: blume-20010109-rcc
381    Description:
382    
383    This is a fairly big patch, flushing out a large number of pending
384    changes that I made to my development copy over the last couple of days.
385    
386    Of practical relevance at this moment is a workaround for a pickling
387    bug that Allen ran into the other day.  The cause of the bug itself is
388    still unknown and it might be hard to fix it properly, but the
389    workaround has some merits of its own (namely somewhat reducing pickling
390    overhead for certain libraries).  Therefore, I think this solution should
391    be satisfactory at this time.
392    
393    The rest of the changes (i.e., the vast majority) has to do with my
394    ongoing efforts of providing direct support for C function calls from
395    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
396    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
397    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
398    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
399    handle RCC.
400    
401    The last part (the changes to mlriscGen.sml) are still known to be
402    wrong on the x86 and not implemented on all other architectures.  But
403    the infrastructure is in place. I had to change a few functor
404    signatures in the backend to be able to route the CCalls interface
405    from MLRISC there, and I had to specialize the mltree type (on the
406    x86) to include the necessary extensions. (The extensions themselves
407    were already there and redy to go in MLRISC/x86).
408    
409    Everything should be very happy as soon as someone helps me with
410    mlriscGen.sml...
411    
412    In any case, nothing of this should matter to anyone as long as the
413    new primop is not being used (which is going to be the case unless you
414    find it where I hid it :). The rest of the compiler is completely
415    unaffected.
416    
417    ----------------------------------------------------------------------
418    Name: Matthias Blume
419    Date: 2001/01/05 00:30:00 JST
420    Tag: blume-20010105-primops
421    Description:
422    
423    Added some experimental support for work that I am doing right now.
424    These changes mostly concern added primops, but there is also a new
425    experimental C library in the runtime system (but currently not enabled
426    anywhere except on Linux/X86).
427    
428    In the course of adding primops (and playing with them), I discovered that
429    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
430    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
431    To recover, I made type information in INL_PRIM mandatory and changed
432    prim.sml as well as built-in.sml accordingly.  The InLine structure now
433    has complete, correct type information (i.e., no bottom types).
434    
435    Since all these changes mean that we need new binfiles, I also bumped the
436    version number to 110.32.1.
437    
438    ----------------------------------------------------------------------
439    Name: Matthias Blume
440    Date: 2000/12/30 22:10:00 JST
441    Tag: blume-20001230-various
442    Description:
443    
444    Added proxy libraries for MLRISC and let MLRISC libraries refer
445    to each other using path anchors.  (See CM manual for explanation.)
446    
447    Updated CM documentation.
448    
449    Fixed some bugs in CM.
450    
451    Implemented "proxy" libraries (= syntactic sugar for CM).
452    
453    Added "-quiet" option to makeml and changed runtime system accordingly.
454    
455    Added cleanup handler for exportML to reset timers and compiler stats.
456    
457    ----------------------------------------------------------------------
458    Name: Lal George
459    Date: 2000/12/22 22:22:58 EST 2000
460    Tag: Release_110_32
461    Description:
462    
463            Infinite precision used throughout MLRISC.
464            see MLRISC/mltree/machine-int.sig
465    
466    ----------------------------------------------------------------------
467    Name: Matthias Blume
468    Date: 2000/12/22 23:16:00 JST
469    Tag: blume-20001222-warn
470    Description:
471    
472    Corrected wording and formatting of some CM warning message which I
473    broke in my previous patch.
474    
475    ----------------------------------------------------------------------
476    Name: Matthias Blume
477    Date: 2000/12/22 21:20:00 JST
478    Tag: blume-20001222-anchorenv
479    Description:
480    
481    Fixed CM's handling of anchor environments in connection with CMB.make.
482    
483    ----------------------------------------------------------------------
484    Name: Matthias Blume
485    Date: 2000/12/22 13:15:00 JST
486    Tag: blume-20001222-cleanup
487    Description:
488    
489    Removed src/cm/ffi which does not (and did not) belong here.
490    
491    ----------------------------------------------------------------------
492    Name: Matthias Blume
493    Date: 2000/12/21 23:55:00 JST
494    Tag: blume-20001221-exn
495    Description:
496    
497    Probably most important: CM no longer silently swallows all exceptions
498    in the compiler.
499    Plus: some other minor CM changes.  For example, CM now reports some
500    sizes for generated binfiles (code, data, envpickle, lambdapickle).
501    
502    ----------------------------------------------------------------------
503    Name: Matthias Blume
504    Date: 2000/12/15 00:01:05 JST
505    Tag: blume-20001215-dirtool
506    Description:
507    
508    - "dir" tool added.
509    - improvements and cleanup to Tools structure
510    - documentation updates
511    
512    ----------------------------------------------------------------------
513    Name: Allen Leung
514    Date: Thu Dec 14 03:45:24 EST 2000
515    Description:
516    Tag:  leunga-20001214-int-inf
517    Description:
518    
519       In IntInf, added these standard functions, which are missing from our
520    implementation:
521    
522        andb : int * int -> int
523        xorb : int * int -> int
524        orb  : int * int -> int
525        notb : int -> int
526         <<   : int * word -> int
527        ~>>  : int * word -> int
528    
529       Not tested, I hope they are correct.
530    
531    ----------------------------------------------------------------------
532    Name: Allen Leung
533    Date: Fri Dec  8 19:23:26 EST 2000
534    Description:
535    Tag:  leunga-20001208-nowhere
536    Description:
537    
538      Slight improvements to the 'nowhere' tool to handle OR-patterns,
539    to generate better error messages etc.  Plus a brief manual.
540    
541    ----------------------------------------------------------------------
542    Name: Lal George
543    Date: 2000/12/08 09:54:02 EST 2000
544    Tag: Release_110_31
545    Description:
546    
547    - Version 110.31
548    ----------------------------------------------------------------------
549    Name: Allen Leung
550    Date: Thu Dec  7 22:01:04 EST 2000
551    Tag:  leunga-20001207-cell-monster-hack
552    Description:
553    
554    Major MLRISC internal changes.  Affect all clients.
555    Summary:
556    
557    1.  Type CELLS.cell = int is now replaced by a datatype.
558        As a result, the old regmap is now gone.  Almost all interfaces
559        in MLRISC change as a consequence.
560    
561    2.  A new brand version of machine description tool (v3.0) that generates
562        modules expecting the new interface.  The old version is removed.
563    
564    3.  The RA interface has been further abstracted into two new functors.
565        RISC_RA and X86RA.  These functors have much simpler interfaces.
566        [See also directory MLRISC/demo.]
567    
568    4.  Some other new source->source code generation tools are available:
569    
570        a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
571        b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
572           I use this tool to generate the peephole optimizers---with the new
573           cell type changes, peephole rules are becoming difficult to write
574           without conditional pattern matching.
575    
576    5.  More Intmap -> IntHashTable change.  Previous changes by Matthias didn't
577        cover the entire MLRISC source tree so many things broke.
578    
579    6.  CM files have been moved to the subdirectory MLRISC/cm.
580        They are moved because there are a lot of them and they clutter up the
581        root dir.
582    
583    7.  More detailed documentation to come...
584    
585        NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
586        a makeml -rebuild first.  This is because of other other
587        changes that Matthias has made (see below).
588    
589    
590    ----------------------------------------------------------------------
591    Name: Matthias Blume
592    Date: 2000/11/30 23:12:00 JST
593    Tag: blume-20001130-filereorg
594    Description:
595    
596    Some manual updates and some file reorganizations in CM.
597    
598    ----------------------------------------------------------------------
599    Name: Matthias Blume
600    Date: 2000/11/24 17:45:00 JST
601    Tag: blume-20001124-link
602    Description:
603    
604    Drastically improved link traversal code for the case that the dynamic
605    value was already loaded at bootstrap time.  As a result, CM and CMB
606    now both load blazingly fast -- even on a very slow machine.  Also,
607    memory consumption has been further reduced by this.
608    
609    Warning: The format of the PIDMAP file has changed.  THerefore, to
610    bootstrap you have to do this:
611    
612    1. Run CMB.make
613    2. Make a symbolic link for the boot directory:
614         ln -s sml.boot.ARCH-OS xxx
615    3. "Rebuild" the boot directory:
616         ./makeml -boot xxx -rebuild sml ; rm xxx
617    4. Boot normally:
618          ./makeml
619    
620    ----------------------------------------------------------------------
621    Name: Matthias Blume
622    Date: 2000/11/21 21:20:00 JST
623    Tag: blume-20001121-tools
624    Description:
625    
626    Continued hacking on autoloading problem -- with success this time.
627    Also changed tool-plugin mechanism.  See new CM manual.
628    
629    ----------------------------------------------------------------------
630    Name: Matthias Blume
631    Date: 2000/11/19 14:30:00 JST
632    Tag:  blume-20001119-autoload
633    Description:
634    
635    Some hacking to make autoloading faster.  Success for CMB, no success
636    so far for CM.  There is a reduced structure CM' that autoloads faster.
637    (This is a temporary, non-documented hack to be eliminated again when
638    the general problem is solved.)
639    
640    ----------------------------------------------------------------------
641    Name: Matthias Blume
642    Date: 2000/11/17 14:10:00 JST
643    Tag: blume-20001117-pickle-lib
644    Description:
645    
646    1. Eliminated comp-lib.cm
647    2. Made pickle-lib.cm
648    3. Eliminated all uses of intset.sml (from comp-lib.cm)
649    4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
650       equivalent constructs from smlnj-lib.cm (INtHashTable).
651    5. Point 4. also goes for those uses of intmap.* in MLRISC.
652       Duplicated intmap modules thrown out.
653    6. Hunted down all duplicated SCC code and replaced it with
654       equivalent stuff (GraphSCCFn from smlnj-lib.cm).
655    7. Rewrote Feedback module.
656    8. Moved sortedlist.sml into viscomp-lib.cm.  Eventually it
657       should be thrown out and equivalent modules from smlnj-lib.cm
658       should be used (IntRedBlackSet, IntListSet, ...).
659    
660    Confirmed that compiler compiles to fixpoint.
661    
662    ----------------------------------------------------------------------
663    Name: Allen Leung
664    Date: 2000/11/10 18:00:00
665    Tag: leunga-20001110-new-x86-fp
666    
667    A new x86 floating point code generator has been added.
668    By default this is turned off.  To turn this on, do:
669    
670        CM.autoload "$smlnj/compiler.cm";
671        Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
672    
673    Changes:
674    
675    1.  Changed FTAN to FPTAN so that the assembly output is correct.
676    2.  Changed the extension callback for FTANGENT to generate:
677    
678              fptan
679              fstp  %st(0)
680        instead of
681              fptan
682              fstpl ftempmem
683    
684    3.  Numerous assembly fixes for x86.
685    
686    5.  Cleaned up the machine code output module x86/x86MC.sml and added
687        support for a whole bunch of instructions and addressing modes:
688    
689          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st, %st(n)
690          faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp  %st, %st(n)
691          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st(n), %st
692          fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
693          fxch %st(n)
694          fld %st(n)
695          fst %st(n)
696          fst mem
697          fstp %st(n)
698          fucom %st(n)
699          fucomp %st(n)
700    
701        All these are now generated when the fast fp mode is turned on.
702    
703    6.  Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
704    
705    ----------------------------------------------------------------------
706    Name: Matthias Blume
707    Date: 2000/11/09 11:20:00 JST
708    Tag: blume-20001109-scc
709    Description:
710    
711    Eliminated some code duplication:
712    
713    1. Added "where" clause to GraphSCCFn in SML/NJ Library.
714       (Otherwise the functor is useless.)
715    2. Used GraphSCCFn where SCCUtilFun was used previously.
716    3. Got rid of SCCUtilFun (in comp-lib.cm).
717    
718    ----------------------------------------------------------------------
719    Name: Lal George
720    Date: 2000/11/06 09:02:21 EST 2000
721    Tag: Release_110_30
722    Description:
723    
724    - Version 110.30
725    ----------------------------------------------------------------------
726    Name: Matthias Blume
727    Date: 2000/11/04 14:45:00
728    Tag: blume-20001104-mlbuild
729    Description:
730    
731    - Made ml-build faster on startup.
732    - Documentation fixes.
733    
734    ----------------------------------------------------------------------
735    Name: Matthias Blume
736    Date: 2000/11/02 17:00:00 JST
737    Tag: blume-20001102-condcomp
738    Description:
739    
740    - Small tweaks to pickler -- new BOOTFILES!
741    - Version bumped to 110.29.2.
742    - Added conditional compilation facility to init.cmi (see comment there).
743    ----------------------------------------------------------------------
744    Name: Allen Leung
745    Date: 2000/10/23 19:31:00
746    Tag: leunga-20001023-demo-ra
747    
748    1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
749    2. Test programs for the graph library updated
750    3. Some new MLRISC demo programs added
751    
752    ----------------------------------------------------------------------
753    Name: Matthias Blume
754    Date: 2000/08/31 22:15:00 JST
755    Tag: blume-20001017-errmsg
756    Description:
757    
758    More error message grief: Where there used to be no messages, there
759    now were some that had bogus error regions.  Fixed.
760    
761    ----------------------------------------------------------------------
762    Name: Matthias Blume
763    Date: 2000/08/31 17:30:00 JST
764    Tag: blume-20001017-v110p29p1
765    Description:
766    
767    I made a version 110.29.1 with new bootfiles.
768    
769    Changes:  Modified pickler/unpickler for faster and leaner unpickling.
770              CM documentation changes and a small bugfix in CM's error reporting.
771    
772    ----------------------------------------------------------------------
773    Name: Lal George
774    Date: 2000/09/27 14:42:35 EDT
775    Tag: george-20000927-nodestatus
776    Description:
777    
778    Changed the type of the nodestatus, so that:
779    
780            SPILLED(~1)             is now SPILLED
781            SPILLED(m) where m>=0   is now MEMREG(m)
782            SPILLED(s) where s<~1   is now SPILL_LOC(~s)
783    
784    ----------------------------------------------------------------------
785    Name: Matthias Blume
786    Date: 2000/09/07 14:45:00 JST
787    Tag: blume-20000907-cmerrmsg
788    Description:
789    
790    Small tweak to CM to avoid getting ML syntax error messages twice.
791    
792    ----------------------------------------------------------------------
793    Name: Matthias Blume
794    Date: 2000/08/31 18:00:00 JST
795    Tag: blume-20000831-cvsbootfiles
796    Description:
797    
798    New URL for boot files (because the 110.29 files on the BL server do
799    now work correctly with my updated install scripts for yacc and lex).
800    
801    ----------------------------------------------------------------------
802    Name: Matthias Blume
803    Date: 2000/08/08 12:33:00 JST
804    Tag: blume-20000808-manual
805    Description:
806    
807    Tiny update to CM manual.
808    
809    ----------------------------------------------------------------------
810    Name: Allen Leung
811    Date: 2000/08/7 19:31:00
812    Tag: leunga-20000807-a-whole-bunch-of-stuff
813    
814      Moby, C--, SSA, x86, machine descriptions etc.  Should only affect C--
815    and Mobdy.
816    
817    1.  x86
818    
819       a.  Fixes to peephole module by John and Dan.
820       b.  Assembly fix to SETcc by Allen.
821       c.  Fix to c-call by John.
822       d.  Fix to spilling by John.  (This one deals with the missing FSTPT case)
823       e.  Instruction selection optimization to SETcc as suggested by John.
824    
825           For example,
826    
827            MV(32, x, COND(32, CMP(32, LT, a, b), LI 1, LI 0))
828    
829           should generate:
830    
831            MOVL a, x
832            SUBL b, x
833            SHRL 31, x
834    
835    2.  IR stuff
836    
837         A bunch of new DJ-graph related algorithms added.  These
838         speed up SSA construction.
839    
840    3.  SSA + Scheduling
841    
842         Added code for SSA and scheduling to the repository
843    
844    ----------------------------------------------------------------------
845    Name: Lal George
846    Date: 2000/07/27 11:53:14 EDT
847    
848    Tag: lal-20000727-linux-ppc
849    Description:
850    
851     Made changes to support Linux PPC.
852     p.s. I have confirmation that the 110.29 boot files work fine.
853    
854    ----------------------------------------------------------------------
855    Name: Matthias Blume
856    Date: 2000/07/27 17:40:00 JST
857    Tag: blume-20000727-scripts
858    Description:
859    
860    !!!! WARNING !!!!
861    You must recompile the runtime system!
862    !!!! WARNING !!!!
863    
864    This is basically another round of script-enhancements:
865    
866    1. sml, ml-build, and ml-makedepend accept options -D and -U to define
867       and undefine CM preprocessor symbols.
868    
869    2. ml-build avoids generating a new heap image if it finds that the
870       existing one is still ok.  (The condition is that no ML file had to
871       be recompiled and all ML files are found to be older that the heap
872       file.)
873    
874       To make this work smoothly, I also hacked the runtime system as
875       well as SMLofNJ.SysInfo to get access to the heap image suffix
876       (.sparc-solaris, ...) that is currently being used.
877    
878       Moreover, the signature of CM.mk_standalone has changed.  See the
879       CM manual.
880    
881    3. ml-makedepend accepts additional options -n, -a, and -o.  (See the
882       CM manual for details.)
883    
884    4. More CM manual updates:
885        - all of the above has been documented.
886        - there is now a section describing the (CM-related) command line
887          arguments that are accepted by the "sml" command
888    
889    ----------------------------------------------------------------------
890    Name: Matthias Blume
891    Date: 2000/07/25 16:20:00 JST
892    Tag: blume-20000725-makedepend
893    Description:
894    
895    Added a script called ml-makedepend.  This can be used in makefiles
896    for Unix' make in a way very similar to the "makedepend" command for
897    C.
898    
899    The script internally uses function CM.sources.
900    
901    Synopsis:
902    
903        ml-makedepend [-f makefile] cmfile targetname
904    
905    The default for the makefile is "makefile" (or "Makefile" should
906    "makefile" not exist).
907    
908    ml-makedepend adds a cmfile/targetname-specific section to this
909    makefile (after removing the previous version of this section).  The
910    section contains a single dependency specification with targetname on
911    the LHS (targetname is an arbitrary name), and a list of files derived
912    from the cmfile on the RHS.  Some of the files on the RHS are
913    ARCH/OPSYS-specific.  Therefore, ml-makedepend inserts references to
914    "make" variables $(ARCH) and $(OPSYS) in place of the corresponding
915    path names.  The makefile writer is responsible for making sure that
916    these variables have correct at the time "make" is invoked.
917    
918    ----------------------------------------------------------------------
919    Name: Matthias Blume
920    Date: 2000/07/22 23:30:00 JST
921    Tag: blume-20000722-urlupdate
922    Description:
923    
924    Changed BOOT and config/srcarchiveurl to point to BL server:
925    
926        ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.29/
927    
928    ----------------------------------------------------------------------
929    Name: Matthias Blume
930    Date: 2000/07/18 18:00:00 JST
931    Tag: blume-20000718-Version_110_29
932    Description:
933    
934    1. Updated src/compiler/TopLevel/main/version.sml to version 110.29
935    
936    2. Updated config/version to 110.29
937    
938    3. Updated config/srcarchiveurl
939    
940    3. New boot files!
941       ftp://ftp.cs.princeton.edu/pub/people/blume/sml/110.29-autofetch
942    
943    ----------------------------------------------------------------------
944    Name: Matthias Blume
945    Date: 2000/07/11 13:58:00 JST
946    Tag: blume-20000711-doctypo
947    Description:
948    
949    Fixed a few typos in CM manual.
950    
951    ----------------------------------------------------------------------
952    Name: Allen Leung
953    Date: 2000/06/15 00:38:00
954    Tag: leunga-20000704-sparc-x86
955    
956    1. x86 peephole improvement sp += k; sp -= k => nop  [from John]
957    2. fix to x86 RET bug [found by Dan Grossman]
958    3. sparc assembly bug fix for ticc instructions [found by Fermin]
959    
960       Affects c-- and moby only
961    
962    ----------------------------------------------------------------------
963    Name: Matthias Blume
964    Date: 2000/07/04 15:26:00
965    Tag: blume-20000704-trigger
966    Description:
967    
968    1. Improvements to CM manual.
969    2. SMLofNJ.Internals.BTrace.trigger reinstated as an alternative way
970       of getting a back-trace.  The function, when called, raises an
971       internal exception which explicitly carries the full back-trace history,
972       so it is unaffected by any intervening handle-raise pairs ("trivial"
973       or not).  The interactive loop will print that history once it arrives
974       at top level.
975       Short of having all exceptions implicitly carry the full history, the
976       recommended way of using this facility is:
977         - compile your program with instrumentation "on"
978         - run it, when it raises an exception, look at the history
979         - if the history is "cut off" because of some handler, go and modify
980           your program so that it explicitly calls BTrace.trigger
981         - recompile (still instrumented), and rerun; look at the full history
982    
983    ----------------------------------------------------------------------
984    Name: Matthias Blume
985    Date: 2000/07/03 15:36:00 JST
986    Tag: blume-20000702-manual
987    Description:
988    
989    Small corrections and updates to CM manual.
990    
991    ----------------------------------------------------------------------
992    Name: Matthias Blume
993    Date: 2000/06/29 16:04:00 JST
994    Tag: blume-20000629-yacctool
995    Description:
996    
997    Changes:
998    
999    1. Class "mlyacc" now takes separate arguments to pass options to
1000       generated .sml- and .sig-files independently.
1001    2. Corresponding CM manual updates.
1002    3. BTrace module now also reports call sites.  (However, for loop clusters
1003       it only shows from where the cluster was entered.)  There are associated
1004       modifications to core.sml, internals.{sig,sml}, btrace.sml, and btimp.sml.
1005    
1006    ----------------------------------------------------------------------
1007    Name: Matthias Blume
1008    Date: 2000/06/27 16:51:00 JST
1009    Tag: blume-20000627-noweb
1010    Description:
1011    
1012    Changes:
1013    
1014     1. Implemented "subdir" and "witness" options for noweb tool.
1015        This caused some slight internal changes in CM's tool implementation.
1016     2. Fixed bug in "tool plugin" mechanism.  This is essentially cleaning
1017        some remaining issues from earlier path anchor changes.
1018     3. Updated CM manual accordingly.
1019    
1020     4. Changed implementation of back-tracing so that I now consider it
1021        ready for prime-time.
1022    
1023        In particular, you don't have to explicitly trigger the back-trace
1024        anymore.  Instead, if you are running BTrace-instrumented code and
1025        there is an uncaught exception (regardless of whether or not it was
1026        raised in instrumented code), the top-level evalloop will print
1027        the back-trace.
1028    
1029        Features:
1030    
1031          - Instrumented and uninstrumented code work together seemlessly.
1032            (Of course, uninstrumented code is never mentioned in actual
1033             back-traces.)
1034    
1035          - Asymptotic time- and space-complexity of instrumented code is
1036            equal to that of uninstrumented code.  (This means that
1037            tail-recursion is preserved by the instrumentation phase.)
1038    
1039          - Modules whose code has been instrumented in different sessions
1040            work together without problem.
1041    
1042          - There is no penalty whatsoever on uninstrumented code.
1043    
1044          - There is no penalty on "raise" expressions, even in
1045            instrumented code.
1046    
1047        A potential bug (or perhaps it is a feature, too):
1048    
1049          A back-trace reaches no further than the outermost instrumented
1050          non-trivial "raise".  Here, a "trivial" raise is one that is the
1051          sole RHS of a "handle" rule.  Thus, back-traces reach trough
1052    
1053               <exp> handle e => raise e
1054    
1055          and even
1056    
1057               <exp> handle Foo => raise Bar
1058    
1059          and, of course, through
1060    
1061               <exp> handle Foo => ...
1062    
1063         if the exception was not Foo.
1064    
1065         Back-traces always reach right through any un-instrumented code
1066         including any of its "handle" expressions, trivial or not.
1067    
1068       To try this out, do the following:
1069    
1070         - Erase all existing binfiles for your program.
1071           (You may keep binfiles for those modules where you think you
1072            definitely don't need back-tracing.)
1073         - Turn on back-trace instrumentation:
1074              SMLofNJ.Internals.BTrace.mode (SOME true);
1075         - Recompile your program.  (I.e., run "CM.make" or "use".)
1076         - You may now turn instrumentation off again (if you want):
1077              SMLofNJ.Internals.BTrace.mode (SOME false);
1078         - Run your program as usual.  If it raises an exception that
1079           reaches the interactive toplevel, then a back-trace will
1080           automatically be printed.  After that, the toplevel loop
1081           will print the exception history as usual.
1082    
1083  ----------------------------------------------------------------------  ----------------------------------------------------------------------
1084  Name: Matthias Blume  Name: Matthias Blume
1085  Date: 2000/06/26 09:56:46 JST  Date: 2000/06/26 09:56:46 JST

Legend:
Removed from v.677  
changed lines
  Added in v.832

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