GCC Optimization

Athena P lists at vega.uk.net
Sat Feb 10 11:18:04 PST 2007


Hi Randy

Thanks for your reply.

Surely specifying the CPU architecture is still worth while. For example
using this string must give speed improvements.

 "-O3 -march=prescott -march=prescott -mtune=prescott -mmmx -msse -
msse2 -msse3 -m3dnow -pipe -mfpmath=sse" -fomit-fram-pointer"

Or am I missing something?

Many Thanks
Athena


-----Original Message-----
From: lfs-support-bounces at linuxfromscratch.org
[mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of Randy
McMurchy
Sent: 10 February 2007 19:06
To: LFS Support List
Subject: Re: GCC Optimization

Athena P wrote these words on 02/10/07 13:04 CST:

> And, finally, in terms of pure performance (speed) is all this
> optimization really worth the effort?

IMHO, a definite no. Not only will you not see the performance
gain in day-to-day use of the system, you'll end up having issues
that you will have trouble diagnosing.

-- 
Randy

rmlscsi: [bogomips 1003.26] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
13:04:00 up 31 days, 13:18, 1 user, load average: 0.02, 0.06, 0.10
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page



More information about the lfs-support mailing list