This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A FrontEnd in C++?
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Pop Sébastian <pop at gauvain dot u-strasbg dot fr>
- Cc: Michael Matz <matz at suse dot de>,Zack Weinberg <zack at codesourcery dot com>, <gcc at gcc dot gnu dot org>
- Date: Thu, 22 Aug 2002 23:18:51 -0400 (EDT)
- Subject: Re: A FrontEnd in C++?
- Reply-to: dberlin at dberlin dot org
On Thu, 22 Aug 2002, [iso-8859-1] Pop Sébastian wrote:
> Hi,
>
> 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++.
> >
> > You can't believe how nice it is to just simply be able to do things like
> > std::set<tree>, etc.
> > It seems trivial, but it's really a lot nicer to work with classes.
> >
>
> Why not beginning to write the AST optimizer in C++?
I was under the impression it would be rejected (IE never be accepted in
the maniline), so i never took it further.
>
> The AST optimizer is not needed for building the C, nor the C++ compiler,
> but once g++ is built we could build the AST optimizer.
Sure, I knew this, but I still felt it wouldn't be accepted because of the
associated stigma writing non-C seems to have in the GCC development
world.
:)