This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A FrontEnd in C++?
On Thu, Aug 22, 2002 at 04:11:02PM -0400, Diego Novillo wrote:
> On Thu, 2002-08-22 at 16:03, Pop Sébastian wrote:
>
> > On Wed, Aug 21, 2002 at 02:50:47PM -0400, Daniel Berlin wrote:
> > > >
> > > > P.S.: I even thought sometimes about (re)writing some of the optimizations
> > > > in C++.
> > >
> > > I've actually started doing it many times.
> > > In particular, i've still got the start of an interprocedural middle-end
> > > (IE takes trees from many modules) written in C++.
> > >
> >
> > Why not beginning to write the AST optimizer in C++?
> >
> Go right ahead. All you need is a new branch and some free time. I
> would personally suggest following some of the design and implementation
> ideas from SUIF and/or Sage++. They are kind of neat.
>
Thanks for this suggestion.
I thought also to SGI's open64 compiler on which I currently work.
Its architecture is composed of the C/C++ front-ends comming from GCC
and a back-end that uses the WHIRL representation. The whole back-end
is written in C++.