On Wed, 6 Apr 2011, Basile Starynkevitch wrote: > On Wed, 6 Apr 2011 20:49:32 +0500 > "Levon Haykazyan" <le...@rock.com> wrote: > > Thank you for your answer. I though I should ask GSoC related questions > > here. Anyhow, I am interested, and for me that's enough to implement it. > > But I decided to write the entire compiler from scratch. I couldn't > > resist writing a compiler in the same language :) > > You probably could write the front-end part of your compiler in Oberon, > and generate Gimple representation (perhaps even in textual form, since > some people are working on a Gimple "front-end"). You then win all the > optimization & code generation abilities of GCC.
If you want to merge the code into GCC, I don't think using textual GIMPLE is a good approach; you should use the normal GIMPLE APIs in GCC. But writing the main part of the front end in its own language, as is done for Ada (and I think for the Modula-2 front end, another out-of-tree front end), is fine. -- Joseph S. Myers jos...@codesourcery.com