Compile flags for Xserve CPU?
Dan Burcaw
yellowdog-general@lists.terrasoftsolutions.com
Thu Apr 10 10:59:01 2003
On Thu, 2003-04-10 at 10:08, Stephen Hocking wrote:
> When compiling for an Xserve's CPU, what flags generate code specific to it? /
> proc/cpuinfo reports it as a 7455, altivec supported. Do I use -mcpu=7450 or
> -mcpu=750? I assume -faltivec may vectorise where the compiler knows how
> (another story altogether, or so I've been told).
gcc does NO autovectorization... -faltivec simply allows you to USE
vectors in your code.
-mcpu=7450 is probably what you want.. but there really isn't a
difference beftween the various -mcpus on ppc linux like you find with
gcc on x86.