Re: minimal c/pascal self-compiling compilers

Nils M Holm <nmh@dialup.nacamar.de>
7 Dec 2000 00:53:24 -0500

          From comp.compilers

Related articles
minimal c/pascal self-compiling compilers ed_davis@my-deja.com (Ed Davis) (2000-12-06)
Re: minimal c/pascal self-compiling compilers nmh@dialup.nacamar.de (Nils M Holm) (2000-12-07)
Re: minimal c/pascal self-compiling compilers franck.pissotte@free.fr (Franck Pissotte) (2000-12-08)
Re: minimal c/pascal self-compiling compilers franck.pissotte@free.fr (Franck Pissotte) (2000-12-18)
| List of all articles for this month |

From: Nils M Holm <nmh@dialup.nacamar.de>
Newsgroups: comp.compilers
Date: 7 Dec 2000 00:53:24 -0500
Organization: Compilers Central
Keywords: Pascal, available
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).


Bye,
nmh.
--
Nils M Holm <nmh@t3x.org> -- http://www.t3x.org/


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.