From owner-freebsd-questions@FreeBSD.ORG Fri Aug 18 17:27:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3427D16A4E1 for ; Fri, 18 Aug 2006 17:27:48 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E750043D6B for ; Fri, 18 Aug 2006 17:27:47 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id D00501A4DCA; Fri, 18 Aug 2006 10:27:47 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 3F1D853AA3; Fri, 18 Aug 2006 13:27:47 -0400 (EDT) Date: Fri, 18 Aug 2006 13:27:47 -0400 From: Kris Kennaway To: "Sean M." Message-ID: <20060818172746.GA63396@xor.obsecurity.org> References: <20060818161057.60674.qmail@web52309.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <20060818161057.60674.qmail@web52309.mail.yahoo.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: GCC - Optimal Optimization X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 17:27:48 -0000 --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--