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. BTW, -O3 is meant to take a long time to compile...so it is probably more useful to do your C++ comparisons at -O2. -Richard -- [email protected] mailing list

