|[5 earlier articles]|
|Re: Incremental Compilers HSauro@fssc.demon.co.uk (Herbert M Sauro) (2000-05-12)|
|Re: Incremental Compilers email@example.com (Mike Kent) (2000-05-12)|
|Re: Incremental compilers brunix!apollo!alan (Alan Lehotsky) (1986-09-18)|
|Incremental compilers firstname.lastname@example.org (1989-01-24)|
|Re: Incremental compilers email@example.com (Paul Fuqua) (1989-01-15)|
|Re: Incremental compilers rogerson@PEDEV.Columbia.NCR.COM (1989-01-26)|
|Re: Incremental Compilers firstname.lastname@example.org (Nick Rothwell) (1989-01-27)|
|From:||Nick Rothwell <email@example.com>|
|Date:||Fri, 27 Jan 89 11:09:06 GMT|
Charlie D. Havener (firstname.lastname@example.org) writes:
>I would like to stimulate some discussion in this group about incremental
>compilers and fine grained interpreters for block structured languages. Fine
>grain means it incrementally changes the compiled or interpretive code ( like
>reverse polish ) on a line by line basis instead of a file basis.
>Does anyone know of other examples of fine grained
>incremental compilers or interpreters?
I presume that an interpreter for a (block structured) expression-based
language would fit your criterion - or are you thinking of a situation
where *a part* of a complete object (say, one line of a procedure) can
be compiled and replaced in isolation?
Standard ML does incremental compilation (as do many interactive
systems) - expressions/declarations are compiled into functions which
the compiler can then call like any other function, to evaluate them.
Interestingly, the code generator itself does *not* require any
nonstandard features of the language or host system: it is simply a
function from lambda-expressions (an intermediate representation) to
strings, the string containing the correct machine opcodes. There's a
simple bootstrap call to turn a string into a function with that
string's contents as code. ML is statically scoped, so there isn't
really a concept of "replacement" of code - recompiled
functions/modules supercede existing ones for subsequent declarations;
the old declarations vanish by garbage collection as they disappear
from the symbol table.
Perhaps this is veering from your original subject area. I'll gladly
go into further details if there's interest.
Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh.
email@example.com <Atlantic Ocean>!mcvax!ukc!lfcs!nick
Return to the
Search the comp.compilers archives again.