Richard Fish wrote:
On 9/6/06, Mark Kirkwood <[EMAIL PROTECTED]> wrote:
After upgrading to gcc to 4.1, I notice that pure c projects take
significantly longer to compile than under 3.4 (e.g. Postgres 8.1.4 - 7
minutes vs 5 minutes for -O2 optimization)
To paraphrase from the amd64 list, It makes faster binaries slower.
But yeah, known issue:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21456
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23955
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18687
Bottom line is that the optimizer makes many more passes over the code
now, so produces better optimizations, but it takes longer. We can
only hope that 4.2 begins to speed things up again.
Thanks Richard (oops, forgot to search the buglist first, sorry).
BTW, -O3 is meant to take a long time to compile...so it is probably
more useful to do your C++ comparisons at -O2.
Yeah, actually I put -O2 in CXXFLAGS, but noticed the the Mysql build is
overriding it (if they think -O3 is better, I guess I'll let 'em insist)!
Cheers
Mark
--
[email protected] mailing list