[Nottingham] Athlon64 gcc compile flags on Gentoo

Martin Garton martin at stupids.org
Wed Feb 14 09:33:54 GMT 2007


On Tue, 2007-02-13 at 21:39 +0000, Martin wrote:

> I'm about to try out Gentoo on a Athlon64 box (yes, that ASUS one now
> with updated BIOS)...
> 
> Any recommendations for a good combination of compiler flags beyond the
> usual "-O3" (or "-Os" even)?

I would recommend using the defaults until you find a particular problem
with doing so.

> What have others found to work well?
> 
> Or does it all make negligible difference?

It's worth spending a little time on maybe, but it rarely makes huge
differences.  In my experience, if your app is running too slowly,
profile it.  Understanding the bottlenecks and improving the algorithms
can make orders of magnitude difference.

Of course, profiling is an art in itself.

-- 
Martin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://mailman.lug.org.uk/pipermail/nottingham/attachments/20070214/469a71cf/attachment.bin


More information about the Nottingham mailing list