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: Compile time performance in C++ (question).


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.




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