altivec-optimisation and compilers for mac g4
the altivec-registers and processing-unit on the g4-processors are adressed via special instructions. those are assembler-instructions.
if i got a c-sourcefile, i have to have a special compiler that is equipped with this special-instruction-set. otherwise my compiler (and my programm) wont use the altivec at all.
which compilers for macosx are altivec-capable ? codewarrior ? gcc ?
or has the altivec-optimisation always to be done in assembler ?
thank you !
andreas
if i got a c-sourcefile, i have to have a special compiler that is equipped with this special-instruction-set. otherwise my compiler (and my programm) wont use the altivec at all.
which compilers for macosx are altivec-capable ? codewarrior ? gcc ?
or has the altivec-optimisation always to be done in assembler ?
thank you !
andreas
Comments
With Codewarrior it's only a checkbox to enable altivec.
With GCC, use this <a href="http://gcc.gnu.org/onlinedocs/gcc/PowerPC-AltiVec-Built-in-Functions.html" target="_blank">page</a>.