This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Using #define OUTBUF $10 in gas? (naming a register)
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Peter Ronnquist <pronnquist at yahoo dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 3 Jul 2008 17:33:02 +0930
- Subject: Re: Using #define OUTBUF $10 in gas? (naming a register)
- References: <613191.81806.qm@web45114.mail.sp1.yahoo.com>
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