Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2006 12:05:21 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "Sean M." <sigma_zk@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: GCC - Optimal Optimization
Message-ID:  <20060818170521.GC74158@dan.emsphone.com>
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
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060818170521.GC74158>