From owner-freebsd-questions@FreeBSD.ORG Fri Aug 18 17:06:45 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 02DCA16A517 for ; Fri, 18 Aug 2006 17:06:45 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F231343DF6 for ; Fri, 18 Aug 2006 17:05:32 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.6) id k7IH5LXh067515; Fri, 18 Aug 2006 12:05:21 -0500 (CDT) (envelope-from dan) Date: Fri, 18 Aug 2006 12:05:21 -0500 From: Dan Nelson To: "Sean M." Message-ID: <20060818170521.GC74158@dan.emsphone.com> References: <20060818161057.60674.qmail@web52309.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060818161057.60674.qmail@web52309.mail.yahoo.com> X-OS: FreeBSD 6.1-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 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:06:45 -0000 In the last episode (Aug 18), Sean M. said: > 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" There is no magic set of flags, else they would already be the default :) Each program will have its own "best" set of flags. See http://www.coyotegulch.com/products/acovea/index.html for some analyses of options in gcc 3.4 and 4.0. -- Dan Nelson dnelson@allantgroup.com