--- sml/trunk/HISTORY 2001/01/12 14:06:33 778 +++ sml/trunk/HISTORY 2001/09/20 21:20:28 937 @@ -11,6 +11,1073 @@ Date: Tag: Description: + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/09/20 17:20:00 EDT +Tag: blume-20010920-canonicalpaths +Description: + +0. Updated the BOOT file (something that I forgot to do earlier). + +1. Small internal change to CM so that it avoids "/../" in filenames + as much as possible (but only where it is safe). + +2. Changed config/_run-sml (resulting in a changed bin/.run-sml) so + that arguments that contain delimiters are passed through correctly. + This change also means that all "special" arguments of the form + @SMLxxx... must come first. + +3. Changed install script to put relative anchor names for tool commands + into pathconfig. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/09/18 15:35:00 EDT +Tag: blume-20010918-readme11036 +Description: + +Added README files. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/09/18 11:45:00 EDT +Tag: Release_110_36 (retag) +Description: + +Fixed mistake in config/preloads. Retagged as 110.36. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/09/18 09:40:00 EDT +Tag: Release_110_36_orig (tag changed) +Description: + +New version (110.36). New bootfiles. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/09/14 16:15:00 EDT +Tag: blume-20010914-x86fastfp +Description: + +John committed some changes that Allen made, in particular a (hopefully) +correctly working version of the x86-fp module. + +I changed the default setting of the Control.MLRISC.getFlag "x86-fast-fp" +flag to "true". Everything seems to compile to a fixpoint ok, and +"mandelbrot" speeds up by about 15%. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/09/13 11:20:00 EDT +Tag: blume-20010913-minimal +Description: + +1. Stefan Monnier's patch to fix a miscompilation problem that + was brought to light by John Reppy's work on Moby. + +2. Implemented a minimal "structure Compiler" that contains just + "version" and "architecture". The minimal version will be + available when the full version is not. This is for backward- + compatibility with code that wants to test Compiler.version. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/28 14:03:00 EDT +Tag: blume-20010828-ml-lex +Description: + +Fix for bug 1581, received from Neophytos Michael. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/27 11:20:00 EDT +Tag: blume-20010827-readme11035 +Description: + +Fleshed out the README file for 110.35. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/24 17:10:00 EDT +Tag: Release_110_35 +Description: + +New version number (110.35). New bootfiles. + +---------------------------------------------------------------------- +Name: Lal George +Date: 2001/08/24 13:47:18 EDT 2001 +Tag: george-20010824-MLRISC-graphs +Description: + + removed clusters from MLRISC completely and replaced with graphs. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/23 17:50:00 EDT +Tag: blume-20010823-toplevel +Description: + +- some reorganization of the code that implements various kinds of + environments in the compiler (static, dynamic, symbolic, combined) +- re-implemented the EnvRef module so that evalStream works properly + (if the stream contains references to "use", "CM.make", etc.) +- cleaned up evalloop.sml and interact.sml (but they need more cleaning) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/20 15:50 EDT +Tag: blume20010820-slipup +Description: + +I forgot to commit a few files. Here they are... + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/20 15:35:00 EDT +Tag: blume-20010820-debugprof +Description: + +!!!! NEW BOOTFILES !!!! + +This is another round of reorganizing the compiler sources. This +time the main goal was to factor out all the "instrumentation" +passes (for profiling and backtracing) into their own library. +The difficulty was to do it in such a way that it does not depend +on elaborate.cm but only on elabdata.cm. + +Therefore there have been further changes to both elaborate.cm and +elabdata.cm -- more "generic" things have been moved from the former +to the latter. As a result, I was forced to split the assignment +of numbers indicating "primtyc"s into two portions: SML-generic and +SML/NJ-specific. Since it would have been awkward to maintain, +I bit the bullet and actually _changed_ the mapping between these +numbers and primtycs. The bottom line of this is that you need +a new set of bin- and bootfiles. + +I have built new bootfiles for all architectures, so doing a fresh +checkout and config/install.sh should be all you need. + +The newly created library's name is + + $smlnj/viscomp/debugprof.cm + +and its sources live under + + src/compiler/DebugProf + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/15 17:15:00 EDT +Tag: blume-20010815-compreorg +Description: + +This is a first cut at reorganizing the CM libraries that make up the +core of the compiler. The idea is to separate out pieces that could +be used independently by tools, e.g., the parser, the typechecker, etc. + +The current status is a step in this direction, but it is not quite +satisfactory yet. Expect more changes in the future. + +Here is the current (new) organization... + + What used to be $smlnj/viscomp/core.cm is now divided into + six CM libraries: + + $smlnj/viscomp/basics.cm + /parser.cm + /elabdata.cm + /elaborate.cm + /execute.cm + /core.cm + + The CM files for these libraries live under src/system/smlnj/viscomp. + All these libraries are proxy libraries that contain precisely + one CM library component. Here are the locations of the components + (all within the src/compiler tree): + + Basics/basics.cm + Parse/parser.cm + ElabData/elabdata.cm + Elaborator/elaborate.cm + Execution/execute.cm + core.cm + + [This organization is the same that has been used already + for a while for the architecture-specific parts of the visible + compiler and for the old version of core.cm.] + + As you will notice, many source files have been moved from their + respective original locations to a new home in one of the above + subtrees. + + The division of labor between the new libraries is the following: + + basics.cm: + - Simple, basic definitions that pertain to many (or all) of + the other libraries. + parser.cm: + - The SML parser, producing output of type Ast.dec. + - The type family for Ast is also defined and exported here. + elabdata.cm: + - The datatypes that describe input and output of the elaborator. + This includes types, absyn, and static environments. + elaborator.cm: + - The SML/NJ type checker and elaborator. + This maps an Ast.dec (with a given static environment) to + an Absyn.dec (with a new static environment). + - This libraries implements certain modules that used to be + structures as functors (to remove dependencies on FLINT). + execute.cm: + - Everything having to do with executing binary code objects. + - Dynamic environments. + core.cm: + - SML/NJ-specific instantiations of the elaborator and MLRISC. + - Top-level modules. + - FLINT (this should eventually become its own library) + +Notes: + +I am not 100% happy with the way I separated the elaborator (and its +data structures) from FLINT. Two instances of the same problem: + + 1. Data structures contain certain fields that carry FLINT-specific + information. I hacked around this using exn and the property list + module from smlnj-lib. But the fact that there are middle-end + specific fields around at all is a bit annoying. + + 2. The elaborator calculates certain FLINT-related information. I tried + to make this as abstract as I could using functorization, but, again, + the fact that the elaborator has to perform calculations on behalf + of the middle-end at all is not nice. + + 3. Having to used exn and property lists is unfortunate because it + weakens type checking. The other alternative (parameterizing + nearly *everything*) is not appealing, though. + +I removed the "rebinding =" warning hack because due to the new organization +it was awkward to maintain it. As a result, the compiler now issues some of +these warnings when compiling init.cmi during bootstrap compilation. On +the plus side, you also get a warning when you do, for example: + val op = = Int32.+ +which was not the case up to now. + +I placed "assign" and "deref" into the _Core structure so that the +code that deals with the "lazy" keyword can find them there. This +removes the need for having access to the primitive environment +during elaboration. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/08/13 +Tag: blume-20010813-closures +Description: + +This fix was sent to us by Zhong Shao. It is supposed to improve the +performance of certain loops by avoiding needless closure allocation. + +---------------------------------------------------------------------- +Name: Lal George +Date: 2001/07/31 10:03:23 EDT 2001 +Tag: george-20010731-x86-fmalloc +Description: Fixed bug in x86 calls + + There was a bug where call instructions would mysteriously + vanish. The call instruction had to be one that returned + a floating point value. + +---------------------------------------------------------------------- +Name: Lal George +Date: 2001/07/19 16:36:29 EDT 2001 +Tag: george-20010719-simple-cells +Description: + +I have dramatically simplified the interface for CELLS in MLRISC. + +In summary, the cells interface is broken up into three parts: + + 1. CellsBasis : CELLS_BASIS + + CellsBasis is a top level structure and common for all + architectures. it contains the definitions of basic datatypes + and utility functions over these types. + + 2. functor Cells() : CELLS + + Cells generates an interface for CELLS that incorporates the + specific resources on the target architecture, such as the + presence of special register classes, their number and size, + and various useful substructures. + + 3. CELLS + + e.g. SparcCells: SPARCCELLS + + CELLS usually contains additional bindings for special + registers on the architecture, such as: + + val r0 : cell (* register zero *) + val y : cell (* Y register *) + val psr : cell (* processor status register *) + ... + + The structure returned by applying the Cells functor is opened + in this interface. + +The main implication of all this is that the datatypes for cells is +split between CellsBasis and CELLS -- a fairly simple change for user +code. + +In the old scheme the CELLS interface had a definitional binding of +the form: + + signature CELLS = sig + + structure CellsBasis = CellsBasis + + ... + + end + +With all the sharing constraints that goes on in MLRISC, this old +design quickly leads to errors such as: + + "structure definition spec inside of sharing ... " + + +and appears to require an unacceptable amount of sharing and where +constraint hackery. + +I think this error message (the interaction of definitional specs and +sharing) requires more explanation on our web page. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/07/19 15:00:00 EDT +Tag: blume-20010719-libreorg +Description: + +This update puts together a fairly extensive but straightforward change +to the way the libraries that implement the interactive system are +organized: + + The biggest change is the elimination of structure Compiler. As a + replacement for this structure, there is now a CM library + (known as $smlnj/compiler.cm or $smlnj/compiler/current.cm) + that exports all the substructures of the original structure Compiler + directly. So instead of saying Compiler.Foo.bar one now simply + says Foo.bar. (The CM libraries actually export a collection of + structures that is richer than the collection of substructures of + structure Compiler.) + + To make the transition smooth, there is a separate library called + $smlnj/compiler/compiler.cm which puts together and exports the + original structure Compiler (or at least something very close to it). + + There are five members of the original structure Compiler + that are not exported directly but which instead became members + of a new structure Backend (described by signature BACKEND). These are: + structure Profile (: PROFILE), structure Compile (: COMPILE), structure + Interact (: INTERACT), structure Machine (: MACHINE), and val + architecture (: string). + + Structure Compiler.Version has become structure CompilerVersion. + + Cross-compilers for alpha32, hppa, ppc, sparc, and x86 are provided + by $smlnj/compiler/.cm where is alpha32, hppa, ppc, sparc, + or x86, respectively. + Each of these exports the same frontend structures that + $smlnj/compiler.cm exports. But they do not have a structure Backend + and instead export some structure Backend where is Alpha32, + Hppa, PPC, Sparc, or X86, respectively. + + Library $smlnj/compiler/all.cm exports the union of the exports of + $smlnj/compiler/.cm + + There are no structures Compiler anymore, use + $smlnj/compiler/.cm instead. + + Library host-compiler-0.cm is gone. Instead, the internal library + that instantiates CM is now called cm0.cm. Selection of the host + compiler (backend) is no longer done here but. (Responsibility for it + now lies with $smlnj/compiler/current.cm. This seems to be more + logical.) + + Many individual files have been moved or renamed. Some files have + been split into multiple files, and some "dead" files have been deleted. + +Aside from these changes to library organization, there are also changes +to the way the code itself is organized: + + Structure Binfile has been re-implemented in such a way that it no + longer needs any knowledge of the compiler. It exclusively deals + with the details of binfile layout. It no longer invokes the + compiler (for the purpose of creating new prospective binfile + content), and it no longer has any knowledge of how to interpret + pickles. + + Structure Compile (: COMPILE) has been stripped down to the bare + essentials of compilation. It no longer deals with linking/execution. + The interface has been cleaned up considerably. + + Utility routines for dealing with linking and execution have been + moved into their own substructures. + + (The ultimate goal of these changes is to provide a light-weight + binfile loader/linker (at least for, e.g., stable libraries) that + does not require CM or the compiler to be present.) + +CM documentation has been updated to reflect the changes to library +organization. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/07/10 17:30:00 EDT +Tag: Release_110_34 +Description: + +Minor tweak to 110.34 (re-tagged): + + - README.html file added to CVS repository + - runtime compiles properly under FreeBSD 3.X and 4.X + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/07/10 17:30:00 EDT +Tag: Release_110_34 +Description: + +New version number (110.34). New bootfiles. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/07/09 16:00:00 EDT +Tag: blume-20010709-more-varargs +Description: + +I changed the handling of varargs in ml-nlffigen again: +The ellipsis ... will now simply be ignored (with an accompanying warning). + +The immediate effect is that you can actually call a varargs function +from ML -- but you can't actually supply any arguments beyond the ones +specified explicitly. (For example, you can call printf with its format +string, but you cannot pass additional arguments.) + +This behavior is only marginally more useful than the one before, but +it has the advantage that a function or, more importantly, a function +type never gets dropped on the floor, thus avoiding follow-up problems with +other types that refer to the offending one. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/07/09 11:25:00 EDT +Tag: blume-20010709-varargs +Description: + +1. ckit-lib.cm now exports structure Error +2. ml-nlffigen reports occurences of "..." (i.e., varargs function types) + with a warning accompanied by a source location. Moreover, it + merely skips the offending function or type and proceeds with the + rest of its work.u As a result, one can safely feed C code containing + "..." to ml-nlffigen. +3. There are some internal improvements to CM, providing slightly + more general string substitutions in the tools subsystem. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/27 15:10:00 EDT +Tag: blume-20010627-concur +Description: + +Fixed a small bug in CM's handling of parallel compilation. +(You could observe the bug by Control-C-interrupting an ordinary +CMB.make or CM.stabilize and then attaching some compile servers. +The result was that all of a sudden the previously interrupted +compilation would continue on its own. This was because of +an over-optimization: CM did not bother to clean out certain queues +when no servers were attached "anyway", resulting in the contents +of these queues to grab control when new servers did get attached.) + +There is also another minor update to the CM manual. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/26 16:15:00 EDT +Tag: blume-20010626-cmdoc +Description: + +Minor typo fixed in CM manual (syntax diagram for libraries). + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/25 22:55:00 EDT +Tag: blume-20010625-x86pc +Description: + +Fixed a nasty bug in the X86 assembly code that caused signal +handlers to fail (crash) randomly. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/25 12:05:00 EDT +Tag: blume-20010625-nlffigen +Description: + +This update fixes a number of minor bugs in ml-nlffigen as reported by +Nick Carter . + + 1. Silly but ok typedefs of the form "typedef void myvoid;" are now accepted. + 2. Default names for generated files are now derived from the name of + the C file *without its directory*. In particular, this causes generated + files to be placed locally even if the C file is in some system directory. + 3. Default names for generated signatures and structures are also derived + from the C file name without its directory. This avoids silly things + like "structure GL/GL". + (Other silly names are still possible because ml-nlffigen does not do + a thorough check of whether generated names are legal ML identifiers. + When in doubt, use command line arguments to force particular names.) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/21 12:25:00 EDT +Tag: blume-20010621-eXene +Description: + +eXene now compiles and (sort of) works again. + +The library name (for version > 110.33) is $/eXene.cm. + +I also added an new example in src/eXene/examples/nbody. See the +README file there for details. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/20 16:40:00 EDT +Tag: blume-20010620-cml +Description: + +CML now compiles and works again. + +Libraries (for version > 110.33): + + $cml/cml.cm Main CML library. + $cml/basis.cm CML's version of $/basis.cm. + $cml/cml-internal.cm Internal helper library. + $cml/core-cml.cm Internal helper library. + $cml-lib/trace-cml.cm Tracing facility. + $cml-lib/smlnj-lib.cm CML's version of $/smlnj-lib.cm + +The installer (config/install.sh) has been taught how to properly +install this stuff. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/19 17:55:00 EDT +Tag: blume-20010619-instantiate +Description: + +This un-breaks the fix for bug 1432. +(The bug was originally fixed in 110.9 but I broke it again some +time after that.) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/19 17:25:00 EDT +Tag: blume-20010619-signals +Description: + +This should (hopefully) fix the long-standing signal handling bug. +(The runtime system was constructing a continuation record with an +incorrect descriptor which would cause the GC to drop data on the floor...) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/15 15:05:00 EDT +Tag: blume-20010615-moresparc +Description: + +Here is a short late-hour update related to Sparc c-calls: + + -- made handling of double-word arguments a bit smarter + + -- instruction selection phase tries to collapse certain clumsily + constructed ML-Trees; typical example: + + ADD(ty,ADD(_,e,LI d1),LI d2) -> ADD(ty,e,LI(d1+d2)) + + This currently has no further impact on SML/NJ since mlriscGen does + not seem to generate such patterns in the first place, and c-calls + (which did generate them in the beginning) has meanwhile been fixed + so as to avoid them as well. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/15 15:05:00 EDT +Tag: blume-20010615-sparc +Description: + +The purpose of this update is to provide an implementation of NLFFI +on Sparc machines. + +Here are the changes in detail: + + * src/MLRISC/sparc/c-calls/sparc-c-calls.sml is a new file containing + the Sparc implementation of the c-calls API. + * The Sparc backend of SML/NJ has been modified to uniformely use %fp + for accessing the ML frame. Thus, we have a real frame pointer and + can freely modify %sp without need for an omit-frame-ptr phase. + The vfp logic in src/compiler/CodeGen/* has been changed to accomodate + this case. + * ml-nlffigen has been taught to produce code for different architectures + and calling conventions. + * In a way similar to what was done in the x86 case, the Sparc + backend uses its own specific extension to mltree. (For example, + it needs to be able to generate UNIMP instructions which are part + of the calling convention.) + * ml-nlffi-lib was reorganized to make it more modular (in particular, + to make it easier to plug in new machine- and os-dependent parts). + +There are some other fairly unrelated bug fixes and cleanups as well: + + * I further hacked the .cm files for MLRISC tools (like MDLGen) so + that they properly share their libraries with existing SML/NJ libraries. + * I fixed a minor cosmetic bug in CM, supressing certain spurious + follow-up error messages. + * Updates to CM/CMB documentation. + +TODO items: + + * MLRISC should use a different register as its asmTemp on the Sparc. + (The current %o2 is a really bad choice because it is part of the + calling conventions, so things might interfere in unexpected ways.) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/07 +Tag: blume-20010607-calls +Description: + +A number of internal changes related to C calls and calling conventions: + +1. ML-Tree CALL statements now carry a "pops" field. It indicates the + number of bytes popped implicitly (by the callee). In most cases + this field is 0 but on x86/win32 it is some non-zero value. This + is information provided for the benefit of the "omit-frameptr" pass. +2. The CALL instruction on the x86 carries a similar "pops" field. + The instruction selection phase copies its value from the ML-Tree + CALL statement. +3. On all other architectures, the instruction selection phase checks + whether "pops=0" and complains if not. +4. The c-calls implementation for x86 now accepts two calling conventions: + "ccall" and "stdcall". When "ccall" is selected, the caller cleans + up after the call and pops is set to 0. For "stdcall", the caller + does nothing, leaving the cleanup to the callee; pops is set to + the number of bytes that were pushed onto the stack. +5. The cproto decoder (compiler/Semant/types/cproto.sml) now can + distinguish between "ccall" and "stdcall". +6. The UNIMP instruction has been added to the supported Sparc instruction + set. (This is needed for implementing the official C calling convention + on this architecture.) +7. I fixed some of the .cm files under src/MLRISC/Tools to make them + work with the latest CM. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/05 15:10:00 EDT +Tag: blume-20010605-cm-index +Description: + +0. The "lambdasplit" parameter for class "sml" in CM has been documented. + +1. CM can now generate "index files". These are human-readable files + that list on a per-.cm-file basis each toplevel symbol defined or + imported. The location of the index file for +

/.cm is

/CM/INDEX/.cm. + To enable index-file generation, set CM.Control.generate_index to true + or export an environment-symbol: export CM_GENERATE_INDEX=true. + + The CM manual has been updated accordingly. + +2. I made some slight modifications to the c-calls API in MLRISC. + + a) There is now a callback to support saving/restoring of + dedicated but caller-save registers around the actual call + instruction. + b) One can optionally specify a comment-annotation for the + call instruction. + +3. SML/NJ (mlriscGen.sml) uses this new API for the rawccall primop. + (For example, the comment annotation shows the C prototype of + the function being called.) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/06/01 13:30:00 EDT +Tag: blume-20010601-nlffi-cleanup +Description: + +This is mostly a cleanup of MLFFI stuff: + + - some signature files have been put into a more exposed place + - the ugly 'f type parameter is gone (simplifies types tremendously!) + - ml-nlffigen changed accordingly + - tutorial updated + +Other changes: + + - author's affiliation in CM manual(s) updated + - some more recognized keywords added to Allen's sml.sty + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/25 15:30:00 EDT +Tag: blume-20010525-iptr +Description: + + - put the official 110.33-README (as it appears on the ftp server) under + CVS + - fixed a small bug related to incomplete pointer types in + ml-nlffigen + - small cosmetic change to the ml-nlffi-lib's "arr" type constructor + (it does not need the 'f type parameter) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/23 14:30:00 EDT +Tag: Release_110_33 +Description: + +New version number (110.33). New bootfiles. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/22 18:06:00 EDT +Tag: blume-20010522-targets +Description: + +Made install.sh use file config/targets.customized if it exists, falling +back to config/targets if it doesn't. This way one can have a customized +version of the targets file without touching the "real thing", thus +eliminating the constant fear of accidentally checking something bogus +back into the CVS repository... (File config/targets.customized must +not be added to the repository!) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/22 16:30:00 EDT +Tag: blume-20010522-minitut +Description: + +1. Bug fix in ml-nlffigen; now (hopefully) correctly handling + struct returns. +2. Added src/ml-nlffi-lib/Doc/mini-tutorial.txt. This is some very + incomplete, preliminary documentation for NLFFI. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/14 11:30:00 EDT +Tag: blume-20010514-script +Description: + +Some bugs in install script fixed. + +In addition to that I also made a slight change to the NLFFI API: +Functors generated by ml-nlffigen now take the dynamic library as a +straight functor argument, not as a suspended one. (The original +functor code used to force the suspension right away anyway, so there +was nothing gained by this complication of the interface.) + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/11 14:35:00 EDT +Tag: blume-20010511-ml-nlffi +Description: + +I finally took the plunge and added my new FFI code to the main +repository. For x86-linux it is now ready for prime-time. + +There are two new subdirectories of "src": + + - ml-nlffi-lib: + The utility library for programs using the FFI interface. + Here is the implementation of $/c.cm and its associated low-level + partners $/c-int.cm and $/memory.cm. + - ml-nlffigen: + A stand-alone program for generating ML glue code from C source + code. + +Building ml-nlffigen requires $/ckit-lib.cm. + +The config/install.sh script has been updates to do the Right Thing +(hopefully). + +Notice that the source tree for the C-Kit will not be put under "src" +but directly under the installation root directory. (This is the +structure that currently exists on the CVS server when you check out +module "sml".) Fortunately, config/install.sh knows about this oddity. + +Bugs: No documentation yet. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/09 16:35:00 EDT +Tag: blume-20010509-cpscontract +Description: + +Fixed a bug in the accounting code in cpsopt/contract.sml. (The +wrapper/unwrapper elimination did not decrement usage counts and some +dead variables got overlooked by the dead-up logic.) + +---------------------------------------------------------------------- +Name: Lal George +Date: 2001/05/08 17:26:09 EDT +Tag: george-20010508-omit-frameptr +Description: + +Changes to implement the omit-frame-pointer optimization to support +raw C calls. For now, there is only support on the Intel x86, but +other architectures will follow as more experience is gained with this. + + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/07 14:40:00 EDT +Tag: blume-20010507-proxies +Description: + +I made into "proxy libraries" all libraries that qualify for such a +change. (A qualifying library is a library that has another library or +groups as its sole member and repeats that member's export list +verbatim. A proxy library avoids this repetition by omitting its export +list, effectively inheriting the list that its (only) member exports. +See the CM manual for more explanation.) +The main effect is that explicit export lists for these libraries +do not have to be kepts in sync, making maintenance a bit easier. + +I also added copyright notices to many .cm-files. + +Last but not least, I made a new set of bootfiles. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/04 17:00:00 EDT +Tag: blume-20010504-cm-lsplit +Description: + +0. John merged pending changes to $/smlnj-lib.cm + +1. Allen's previous change accidentally backed out of one of Lal's + earlier changes. I undid this mistake (re-introducing Lal's change). + +2. I used the new topOrder' function from graph-scc.sml (from $/smlnj-lib.cm) + within the compiler where applicable. There is some code simplification + because of that. + +3. The "split" phase (in FLINT) is now part of the default list of phases. + Compiler.Control.LambdaSplitting.* can be used to globally control the + lambda-splitting (cross-module-inlining) engine. In addition to that, + it can now also be controlled on a per-source basis: CM has been taught + a new tool parameter applicable to ML source files. + + - To turn lambda-splitting off completely: + local open Compiler.Control.LambdaSplitting in + val _ = set Off + end + - To make "no lambda-splitting" the global default (but allow per-source + overriding); this is the initial setting: + local open Compiler.Control.LambdaSplitting in + val _ = set (Default NONE) + end + - To make "lambda-splitting with aggressiveness a" the global default + (and allow per-source overriding): + local open Compiler.Control.LambdaSplitting in + val _ = set (Default (SOME a)) + end + + - To turn lambda-splitting off for a given ML souce file (say: a.sml) + write (in the respective .cm-file): + a.sml (lambdasplitting:off) + - To turn lambda-splitting for a.sml on with minimal aggressiveness: + a.sml (lambdasplitting:on) + - To turn lambda-splitting for a.sml on with aggressiveness (where + is a decimal non-negative integer): + a.sml (lambdasplitting:) + - To turn lambda-splitting for a.sml on with maximal aggressiveness: + a.sml (lambdasplitting:infinity) + - To use the global default for a.sml: + a.sml (lambdasplitting:default) + or simply + a.sml + +---------------------------------------------------------------------- +Name: Allen Leung +Date: 2001/05/04 01:57:00 EDT +Tag: leunga-20010504-sync +Description: + + MLRISC features. + + 1. Fix to CMPXCHG instructions. + 2. Changed RA interface to allow annotations in callbacks. + 3. Added a new method to the stream interface to allow annotations updates. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/05/01 11:45:00 EDT +Tag: blume-20010501-pcedittmp +Description: + +Changed install.sh to use the current working directory instead of +/usr/tmp for a temporary file (pcedittmp). The previous choice +of /usr/tmp caused trouble with MacOS X because of file premission +problems. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/04/20 11:10:00 EDT +Tag: blume-20010420-inMLflag +Description: + + - added vp_limitPtrMask to vproc-state.h + (for use by the raw-C-calls mechanism to implement proper interrupt + handling) + - made the ML compiler aware of various data-structure offsets so it + can generate code for accessing the vp_inML flag and vp_limitPtrMask + - tweaked mlriscGen.sml to have it emit interrupt-handling code for + raw C-calls + +---------------------------------------------------------------------- +Name: Lal George +Date: 2001/04/20 09:15:28 EDT +Tag: george-20010420-macosX +Description: + + - Changes to port to Mac OS X; Darwin. + + - In the process I found that sqrt was broken on the PPC, because the + fsqrt instruction is not implemented. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/04/18 12:45:00 EDT +Tag: blume-20010418-ccalls +Description: + + - fixed two off-by-4 errors in the x86-specific c-calls implementation + (this bug prevented structure arguments containing pointers from being + passed correctly) + - changed the raw-C-call code in mlriscGen.sml in such a way that + structure arguments are represented as a pointer to the beginning + of the structure (instead of having a series of synthesized arguments, + one for each structure member) + + - made makeml script's verbosity level configurable via environment + variable (MAKEML_VERBOSITY) + + - eliminated placeholder implementations for f32l, w16s, i16s, and f32s + in rawmem-x86.sml; we are now using the real thing + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/03/22 16:25:00 EST +Tag: blume-20010322-bootfiles +Description: + +Created a new set of bootfiles (for your automatic installation convenience). + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/03/22 15:10:00 EST +Tag: blume-20010322-rawmem-parcm +Description: + +1. All "raw memory access" primitives for the new FFI are implemented now + (at least on the x86). +2. Some further cleanup of CM's parallel make mechanism. + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/03/19 17:53:00 EST +Tag: blume-20010319-parallel +Description: + +Parallel make (using compile servers) now works again. + +To this end, CM.stabilize and CMB.make have been modified to work in +two passes when compile servers are attached: + 1. Compile everything, do not perform stabilization; this pass + uses compile servers + 2. Stabilize everything; this pass does not use compile servers +If there are no compile servers, the two passes are combined into one +(as before). Splitting the passes increases the inherent parallelism +in the dependency graph because the entire graph including all +libraries is available at the same time. This, in turn, improves +server utilization. The downside is that the master process will +have to do some extra work after compilation is done (because for +technical reasons it must re-read all the binfiles during stabilization). + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/03/16 12:22:00 EST +Tag: blume-20010316-bootfiles +Description: + +Created a new set of bootfiles (for your automatic installation convenience). + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/03/16 11:00:00 EST +Tag: blume-20010316-MLTREE-fixup +Description: + +This is a minor fixup for an (untagged) earlier commit by Allen. +(A file was missing). + +---------------------------------------------------------------------- +Name: Allen Leung +Date: Mon Mar 5 18:54:57 EST 2001 +Tag: leunga-20010305-cut-support + +1. New support for alternative control-flow in MLTREE. + Currently we support + + FLOW_TO(CALL ...., [k1,...,kn]) + + This is needed for 'cuts to' in C-- and try/handle-like constructs + in Moby + + New assembler flag "asm-show-cutsto" to turn on control-flow debugging. + +2. Register Allocator + + Changes in interface [from Fermin, John] + +3. Alpha 8-bit SLL support [Fermin] + +4. All architectures + + A new module (ClusterExpandCopies) for expanding parallel copies. + +---------------------------------------------------------------------- +Name: Allen Leung +Date: 2001/02/27 23:07:00 EST +Tag: leunga-20010227-minor-stuff + +1. Alpha bug fix for CMOVNE +2. Handle mltree COND(..,FCMP ...,...) +3. Bug fix in simplifier + +---------------------------------------------------------------------- +Name: Matthias Blume +Date: 2001/01/30 17:50:00 EST +Tag: blume-20010130-sync +Description: + +This is just a minor update to sync my devel branch with the main brach. +The only visible change is the addition of some README files. + ---------------------------------------------------------------------- Name: Matthias Blume Date: 2001/01/12 23:30:00 JST @@ -1942,7 +3009,7 @@ elaborator). There were a lot of changes during my "linkpath" trials that could have been reverted to their original state but weren't. Please, don't be too harsh on me for messing with this code a bit more - than what was strictly necessary... (I _did_ resist the tempation + than what was strictly necessary... (I _did_ resist the temptation of doing any "global reformatting" to avoid an untimely death at Dave's hands. :)

Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: tation of doing any "global reformatting" to avoid an untimely death at Dave's hands. :)