This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Idea about Documenting and Compiling egcs in C++.


martin@mira.isdn.cs.tu-berlin.de (Martin v. Loewis) writes:
> 
> > 1. Get the Compiler to self-host itself in C++ mode.
> > 2. Build a C++ Wrapper Class for the Tree Structure,
> >    one that would allow an object oriented interface to the Parsers output.
> 
> Can you please give a rationale of why this is desirable?
> 
> Using a C compiler to generate a C++ compiler is one of the major
> features of g++: You only need a C compiler to bootstrap.

C++ has stronger type checking, which may catch latent bugs. So it is
sometimes useful as some kind of lint. He also seems to want to use
the G++ frontend as "parser library" from C++ projects, and in such a 
setting C++ clean includes would be a plus. Of course for such a 
project it may be a better idea to use OpenC++, which is already a free
C++ parser writen in clean C++.

-Andi
-- 
This is like TV. I don't like TV.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]