This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using #define OUTBUF $10 in gas? (naming a register)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]