Related articles |
---|
Coding a translator between languages with high abstraction levels alfonso.acosta@gmail.com (Alfonso Acosta) (2006-11-08) |
Re: Coding a translator between languages with high abstraction levels DrDiettrich1@aol.com (Hans-Peter Diettrich) (2006-11-08) |
Re: Coding a translator between languages with high abstraction levels p_ludemann@yahoo.com (Peter Ludemann) (2006-11-10) |
Re: Coding a translator between languages with high abstraction levels cdiggins@gmail.com (Christopher Diggins) (2006-11-10) |
From: | "Alfonso Acosta" <alfonso.acosta@gmail.com> |
Newsgroups: | comp.compilers |
Followup-To: | comp.compilers |
Date: | 8 Nov 2006 00:18:14 -0500 |
Organization: | Compilers Central |
Keywords: | translator, question, comment |
Posted-Date: | 08 Nov 2006 00:18:14 EST |
Hi all,
I'm a computer science engineering student, writing his masters thesis
about a VHDL translator for ForSyDe
(http://www.imit.kth.se/info/FOFU/ForSyDe/ , a Hardware Description
Language embedded in Haskell, http://www.haskell.org/ ).
I don't have much experience in compiler design and development apart
from a toy Pascal compiler I had to code for an undergraduate compiler
course.
In order to get part of the work for free I decided to design the
translator as a Haskell compiler backend (ForSyDe is just Haskell
after all), which would allow me to start the translation at the
chosen compiler intermidate representation and only leaving
code-generation left.
I haven't gone through many compiler articles and books (mainly Aho's
book) but they are all cover compiling to low level, assembly or
machine languages. Contrary to what is covered in those
books/articles, I don't have to deal with low level problems
(e.g. register and stack variables allocation), the main problem for
me is dealing with the target language, due to the differences with
the original language.
Can anyone recommend any books/articles which cover translation
between high level languages? Pointing to an open source project with
similar characteristics would also be helpful.
Thanks in advance,
Alfonso Acosta
[In my experience, code generation for high level translators isn't
very different from generating assembler. Constructs that seem the
same always turn out to be just different enough that you have to do
grotty detailed stuff to get the semantics right. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.