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 710, Tue Oct 17 08:21:09 2000 UTC revision 852, Tue Jun 26 02:56:11 2001 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume  Name: Matthias Blume
17    Date: 2001/06/25 22:55:00 EDT
18    Tag: blume-20010625-x86pc
19    Description:
20    
21    Fixed a nasty bug in the X86 assembly code that caused signal
22    handlers to fail (crash) randomly.
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume
26    Date: 2001/06/25 12:05:00 EDT
27    Tag: blume-20010625-nlffigen
28    Description:
29    
30    This update fixes a number of minor bugs in ml-nlffigen as reported by
31    Nick Carter <nbc@andrew.cmu.edu>.
32    
33      1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted.
34      2. Default names for generated files are now derived from the name of
35         the C file *without its directory*.  In particular, this causes generated
36         files to be placed locally even if the C file is in some system directory.
37      3. Default names for generated signatures and structures are also derived
38         from the C file name without its directory.  This avoids silly things
39         like "structure GL/GL".
40         (Other silly names are still possible because ml-nlffigen does not do
41          a thorough check of whether generated names are legal ML identifiers.
42          When in doubt, use command line arguments to force particular names.)
43    
44    ----------------------------------------------------------------------
45    Name: Matthias Blume
46    Date: 2001/06/21 12:25:00 EDT
47    Tag: blume-20010621-eXene
48    Description:
49    
50    eXene now compiles and (sort of) works again.
51    
52    The library name (for version > 110.33) is $/eXene.cm.
53    
54    I also added an new example in src/eXene/examples/nbody.  See the
55    README file there for details.
56    
57    ----------------------------------------------------------------------
58    Name: Matthias Blume
59    Date: 2001/06/20 16:40:00 EDT
60    Tag: blume-20010620-cml
61    Description:
62    
63    CML now compiles and works again.
64    
65    Libraries (for version > 110.33):
66    
67      $cml/cml.cm            Main CML library.
68      $cml/basis.cm          CML's version of $/basis.cm.
69      $cml/cml-internal.cm   Internal helper library.
70      $cml/core-cml.cm       Internal helper library.
71      $cml-lib/trace-cml.cm  Tracing facility.
72      $cml-lib/smlnj-lib.cm  CML's version of $/smlnj-lib.cm
73    
74    The installer (config/install.sh) has been taught how to properly
75    install this stuff.
76    
77    ----------------------------------------------------------------------
78    Name: Matthias Blume
79    Date: 2001/06/19 17:55:00 EDT
80    Tag: blume-20010619-instantiate
81    Description:
82    
83    This un-breaks the fix for bug 1432.
84    (The bug was originally fixed in 110.9 but I broke it again some
85    time after that.)
86    
87    ----------------------------------------------------------------------
88    Name: Matthias Blume
89    Date: 2001/06/19 17:25:00 EDT
90    Tag: blume-20010619-signals
91    Description:
92    
93    This should (hopefully) fix the long-standing signal handling bug.
94    (The runtime system was constructing a continuation record with an
95    incorrect descriptor which would cause the GC to drop data on the floor...)
96    
97    ----------------------------------------------------------------------
98    Name: Matthias Blume
99    Date: 2001/06/15 15:05:00 EDT
100    Tag: blume-20010615-moresparc
101    Description:
102    
103    Here is a short late-hour update related to Sparc c-calls:
104    
105     -- made handling of double-word arguments a bit smarter
106    
107     -- instruction selection phase tries to collapse certain clumsily
108        constructed ML-Trees; typical example:
109    
110            ADD(ty,ADD(_,e,LI d1),LI d2)  ->  ADD(ty,e,LI(d1+d2))
111    
112        This currently has no further impact on SML/NJ since mlriscGen does
113        not seem to generate such patterns in the first place, and c-calls
114        (which did generate them in the beginning) has meanwhile been fixed
115        so as to avoid them as well.
116    
117    ----------------------------------------------------------------------
118    Name: Matthias Blume
119    Date: 2001/06/15 15:05:00 EDT
120    Tag: blume-20010615-sparc
121    Description:
122    
123    The purpose of this update is to provide an implementation of NLFFI
124    on Sparc machines.
125    
126    Here are the changes in detail:
127    
128       * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing
129       the Sparc implementation of the c-calls API.
130       * The Sparc backend of SML/NJ has been modified to uniformely use %fp
131       for accessing the ML frame.  Thus, we have a real frame pointer and
132       can freely modify %sp without need for an omit-frame-ptr phase.
133       The vfp logic in src/compiler/CodeGen/* has been changed to accomodate
134       this case.
135       * ml-nlffigen has been taught to produce code for different architectures
136       and calling conventions.
137       * In a way similar to what was done in the x86 case, the Sparc
138       backend uses its own specific extension to mltree.  (For example,
139       it needs to be able to generate UNIMP instructions which are part
140       of the calling convention.)
141       * ml-nlffi-lib was reorganized to make it more modular (in particular,
142       to make it easier to plug in new machine- and os-dependent parts).
143    
144    There are some other fairly unrelated bug fixes and cleanups as well:
145    
146       * I further hacked the .cm files for MLRISC tools (like MDLGen) so
147       that they properly share their libraries with existing SML/NJ libraries.
148       * I fixed a minor cosmetic bug in CM, supressing certain spurious
149       follow-up error messages.
150       * Updates to CM/CMB documentation.
151    
152    TODO items:
153    
154       * MLRISC should use a different register as its asmTemp on the Sparc.
155         (The current %o2 is a really bad choice because it is part of the
156         calling conventions, so things might interfere in unexpected ways.)
157    
158    ----------------------------------------------------------------------
159    Name: Matthias Blume
160    Date: 2001/06/07
161    Tag: blume-20010607-calls
162    Description:
163    
164    A number of internal changes related to C calls and calling conventions:
165    
166    1. ML-Tree CALL statements now carry a "pops" field.  It indicates the
167       number of bytes popped implicitly (by the callee).  In most cases
168       this field is 0 but on x86/win32 it is some non-zero value.  This
169       is information provided for the benefit of the "omit-frameptr" pass.
170    2. The CALL instruction on the x86 carries a similar "pops" field.
171       The instruction selection phase copies its value from the ML-Tree
172       CALL statement.
173    3. On all other architectures, the instruction selection phase checks
174       whether "pops=0" and complains if not.
175    4. The c-calls implementation for x86 now accepts two calling conventions:
176       "ccall" and "stdcall".  When "ccall" is selected, the caller cleans
177       up after the call and pops is set to 0.  For "stdcall", the caller
178       does nothing, leaving the cleanup to the callee; pops is set to
179       the number of bytes that were pushed onto the stack.
180    5. The cproto decoder (compiler/Semant/types/cproto.sml) now can
181       distinguish between "ccall" and "stdcall".
182    6. The UNIMP instruction has been added to the supported Sparc instruction
183       set. (This is needed for implementing the official C calling convention
184       on this architecture.)
185    7. I fixed some of the .cm files under src/MLRISC/Tools to make them
186       work with the latest CM.
187    
188    ----------------------------------------------------------------------
189    Name: Matthias Blume
190    Date: 2001/06/05 15:10:00 EDT
191    Tag: blume-20010605-cm-index
192    Description:
193    
194    0. The "lambdasplit" parameter for class "sml" in CM has been documented.
195    
196    1. CM can now generate "index files".  These are human-readable files
197       that list on a per-.cm-file basis each toplevel symbol defined or
198       imported.  The location of the index file for
199       <p>/<d>.cm is <p>/CM/INDEX/<d>.cm.
200       To enable index-file generation, set CM.Control.generate_index to true
201       or export an environment-symbol: export CM_GENERATE_INDEX=true.
202    
203       The CM manual has been updated accordingly.
204    
205    2. I made some slight modifications to the c-calls API in MLRISC.
206    
207         a) There is now a callback to support saving/restoring of
208            dedicated but caller-save registers around the actual call
209            instruction.
210         b) One can optionally specify a comment-annotation for the
211            call instruction.
212    
213    3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop.
214       (For example, the comment annotation shows the C prototype of
215        the function being called.)
216    
217    ----------------------------------------------------------------------
218    Name: Matthias Blume
219    Date: 2001/06/01 13:30:00 EDT
220    Tag: blume-20010601-nlffi-cleanup
221    Description:
222    
223    This is mostly a cleanup of MLFFI stuff:
224    
225       - some signature files have been put into a more exposed place
226       - the ugly 'f type parameter is gone (simplifies types tremendously!)
227       - ml-nlffigen changed accordingly
228       - tutorial updated
229    
230    Other changes:
231    
232       - author's affiliation in CM manual(s) updated
233       - some more recognized keywords added to Allen's sml.sty
234    
235    ----------------------------------------------------------------------
236    Name: Matthias Blume
237    Date: 2001/05/25 15:30:00 EDT
238    Tag: blume-20010525-iptr
239    Description:
240    
241      - put the official 110.33-README (as it appears on the ftp server) under
242        CVS
243      - fixed a small bug related to incomplete pointer types in
244        ml-nlffigen
245      - small cosmetic change to the ml-nlffi-lib's "arr" type constructor
246        (it does not need the 'f type parameter)
247    
248    ----------------------------------------------------------------------
249    Name: Matthias Blume
250    Date: 2001/05/23 14:30:00 EDT
251    Tag: Release_110_33
252    Description:
253    
254    New version number (110.33).  New bootfiles.
255    
256    ----------------------------------------------------------------------
257    Name: Matthias Blume
258    Date: 2001/05/22 18:06:00 EDT
259    Tag: blume-20010522-targets
260    Description:
261    
262    Made install.sh use file config/targets.customized if it exists, falling
263    back to config/targets if it doesn't.  This way one can have a customized
264    version of the targets file without touching the "real thing", thus
265    eliminating the constant fear of accidentally checking something bogus
266    back into the CVS repository...  (File config/targets.customized must
267    not be added to the repository!)
268    
269    ----------------------------------------------------------------------
270    Name: Matthias Blume
271    Date: 2001/05/22 16:30:00 EDT
272    Tag: blume-20010522-minitut
273    Description:
274    
275    1. Bug fix in ml-nlffigen; now (hopefully) correctly handling
276       struct returns.
277    2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt.  This is some very
278       incomplete, preliminary documentation for NLFFI.
279    
280    ----------------------------------------------------------------------
281    Name: Matthias Blume
282    Date: 2001/05/14 11:30:00 EDT
283    Tag: blume-20010514-script
284    Description:
285    
286    Some bugs in install script fixed.
287    
288    In addition to that I also made a slight change to the NLFFI API:
289    Functors generated by ml-nlffigen now take the dynamic library as a
290    straight functor argument, not as a suspended one.  (The original
291    functor code used to force the suspension right away anyway, so there
292    was nothing gained by this complication of the interface.)
293    
294    ----------------------------------------------------------------------
295    Name: Matthias Blume
296    Date: 2001/05/11 14:35:00 EDT
297    Tag: blume-20010511-ml-nlffi
298    Description:
299    
300    I finally took the plunge and added my new FFI code to the main
301    repository.  For x86-linux it is now ready for prime-time.
302    
303    There are two new subdirectories of "src":
304    
305      - ml-nlffi-lib:
306           The utility library for programs using the FFI interface.
307           Here is the implementation of $/c.cm and its associated low-level
308           partners $/c-int.cm and $/memory.cm.
309      - ml-nlffigen:
310           A stand-alone program for generating ML glue code from C source
311           code.
312    
313    Building ml-nlffigen requires $/ckit-lib.cm.
314    
315    The config/install.sh script has been updates to do the Right Thing
316    (hopefully).
317    
318    Notice that the source tree for the C-Kit will not be put under "src"
319    but directly under the installation root directory.  (This is the
320    structure that currently exists on the CVS server when you check out
321    module "sml".)  Fortunately, config/install.sh knows about this oddity.
322    
323    Bugs: No documentation yet.
324    
325    ----------------------------------------------------------------------
326    Name: Matthias Blume
327    Date: 2001/05/09 16:35:00 EDT
328    Tag: blume-20010509-cpscontract
329    Description:
330    
331    Fixed a bug in the accounting code in cpsopt/contract.sml.  (The
332    wrapper/unwrapper elimination did not decrement usage counts and some
333    dead variables got overlooked by the dead-up logic.)
334    
335    ----------------------------------------------------------------------
336    Name: Lal George
337    Date: 2001/05/08  17:26:09 EDT
338    Tag: george-20010508-omit-frameptr
339    Description:
340    
341    Changes to implement the omit-frame-pointer optimization to support
342    raw C calls. For now, there is only support on the Intel x86, but
343    other architectures will follow as more experience is gained with this.
344    
345    
346    ----------------------------------------------------------------------
347    Name: Matthias Blume
348    Date: 2001/05/07 14:40:00 EDT
349    Tag: blume-20010507-proxies
350    Description:
351    
352    I made into "proxy libraries" all libraries that qualify for such a
353    change.  (A qualifying library is a library that has another library or
354    groups as its sole member and repeats that member's export list
355    verbatim.  A proxy library avoids this repetition by omitting its export
356    list, effectively inheriting the list that its (only) member exports.
357    See the CM manual for more explanation.)
358    The main effect is that explicit export lists for these libraries
359    do not have to be kepts in sync, making maintenance a bit easier.
360    
361    I also added copyright notices to many .cm-files.
362    
363    Last but not least, I made a new set of bootfiles.
364    
365    ----------------------------------------------------------------------
366    Name: Matthias Blume
367    Date: 2001/05/04 17:00:00 EDT
368    Tag: blume-20010504-cm-lsplit
369    Description:
370    
371    0. John merged pending changes to $/smlnj-lib.cm
372    
373    1. Allen's previous change accidentally backed out of one of Lal's
374       earlier changes.  I undid this mistake (re-introducing Lal's change).
375    
376    2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm)
377       within the compiler where applicable.  There is some code simplification
378       because of that.
379    
380    3. The "split" phase (in FLINT) is now part of the default list of phases.
381       Compiler.Control.LambdaSplitting.* can be used to globally control the
382       lambda-splitting (cross-module-inlining) engine.  In addition to that,
383       it can now also be controlled on a per-source basis: CM has been taught
384       a new tool parameter applicable to ML source files.
385    
386       - To turn lambda-splitting off completely:
387            local open Compiler.Control.LambdaSplitting in
388                val _ = set Off
389            end
390       - To make "no lambda-splitting" the global default (but allow per-source
391         overriding); this is the initial setting:
392            local open Compiler.Control.LambdaSplitting in
393                val _ = set (Default NONE)
394            end
395       - To make "lambda-splitting with aggressiveness a" the global default
396         (and allow per-source overriding):
397            local open Compiler.Control.LambdaSplitting in
398                val _ = set (Default (SOME a))
399            end
400    
401       - To turn lambda-splitting off for a given ML souce file (say: a.sml)
402         write (in the respective .cm-file):
403            a.sml (lambdasplitting:off)
404       - To turn lambda-splitting for a.sml on with minimal aggressiveness:
405            a.sml (lambdasplitting:on)
406       - To turn lambda-splitting for a.sml on with aggressiveness <a> (where
407         <a> is a decimal non-negative integer):
408            a.sml (lambdasplitting:<a>)
409       - To turn lambda-splitting for a.sml on with maximal aggressiveness:
410            a.sml (lambdasplitting:infinity)
411       - To use the global default for a.sml:
412            a.sml (lambdasplitting:default)
413         or simply
414            a.sml
415    
416    ----------------------------------------------------------------------
417    Name: Allen Leung
418    Date: 2001/05/04 01:57:00 EDT
419    Tag: leunga-20010504-sync
420    Description:
421    
422      MLRISC features.
423    
424      1. Fix to CMPXCHG instructions.
425      2. Changed RA interface to allow annotations in callbacks.
426      3. Added a new method to the stream interface to allow annotations updates.
427    
428    ----------------------------------------------------------------------
429    Name: Matthias Blume
430    Date: 2001/05/01 11:45:00 EDT
431    Tag: blume-20010501-pcedittmp
432    Description:
433    
434    Changed install.sh to use the current working directory instead of
435    /usr/tmp for a temporary file (pcedittmp).  The previous choice
436    of /usr/tmp caused trouble with MacOS X because of file premission
437    problems.
438    
439    ----------------------------------------------------------------------
440    Name: Matthias Blume
441    Date: 2001/04/20 11:10:00 EDT
442    Tag: blume-20010420-inMLflag
443    Description:
444    
445     - added vp_limitPtrMask to vproc-state.h
446       (for use by the raw-C-calls mechanism to implement proper interrupt
447        handling)
448     - made the ML compiler aware of various data-structure offsets so it
449       can generate code for accessing the vp_inML flag and vp_limitPtrMask
450     - tweaked mlriscGen.sml to have it emit interrupt-handling code for
451       raw C-calls
452    
453    ----------------------------------------------------------------------
454    Name: Lal George
455    Date: 2001/04/20 09:15:28 EDT
456    Tag: george-20010420-macosX
457    Description:
458    
459     - Changes to port to Mac OS X; Darwin.
460    
461     - In the process I found that sqrt was broken on the PPC, because the
462       fsqrt instruction is not implemented.
463    
464    ----------------------------------------------------------------------
465    Name: Matthias Blume
466    Date: 2001/04/18 12:45:00 EDT
467    Tag: blume-20010418-ccalls
468    Description:
469    
470     - fixed two off-by-4 errors in the x86-specific c-calls implementation
471       (this bug prevented structure arguments containing pointers from being
472        passed correctly)
473     - changed the raw-C-call code in mlriscGen.sml in such a way that
474       structure arguments are represented as a pointer to the beginning
475       of the structure (instead of having a series of synthesized arguments,
476       one for each structure member)
477    
478     - made makeml script's verbosity level configurable via environment
479       variable (MAKEML_VERBOSITY)
480    
481     - eliminated placeholder implementations for f32l, w16s, i16s, and f32s
482       in rawmem-x86.sml; we are now using the real thing
483    
484    ----------------------------------------------------------------------
485    Name: Matthias Blume
486    Date: 2001/03/22 16:25:00 EST
487    Tag: blume-20010322-bootfiles
488    Description:
489    
490    Created a new set of bootfiles (for your automatic installation convenience).
491    
492    ----------------------------------------------------------------------
493    Name: Matthias Blume
494    Date: 2001/03/22 15:10:00 EST
495    Tag: blume-20010322-rawmem-parcm
496    Description:
497    
498    1. All "raw memory access" primitives for the new FFI are implemented now
499       (at least on the x86).
500    2. Some further cleanup of CM's parallel make mechanism.
501    
502    ----------------------------------------------------------------------
503    Name: Matthias Blume
504    Date: 2001/03/19 17:53:00 EST
505    Tag: blume-20010319-parallel
506    Description:
507    
508    Parallel make (using compile servers) now works again.
509    
510    To this end, CM.stabilize and CMB.make have been modified to work in
511    two passes when compile servers are attached:
512       1. Compile everything, do not perform stabilization; this pass
513          uses compile servers
514       2. Stabilize everything; this pass does not use compile servers
515    If there are no compile servers, the two passes are combined into one
516    (as before).  Splitting the passes increases the inherent parallelism
517    in the dependency graph because the entire graph including all
518    libraries is available at the same time.  This, in turn, improves
519    server utilization.  The downside is that the master process will
520    have to do some extra work after compilation is done (because for
521    technical reasons it must re-read all the binfiles during stabilization).
522    
523    ----------------------------------------------------------------------
524    Name: Matthias Blume
525    Date: 2001/03/16 12:22:00 EST
526    Tag: blume-20010316-bootfiles
527    Description:
528    
529    Created a new set of bootfiles (for your automatic installation convenience).
530    
531    ----------------------------------------------------------------------
532    Name: Matthias Blume
533    Date: 2001/03/16 11:00:00 EST
534    Tag: blume-20010316-MLTREE-fixup
535    Description:
536    
537    This is a minor fixup for an (untagged) earlier commit by Allen.
538    (A file was missing).
539    
540    ----------------------------------------------------------------------
541    Name: Allen Leung
542    Date: Mon Mar  5 18:54:57 EST 2001
543    Tag: leunga-20010305-cut-support
544    
545    1. New support for alternative control-flow in MLTREE.
546       Currently we support
547    
548          FLOW_TO(CALL ...., [k1,...,kn])
549    
550       This is needed for 'cuts to' in C-- and try/handle-like constructs
551       in Moby
552    
553       New assembler flag "asm-show-cutsto" to turn on control-flow debugging.
554    
555    2. Register Allocator
556    
557       Changes in interface [from Fermin, John]
558    
559    3. Alpha 8-bit SLL support [Fermin]
560    
561    4. All architectures
562    
563       A new module (ClusterExpandCopies) for expanding parallel copies.
564    
565    ----------------------------------------------------------------------
566    Name: Allen Leung
567    Date: 2001/02/27 23:07:00 EST
568    Tag: leunga-20010227-minor-stuff
569    
570    1. Alpha bug fix for CMOVNE
571    2. Handle mltree COND(..,FCMP ...,...)
572    3. Bug fix in simplifier
573    
574    ----------------------------------------------------------------------
575    Name: Matthias Blume
576    Date: 2001/01/30 17:50:00 EST
577    Tag: blume-20010130-sync
578    Description:
579    
580    This is just a minor update to sync my devel branch with the main brach.
581    The only visible change is the addition of some README files.
582    
583    ----------------------------------------------------------------------
584    Name: Matthias Blume
585    Date: 2001/01/12 23:30:00 JST
586    Tag: blume-20010112-bootfiles
587    Description:
588    
589    Made a new set of bootfiles that goes with the current state of the
590    repository.
591    
592    ----------------------------------------------------------------------
593    Name: Matthias Blume
594    Date: 2001/01/12 21:20:00 JST
595    Tag: blume-20010112-sync
596    Description:
597    
598    I am just flushing out some minor changes that had accumulated in
599    my private branch in order to sync with the main tree.  (This is
600    mainly because I had CVS trouble when trying to merge _into_ my
601    private branch.)
602    
603    Most people should be completely unaffected by this.
604    
605    ----------------------------------------------------------------------
606    Name: Allen Leung
607    Date: Thu Jan 11 21:03:00 EST 2001
608    Tag: leunga-20010111-labexp=mltree
609    Description:
610    
611    1.  Removed the type LabelExp and replace it by MLTree.
612    2.  Rewritten mltree-simplify with the pattern matcher tool.
613    3.  There were some bugs in alpha code generator which would break
614        64-bit code generation.
615    4.  Redo the tools to generate code with the
616    5.  The CM files in MLRISC (and in src/system/smlnj/MLRISC)
617        are now generated by perl scripts.
618    
619    ----------------------------------------------------------------------
620    Name: Matthias Blume
621    Date: 2001/01/10 21:55:00 JST
622    Tag: blume-20010110-rcc
623    Description:
624    
625    The RCC stuff now seems to work (but only on the x86).
626    This required hacking of the c-calls interface (and -implementation) in
627    MLRISC.
628    
629    Normal compiler users should be unaffected.
630    
631    ----------------------------------------------------------------------
632    Name: Matthias Blume
633    Date: 2001/01/09 01:20:00 JST
634    Tag: blume-20010109-rcc
635    Description:
636    
637    This is a fairly big patch, flushing out a large number of pending
638    changes that I made to my development copy over the last couple of days.
639    
640    Of practical relevance at this moment is a workaround for a pickling
641    bug that Allen ran into the other day.  The cause of the bug itself is
642    still unknown and it might be hard to fix it properly, but the
643    workaround has some merits of its own (namely somewhat reducing pickling
644    overhead for certain libraries).  Therefore, I think this solution should
645    be satisfactory at this time.
646    
647    The rest of the changes (i.e., the vast majority) has to do with my
648    ongoing efforts of providing direct support for C function calls from
649    ML.  At the moment there is a new primop "RAW_CCALL", typing magic
650    in types/cproto.sml (invoked from FLINT/trans/translate.sml), a new
651    case in the FLINT CPS datatype (RCC), changes to cps/convert.sml to
652    translate uses of RAW_CCALL into RCC, and changes to mlriscGen.sml to
653    handle RCC.
654    
655    The last part (the changes to mlriscGen.sml) are still known to be
656    wrong on the x86 and not implemented on all other architectures.  But
657    the infrastructure is in place. I had to change a few functor
658    signatures in the backend to be able to route the CCalls interface
659    from MLRISC there, and I had to specialize the mltree type (on the
660    x86) to include the necessary extensions. (The extensions themselves
661    were already there and redy to go in MLRISC/x86).
662    
663    Everything should be very happy as soon as someone helps me with
664    mlriscGen.sml...
665    
666    In any case, nothing of this should matter to anyone as long as the
667    new primop is not being used (which is going to be the case unless you
668    find it where I hid it :). The rest of the compiler is completely
669    unaffected.
670    
671    ----------------------------------------------------------------------
672    Name: Matthias Blume
673    Date: 2001/01/05 00:30:00 JST
674    Tag: blume-20010105-primops
675    Description:
676    
677    Added some experimental support for work that I am doing right now.
678    These changes mostly concern added primops, but there is also a new
679    experimental C library in the runtime system (but currently not enabled
680    anywhere except on Linux/X86).
681    
682    In the course of adding primops (and playing with them), I discovered that
683    Zhong's INL_PRIM hack (no type info for certain primops) was, in fact, badly
684    broken.  (Zhong was very right he labeled this stuff as "major gross hack".)
685    To recover, I made type information in INL_PRIM mandatory and changed
686    prim.sml as well as built-in.sml accordingly.  The InLine structure now
687    has complete, correct type information (i.e., no bottom types).
688    
689    Since all these changes mean that we need new binfiles, I also bumped the
690    version number to 110.32.1.
691    
692    ----------------------------------------------------------------------
693    Name: Matthias Blume
694    Date: 2000/12/30 22:10:00 JST
695    Tag: blume-20001230-various
696    Description:
697    
698    Added proxy libraries for MLRISC and let MLRISC libraries refer
699    to each other using path anchors.  (See CM manual for explanation.)
700    
701    Updated CM documentation.
702    
703    Fixed some bugs in CM.
704    
705    Implemented "proxy" libraries (= syntactic sugar for CM).
706    
707    Added "-quiet" option to makeml and changed runtime system accordingly.
708    
709    Added cleanup handler for exportML to reset timers and compiler stats.
710    
711    ----------------------------------------------------------------------
712    Name: Lal George
713    Date: 2000/12/22 22:22:58 EST 2000
714    Tag: Release_110_32
715    Description:
716    
717            Infinite precision used throughout MLRISC.
718            see MLRISC/mltree/machine-int.sig
719    
720    ----------------------------------------------------------------------
721    Name: Matthias Blume
722    Date: 2000/12/22 23:16:00 JST
723    Tag: blume-20001222-warn
724    Description:
725    
726    Corrected wording and formatting of some CM warning message which I
727    broke in my previous patch.
728    
729    ----------------------------------------------------------------------
730    Name: Matthias Blume
731    Date: 2000/12/22 21:20:00 JST
732    Tag: blume-20001222-anchorenv
733    Description:
734    
735    Fixed CM's handling of anchor environments in connection with CMB.make.
736    
737    ----------------------------------------------------------------------
738    Name: Matthias Blume
739    Date: 2000/12/22 13:15:00 JST
740    Tag: blume-20001222-cleanup
741    Description:
742    
743    Removed src/cm/ffi which does not (and did not) belong here.
744    
745    ----------------------------------------------------------------------
746    Name: Matthias Blume
747    Date: 2000/12/21 23:55:00 JST
748    Tag: blume-20001221-exn
749    Description:
750    
751    Probably most important: CM no longer silently swallows all exceptions
752    in the compiler.
753    Plus: some other minor CM changes.  For example, CM now reports some
754    sizes for generated binfiles (code, data, envpickle, lambdapickle).
755    
756    ----------------------------------------------------------------------
757    Name: Matthias Blume
758    Date: 2000/12/15 00:01:05 JST
759    Tag: blume-20001215-dirtool
760    Description:
761    
762    - "dir" tool added.
763    - improvements and cleanup to Tools structure
764    - documentation updates
765    
766    ----------------------------------------------------------------------
767    Name: Allen Leung
768    Date: Thu Dec 14 03:45:24 EST 2000
769    Description:
770    Tag:  leunga-20001214-int-inf
771    Description:
772    
773       In IntInf, added these standard functions, which are missing from our
774    implementation:
775    
776        andb : int * int -> int
777        xorb : int * int -> int
778        orb  : int * int -> int
779        notb : int -> int
780         <<   : int * word -> int
781        ~>>  : int * word -> int
782    
783       Not tested, I hope they are correct.
784    
785    ----------------------------------------------------------------------
786    Name: Allen Leung
787    Date: Fri Dec  8 19:23:26 EST 2000
788    Description:
789    Tag:  leunga-20001208-nowhere
790    Description:
791    
792      Slight improvements to the 'nowhere' tool to handle OR-patterns,
793    to generate better error messages etc.  Plus a brief manual.
794    
795    ----------------------------------------------------------------------
796    Name: Lal George
797    Date: 2000/12/08 09:54:02 EST 2000
798    Tag: Release_110_31
799    Description:
800    
801    - Version 110.31
802    ----------------------------------------------------------------------
803    Name: Allen Leung
804    Date: Thu Dec  7 22:01:04 EST 2000
805    Tag:  leunga-20001207-cell-monster-hack
806    Description:
807    
808    Major MLRISC internal changes.  Affect all clients.
809    Summary:
810    
811    1.  Type CELLS.cell = int is now replaced by a datatype.
812        As a result, the old regmap is now gone.  Almost all interfaces
813        in MLRISC change as a consequence.
814    
815    2.  A new brand version of machine description tool (v3.0) that generates
816        modules expecting the new interface.  The old version is removed.
817    
818    3.  The RA interface has been further abstracted into two new functors.
819        RISC_RA and X86RA.  These functors have much simpler interfaces.
820        [See also directory MLRISC/demo.]
821    
822    4.  Some other new source->source code generation tools are available:
823    
824        a. MLRISC/Tools/RewriteGen -- generate rewriters from rules.
825        b. MLRISC/Tools/WhereGen -- expands conditional pattern matching rules.
826           I use this tool to generate the peephole optimizers---with the new
827           cell type changes, peephole rules are becoming difficult to write
828           without conditional pattern matching.
829    
830    5.  More Intmap -> IntHashTable change.  Previous changes by Matthias didn't
831        cover the entire MLRISC source tree so many things broke.
832    
833    6.  CM files have been moved to the subdirectory MLRISC/cm.
834        They are moved because there are a lot of them and they clutter up the
835        root dir.
836    
837    7.  More detailed documentation to come...
838    
839        NOTE: To rebuild from 110.30 (ftp distribution), you'll have to do
840        a makeml -rebuild first.  This is because of other other
841        changes that Matthias has made (see below).
842    
843    
844    ----------------------------------------------------------------------
845    Name: Matthias Blume
846    Date: 2000/11/30 23:12:00 JST
847    Tag: blume-20001130-filereorg
848    Description:
849    
850    Some manual updates and some file reorganizations in CM.
851    
852    ----------------------------------------------------------------------
853    Name: Matthias Blume
854    Date: 2000/11/24 17:45:00 JST
855    Tag: blume-20001124-link
856    Description:
857    
858    Drastically improved link traversal code for the case that the dynamic
859    value was already loaded at bootstrap time.  As a result, CM and CMB
860    now both load blazingly fast -- even on a very slow machine.  Also,
861    memory consumption has been further reduced by this.
862    
863    Warning: The format of the PIDMAP file has changed.  THerefore, to
864    bootstrap you have to do this:
865    
866    1. Run CMB.make
867    2. Make a symbolic link for the boot directory:
868         ln -s sml.boot.ARCH-OS xxx
869    3. "Rebuild" the boot directory:
870         ./makeml -boot xxx -rebuild sml ; rm xxx
871    4. Boot normally:
872          ./makeml
873    
874    ----------------------------------------------------------------------
875    Name: Matthias Blume
876    Date: 2000/11/21 21:20:00 JST
877    Tag: blume-20001121-tools
878    Description:
879    
880    Continued hacking on autoloading problem -- with success this time.
881    Also changed tool-plugin mechanism.  See new CM manual.
882    
883    ----------------------------------------------------------------------
884    Name: Matthias Blume
885    Date: 2000/11/19 14:30:00 JST
886    Tag:  blume-20001119-autoload
887    Description:
888    
889    Some hacking to make autoloading faster.  Success for CMB, no success
890    so far for CM.  There is a reduced structure CM' that autoloads faster.
891    (This is a temporary, non-documented hack to be eliminated again when
892    the general problem is solved.)
893    
894    ----------------------------------------------------------------------
895    Name: Matthias Blume
896    Date: 2000/11/17 14:10:00 JST
897    Tag: blume-20001117-pickle-lib
898    Description:
899    
900    1. Eliminated comp-lib.cm
901    2. Made pickle-lib.cm
902    3. Eliminated all uses of intset.sml (from comp-lib.cm)
903    4. Replaced all uses of intmap.{sig,sml} (from comp-lib.cm) with
904       equivalent constructs from smlnj-lib.cm (INtHashTable).
905    5. Point 4. also goes for those uses of intmap.* in MLRISC.
906       Duplicated intmap modules thrown out.
907    6. Hunted down all duplicated SCC code and replaced it with
908       equivalent stuff (GraphSCCFn from smlnj-lib.cm).
909    7. Rewrote Feedback module.
910    8. Moved sortedlist.sml into viscomp-lib.cm.  Eventually it
911       should be thrown out and equivalent modules from smlnj-lib.cm
912       should be used (IntRedBlackSet, IntListSet, ...).
913    
914    Confirmed that compiler compiles to fixpoint.
915    
916    ----------------------------------------------------------------------
917    Name: Allen Leung
918    Date: 2000/11/10 18:00:00
919    Tag: leunga-20001110-new-x86-fp
920    
921    A new x86 floating point code generator has been added.
922    By default this is turned off.  To turn this on, do:
923    
924        CM.autoload "$smlnj/compiler.cm";
925        Compiler.Control.MLRISC.getFlag "x86-fast-fp" := true;
926    
927    Changes:
928    
929    1.  Changed FTAN to FPTAN so that the assembly output is correct.
930    2.  Changed the extension callback for FTANGENT to generate:
931    
932              fptan
933              fstp  %st(0)
934        instead of
935              fptan
936              fstpl ftempmem
937    
938    3.  Numerous assembly fixes for x86.
939    
940    5.  Cleaned up the machine code output module x86/x86MC.sml and added
941        support for a whole bunch of instructions and addressing modes:
942    
943          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st, %st(n)
944          faddp/fsubp/fsubrp/fmulp/fdivp/fdivrp  %st, %st(n)
945          fadd/fsub/fsubr/fmul/fdiv/fdivr  %st(n), %st
946          fiadd/fisub/fisubr/fimul/fidiv/fidivr mem
947          fxch %st(n)
948          fld %st(n)
949          fst %st(n)
950          fst mem
951          fstp %st(n)
952          fucom %st(n)
953          fucomp %st(n)
954    
955        All these are now generated when the fast fp mode is turned on.
956    
957    6.  Removed the dedicated registers %st(0), ..., %st(7) from X86CpsRegs
958    
959    ----------------------------------------------------------------------
960    Name: Matthias Blume
961    Date: 2000/11/09 11:20:00 JST
962    Tag: blume-20001109-scc
963    Description:
964    
965    Eliminated some code duplication:
966    
967    1. Added "where" clause to GraphSCCFn in SML/NJ Library.
968       (Otherwise the functor is useless.)
969    2. Used GraphSCCFn where SCCUtilFun was used previously.
970    3. Got rid of SCCUtilFun (in comp-lib.cm).
971    
972    ----------------------------------------------------------------------
973    Name: Lal George
974    Date: 2000/11/06 09:02:21 EST 2000
975    Tag: Release_110_30
976    Description:
977    
978    - Version 110.30
979    ----------------------------------------------------------------------
980    Name: Matthias Blume
981    Date: 2000/11/04 14:45:00
982    Tag: blume-20001104-mlbuild
983    Description:
984    
985    - Made ml-build faster on startup.
986    - Documentation fixes.
987    
988    ----------------------------------------------------------------------
989    Name: Matthias Blume
990    Date: 2000/11/02 17:00:00 JST
991    Tag: blume-20001102-condcomp
992    Description:
993    
994    - Small tweaks to pickler -- new BOOTFILES!
995    - Version bumped to 110.29.2.
996    - Added conditional compilation facility to init.cmi (see comment there).
997    ----------------------------------------------------------------------
998    Name: Allen Leung
999    Date: 2000/10/23 19:31:00
1000    Tag: leunga-20001023-demo-ra
1001    
1002    1. Minor RA changes that improves spilling on x86 (affects Moby and C-- only)
1003    2. Test programs for the graph library updated
1004    3. Some new MLRISC demo programs added
1005    
1006    ----------------------------------------------------------------------
1007    Name: Matthias Blume
1008    Date: 2000/08/31 22:15:00 JST
1009    Tag: blume-20001017-errmsg
1010    Description:
1011    
1012    More error message grief: Where there used to be no messages, there
1013    now were some that had bogus error regions.  Fixed.
1014    
1015    ----------------------------------------------------------------------
1016    Name: Matthias Blume
1017  Date: 2000/08/31 17:30:00 JST  Date: 2000/08/31 17:30:00 JST
1018  Tag: blume-20001017-v110p29p1  Tag: blume-20001017-v110p29p1
1019  Description:  Description:

Legend:
Removed from v.710  
changed lines
  Added in v.852

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