This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compile-time performance
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, jss at ast dot cam dot ac dot uk, mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 18 May 2002 16:44:31 -0400 (EDT)
- Subject: Re: gcc compile-time performance
<<In C++, for real programs, I've seen tree images as large as 5 gigabytes.
>>
Yes, that's common in Ada too, after all I just gave you the tree size from
4000 lines of code. But reading a 5 gigabyte file will take a heck of a long
time in itself, so that sounds a bit ominous as well.
<<Not true; in C++ function bodies are present in the headers and the
precompiled header may store the already optimized form of the code.
>>
why would you put functoin bodies of sufficient complexity not to be
inlined in headers, sounds a peculiar coding technique to me, but then
a lot of stuff in that world strikes me as peculiar :-)