|Reatrgetable Compilers firstname.lastname@example.org (Perseus Patrawala) (2005-01-22)|
|Re: Reatrgetable Compilers email@example.com (2005-01-24)|
|Re: Reatrgetable Compilers firstname.lastname@example.org (Ivan A. Kosarev) (2005-02-03)|
|From:||email@example.com (Anton Ertl)|
|Date:||24 Jan 2005 10:58:12 -0500|
|Organization:||Institut fuer Computersprachen, Technische Universitaet Wien|
|Posted-Date:||24 Jan 2005 10:58:12 EST|
Perseus Patrawala <firstname.lastname@example.org> writes:
>Can anybody help me out as to what lines to follow, or if there are
>any freeware tools that can be used to implement the various stages,
>or some source codes and pre existing retargetable compilers that I
>can study and follow up on.
I would take a look at lcc (there's a book about that) or ocaml as
examples of how it can be done; if you want more optimization, gcc is
an example, but it's harder to understand.
If you are interested in techniques for retargetable run-time code
generation, look at QEMU and GNU Lightning.
As for tools, you could look at stuff like Christian Collberg's ADT.
The alternative approach is, of course, to first go for portability by
writing an interpreter, and then increasing the speed of that. Read
some of my work for that.
M. Anton Ertl
Return to the
Search the comp.compilers archives again.