Re: Using the Altivec GNU patches
From: Holger Bettag <hidden>
Date: 2000-08-08 09:46:21
Justin Shore [off-list ref] writes:
I'm curious, can I use the Altivec enchanced gcc (available at www.altivec.org) to optimize my compilations for those G4s? I compile most of my own software; would it actually utilize the patched gcc or would it require special code changes to make it work?
You can use gcc-vec, but it won't automatically vectorize code. Programs currently have to be rewritten to make use of AltiVec. (I know of one commercial preprocessor application that does some automatic vectorization at the source code level, but it's been in beta stage for almost a year, I think.) The high level programming model for AltiVec is quite nice and not too hard to grasp; and gcc-vec does a respectable job generating good machine code. If you're a programmer, you should take a look. Holger ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/