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: <tm_gccmail at mail dot kloo dot net>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: gdr at integrable-solutions dot net, zack at codesourcery dot com,gcc at gcc dot gnu dot org, mrs at apple dot com, tromey at redhat dot com
- Date: Wed, 5 Mar 2003 13:57:16 -0800 (PST)
- Subject: Re: Putting C++ code into gcc front end
On Wed, 5 Mar 2003, Robert Dewar wrote:
> > * there is a well-formed corpus of C++ well-implemented by
> > compilers out there. That corpus is the not the most recent
> > innovative features of the langage but successful projects in C++
> > don't always use the most recent features.
>
> So perhaps the prerequisite here is to develop an agreed set of language features
> that can be used, chosen with two goals in mind:
>
> 1. Keep the code clear, and accessible by non-C++ experts
>
> 2. Keep the code compilable by a wide range of C++ compilers
I personally think having parts of GCC written in C++ is a bad idea,
as it forces people to know Yet Another Language in addition to
C, shell scripts, sed, makefiles, etc.
However, if this happens, you might consider looking at Mozilla's
C++ coding guidelines - they have experience with compiling with
many different C++ compilers on many different platforms.
Here's the URL:
http://www.mozilla.org/hacking/portable-cpp.html
Toshi