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: Karel Gardas <kgardas at objectsecurity dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, Robert Dewar <dewar at gnat dot com>, <gcc at gcc dot gnu dot org>
- Date: Thu, 6 Mar 2003 23:22:28 +0100 (CET)
- Subject: Re: Putting C++ code into gcc front end
On Thu, 6 Mar 2003, Michael Matz wrote:
> > It means you can't use iostreams, since they are templates. You can't
> > use strings either. You can't use any of the *very* convenient
> > features of the Standard Template Library.
>
> But if the reason is, that we want to use the STL, I would be quite
> strongly against that. Using STL anywhere, even the simpler classes, has
> a such huge impact on compile time, that it's not funny. If we need a
> list or map in the compiler I never would use the STL, and instead write
> something simple by hand. All the hooks and possibilities STL provides
> make it extremely slow to compile.
Oops, that would be good, since then you will see how g++ is slow and you
will search for all posibilities how to make it faster. I think all g++
users will appreciate such work :-)
Sorry, just kidding...
Cheers,
Karel
--
Karel Gardas kgardas at objectsecurity dot com
ObjectSecurity Ltd. http://www.objectsecurity.com