GCC - Optimal Optimization
Dan Nelson
dnelson at allantgroup.com
Fri Aug 18 17:06:45 UTC 2006
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 at allantgroup.com
More information about the freebsd-questions
mailing list