Date: Fri, 18 Aug 2006 13:27:47 -0400 From: Kris Kennaway <kris@obsecurity.org> To: "Sean M." <sigma_zk@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: GCC - Optimal Optimization Message-ID: <20060818172746.GA63396@xor.obsecurity.org> In-Reply-To: <20060818161057.60674.qmail@web52309.mail.yahoo.com> References: <20060818161057.60674.qmail@web52309.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 18, 2006 at 09:10:57AM -0700, Sean M. wrote: > With GCC 3.4.4, what are the best CFLAGS to use for an AMD Duron ~1000 > MHz? By "best" I mean creating the fastest programs that exploit fully > all of the architecture's features, without creating a "noticible" > increase in size. To date I've been using > CFLAGS="-O3 -march=athlon-xp -mfp-math=sse -funroll-loops -pipe > -ffast-math" Don't use random options (e.g. -ffast-math) unless you know what you're doing (yes, it says "fast", but that doesn't necessarily mean it will make your application faster). The "best" options to use are the default ones (you can also set CPUTYPE according to the make.conf documentation) unless you like debugging your system when applications suddenly do not operate correctly. Using nonstandard options like the above might make your system feel sexier, but it's really not a good idea to compile your whole system that way :-) Kris --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE5fiSWry0BWjoQKURAkzvAJsHUaiq6JNQgvGrikDAmRaEwCLKywCeJjrH PTfPVzEBMMAJHbG339DtlWo= =JCd4 -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060818172746.GA63396>