From owner-freebsd-questions@FreeBSD.ORG Fri Aug 18 18:47:41 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 F3A7016A4EB for ; Fri, 18 Aug 2006 18:47:40 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33D1943D5A for ; Fri, 18 Aug 2006 18:47:38 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so787070wxd for ; Fri, 18 Aug 2006 11:47:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Gv5R0gAB4HfO+1RijrHtMIgBCFPFGI8J6uges/OWxqcM2ZZyxyXC+AUY4bfgpr3+ZAmQjj35/bV7eeEOaYAX3RebhLL5eFTyB4CaGBFjI4eaoN7BvZMjTRucmK+ndl6S7+HJfUa206y/gJabcWYKZcGDrwgsYBhKdeT7VWgQObI= Received: by 10.70.14.20 with SMTP id 20mr5209543wxn; Fri, 18 Aug 2006 11:47:37 -0700 (PDT) Received: by 10.70.49.3 with HTTP; Fri, 18 Aug 2006 11:47:37 -0700 (PDT) Message-ID: Date: Fri, 18 Aug 2006 11:47:37 -0700 From: "Nikolas Britton" To: "Sean M." In-Reply-To: <20060818161057.60674.qmail@web52309.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060818161057.60674.qmail@web52309.mail.yahoo.com> 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 18:47:41 -0000 On 8/18/06, 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" > > Here: http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options IIRC the Duron should be set to athlon or athlon-tbird. The athlon-4, athlon-xp, athlon-mp knobs should only be used on Athlons with a Palomino core or better, your Duron is to slow to be based off Palomino. Also -mfp-math=sse does nothing for you because your chip doesn't have full SSE support. If you want to increase performance buy a new parts, $200 bucks will get you a new Athlon64 AM2 CPU, AM2 socket motherboard, and 512MB of DDR2-800 ram. Or you could go with new old stock: AMD Sempron 64 2800+ Socket 754: $54 BIOSTAR TForce6100 Socket 754: $66 CORSAIR ValueSelect 256MB DDR400: $28 Total: $148 -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/