This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compile time performance in C++ (question).
- To: Alexander Rozenman <shure at sd dot co dot il>
- Subject: Re: Compile time performance in C++ (question).
- From: Paolo Carlini <pcarlini at unitus dot it>
- Date: Fri, 13 Jul 2001 10:29:26 +0200
- CC: gcc at gcc dot gnu dot org
- References: <021101c10b69$a847bd70$87d3b58b@darkstar>
Hi,
I would like to add to Gerald Pfeifer's comments that your seemingly
trivial "Hello World" program is very good at showing a *specific* speed
issue bring about by the very heavy (but very compliant with the
ISO/ANSI standard, notice!) header files (#include <iostream>) of the
new v3 libstdc++.
Try building a test code 100 times longer but *not* including library
headers, and you will learn that the core gcc3.0 compiler is not that
slow! (8 times -> 1.5-2 times typically?)
Anyway, the ubiquitous problems with heavy header files is also being
dealt with by the developers, with the pre-compiled headers (PCH)
approach... ( http://gcc.gnu.org/ml/gcc/2001-07/msg00048.html )
Hold on!
Cheers,
Paolo Carlini.