[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] #define with avr-as
From: |
RogerB |
Subject: |
Re: [avr-gcc-list] #define with avr-as |
Date: |
Thu, 27 Feb 2003 08:30:49 -0500 |
On Thu, 27 Feb 2003 08:31:47 +0100
Marek Michalkiewicz <address@hidden> wrote:
> 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.
>
> Marek
>
Thats what I think to but I'm using almost the same make file
as the example programs. Must be a error somewhere in the make file.
If I do it by passing it through gcc first (it's version 3.3) will
it leave my assembly code alone and just do the preprocessing?
I have my own start up code and don't link to library the comes with
avr-gcc. It does work with temp = 16 as in the avr-gcc docs.