k_fukui at highway.ne.jp
Fri Apr 19 18:14:38 EST 2002
On 19 Apr, Giuliano Pochini wrote:
> I want to write some small functions/peices of code in
> ppc assembly. I have ppc user manuals and the ABI, but
> I don't know the syntax. I need to know how to code asm
> inside the C source, and I need to know how to write a
> .S file to assemble and link with C object files. Where
> can I find the docs ? Does gcc support Altivec ?
There are newer binutils and gcc-3.1.pre.
Those have Altivec instruction.
gcc-3.1 will be switch to altivec with -maltivec.
But If you want to altivec code,
It need the source which is written by altivec register.
See www.altivec.org about altivec.
Anyway, Try to write simple c source.
gcc -S simple.c
You get simple.s
The simple.s is written by asmppc.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev