Using #define OUTBUF $10 in gas? (naming a register)
Alan Modra
amodra@bigpond.net.au
Thu Jul 3 08:03:00 GMT 2008
On Thu, Jul 03, 2008 at 12:24:07AM -0700, Peter Ronnquist wrote:
>
>
> am trying to use a text symbol to refer to a register using
> spu-as..
>
> For example I would like to do
> something like this:
>
> #define INBUF
> $10
>
> lqd $11,
> 0(INBUF)
>
> is this possible in
> gas?
No, but you can preprocess your source with cpp. For example, see
ld/Makefile spu_ovl.o rule.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list