[Top][All Lists]

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

Re: [avr-gcc-list] #define with avr-as

From: Marek Michalkiewicz
Subject: Re: [avr-gcc-list] #define with avr-as
Date: Thu, 27 Feb 2003 08:31:47 +0100
User-agent: Mutt/1.4i

On Wed, Feb 26, 2003 at 06:06:49PM -0500, RogerB wrote:
>       I'm trying to get the hang of avr-as and I'm having a little
> bit of trouble with redefining regester. I'm using avr-as version
> 2.13. When I build athe example programs that redefine a register 
> everthing goes OK but in my program I get an error message
>  Error: register number above 15 required

I suspect the code doesn't go through the C preprocessor before
being assembled.  Use the avr-gcc driver (not avr-as directly),
and make sure your source file has the .S (uppercase!) extenssion.
You can also use avr-gcc -x assembler-with-cpp to tell the driver
what to do, regardless of the extension.


reply via email to

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