This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Putting C++ code into gcc front end
- From: dewar at gnat dot com (Robert Dewar)
- To: guerby at acm dot org, neil at daikokuya dot co dot uk
- Cc: bosch at gnat dot com, gcc at gcc dot gnu dot org, geoffk at geoffk dot org,per at bothner dot com, tromey at redhat dot com
- Date: Sat, 8 Mar 2003 12:37:54 -0500 (EST)
- Subject: Re: Putting C++ code into gcc front end
> May be it's because the Ada front-end has been ported to another backend
> for JGNAT (Java bytecode backend). This kind of effort forces its share
> of middle-end semantics cleanup. (I haven't got the time yet to look
> at the CLI/C# one).
Reasonable guess, but not at all real history. The JGNAT work involved very
few changes to the semantics, and what changes there are are defcinitely
not cleanups (well there are a few exceptions, but not many).
> IMO Ada has the best and cleanest GCC front end, despite being I think
> the biggest. I wonder if the fact that it has its own representation
> is just a coincidence.
I don't know the other front ends well enough, and I know the GNAT front end
far too well, to make any comment on the first sentence, though we do put
a huge effort into keeping the code clean. I think the rigorous
adherence to the RM terminology and structure is very valuable.