avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Register names


From: Theodore A. Roth
Subject: Re: [avr-gcc-list] Register names
Date: Fri, 3 Dec 2004 11:15:31 -0800 (PST)

On Fri, 3 Dec 2004, Jonny Dyer wrote:

> One more quick question guys - is there a way to rename registers in
> avr-as so that it is easier to remember what you are using them for?  I
> have tried .equ somename,r16 which gives me an error.

Since it appears that you are talking about asm code, you could just use
the C-preprocessor:

  #define somename r16

and then assemble the file with like this:

  $ avr-gcc -x assembler-with-cpp $(ASFLAGS) -c -o foo.o foo.S

---
Ted Roth
PGP Key ID: 0x18F846E9
Jabber ID: address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]