|How To Design A Code Generator email@example.com (Christian Parpart) (2002-03-17)|
|Re: How To Design A Code Generator firstname.lastname@example.org (Pietro) (2002-03-19)|
|Re: How To Design A Code Generator email@example.com (Dobes Vandermeer) (2002-03-21)|
|Re: How To Design A Code Generator firstname.lastname@example.org (Christian Parpart) (2002-03-21)|
|From:||Christian Parpart <email@example.com>|
|Date:||21 Mar 2002 22:03:09 -0500|
|Posted-Date:||21 Mar 2002 22:03:09 EST|
Pietro inspired the electrons to say:
> Christian Parpart wrote:
>> I was wondering if someone can tell me some information about
>> code generators and its design. We're currently developing our
> I advice you to read the Go4's "Design Patter" book. In Particular the
> visitor pattern come with a really helpful example about code generator
I've already read that book, "Design Patterns". And it really helped
for our Compiler Backend Library and its high-level code tree
Now we need to implement low-level code generation, that means. We
need an abstract layer for generation binary(i386/sparc/...) and
assembler (intel/at&t/...) and for the ABI (ELF,A/OUT/Win32EXE/...).
But this is a little problem for me since I've never written any code
generation tool. I am looking a something like this I want to write
just to take a look at it to get a point to start. I've already
written in assembler (intel style), so I do know (just) basic thinks
how I'd implement such abstract interfaces.
Does anyone have such informations? Or is this, what I'd like to
implement, the first library who should do this?
thanks in advance,
http://www.surakware.net/projects/libcbl/ (project page)
Return to the
Search the comp.compilers archives again.