Re: Reatrgetable Compilers

anton@mips.complang.tuwien.ac.at (Anton Ertl)
24 Jan 2005 10:58:12 -0500

          From comp.compilers

Related articles
Reatrgetable Compilers p.patrawala@gmail.com (Perseus Patrawala) (2005-01-22)
Re: Reatrgetable Compilers anton@mips.complang.tuwien.ac.at (2005-01-24)
Re: Reatrgetable Compilers ikosarev@online.ru (Ivan A. Kosarev) (2005-02-03)
| List of all articles for this month |

From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.compilers
Date: 24 Jan 2005 10:58:12 -0500
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
References: 05-01-066
Keywords: tools
Posted-Date: 24 Jan 2005 10:58:12 EST



Perseus Patrawala <p.patrawala@gmail.com> 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.


- anton
--
M. Anton Ertl
anton@mips.complang.tuwien.ac.at
http://www.complang.tuwien.ac.at/anton/home.html


Post a followup to this message

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