On 8/30/06, Vladimir G. Ivanovic <[EMAIL PROTECTED]> wrote:
On Mon, 2006-08-21 at 20:06 -0700, Richard Fish wrote:
> -Os seems to take much less time and memory to compile than -O2 or -O3.  And 
being a
> ~arch user, time-to-compile is a nice thing to reduce.

It is possible that one of my usual CFLAGS options (-Wall -march=k8
-msse3 -pipe -O2 -ffast-math) overwhelms any -Os/-O2 execution time

Well it looks like I'll have to retract that statement in relation to
-Os/-O2.  My current tests with -march=pentium4 -fweb -pipe
-fomit-frame-pointer for my laptop or -march=athlon64 -fweb -pipe for
my AMD box show a <5% difference in compile time between -Os and -O2.

I think there was a bigger difference in previous versions of gcc, but
I can't seem to find any notes or anything to support that belief...

Cheers,
-Richard
--
gentoo-user@gentoo.org mailing list

Reply via email to