|minimal c/pascal self-compiling compilers email@example.com (Ed Davis) (2000-12-06)|
|Re: minimal c/pascal self-compiling compilers firstname.lastname@example.org (Nils M Holm) (2000-12-07)|
|Re: minimal c/pascal self-compiling compilers email@example.com (Franck Pissotte) (2000-12-08)|
|Re: minimal c/pascal self-compiling compilers firstname.lastname@example.org (Franck Pissotte) (2000-12-18)|
|From:||Nils M Holm <email@example.com>|
|Date:||7 Dec 2000 00:53:24 -0500|
|Posted-Date:||07 Dec 2000 00:53:23 EST|
On 6 Dec 2000, Ed Davis wrote:
> Any other small, self-compiling, C or Pascal like compilers out there?
Time for another shameless plug. ;-)
You may take a took at T3X. It is the result of an attempt to create a
usable minimum procedural language. It is not *too* Pascal-like, but it
is small and capable of compiling itself.
The frontend, which compiles T3X to bytecode, has a size of 2312 lines
including blank lines, comments, etc. This part of the compiler is
sufficient to create a bytecode version of itself.
The T3X->bytecode translator includes support for separate compilation
and (very basic) object-oriented extensions.
Optionally, native code backends can be added. The full compiler including
linker, optimizer, and 386-backend has a size of about 5000 lines. Of
course, it can also compile itself.
The T3X homepage (see signature) also contains a quite old version of
the compiler, which has a size of ~1200 lines (plus about 750 lines for
a bytecode->DOS/COM translator).
Nils M Holm <firstname.lastname@example.org> -- http://www.t3x.org/
Return to the
Search the comp.compilers archives again.