This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Syntax of PowerPC instructions
> Date: Fri, 03 May 2002 15:00:56 +0200
> From: Daniel Diaz <Daniel.Diaz@univ-paris1.fr>
> Hi all,
>
> Someone sent me a patch of my system for PPC/Darwin that I'd like to
> merge with my old PPC/Linux code. But there are a lot of minor syntactic
> differences (e.g. under Darwin registers are named 'r..' while I only
> used the reg number under Linux,...).
> Unfortunately I no longer have a PPC/Linux machine to test...
>
> 1) where could I find a detailed description of the asm syntax for
> PowerPC/Linux gas accepts ?
There isn't really one. For register names, it will accept the
number, or like '%r1', or if you pass '-mregnames' it will accept
'r1'. It always accepts CR names like 'cr0'.
> 2) is there a way to run gas in PPC mode under ix86/Linux
> (cross-assembling) ?
Yes. Just configure with
.../configure --target=powerpc-linux
make all-gas
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>