Using the Altivec GNU patches
Holger Bettag
hobold at Informatik.Uni-Bremen.DE
Tue Aug 8 19:46:21 EST 2000
Justin Shore <listuser at vinnie.ksu.ksu.edu> 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/
More information about the Linuxppc-dev
mailing list