[Top][All Lists]

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

Re: [avr-gcc-list] Common symbol definitions for assembler

From: Julius Luukko
Subject: Re: [avr-gcc-list] Common symbol definitions for assembler
Date: Wed, 6 Aug 2003 09:35:30 +0300
User-agent: KMail/1.4.3

On Wednesday 06 August 2003 08:44, Erik Christiansen wrote:
>    After installing binutils, gcc, and avr-libc, I find register,
>    vector, and port symbols nicely defined in the 'C' header files in
>    /usr/local/avr/include/avr/, but need instead, corresponding xxx.inc
>    files suitable for use with avr-as.
>    What does the group generally use here?
>    In sfr_defs.h, I find the comment:
>    /* No need to use ?: operator, so works in assembler too.  */
>    but gas demonstrably can't handle the syntax of a 'C' header without
>    some preprocessing.
>    Is the comment in sfr_defs.h a useful lead, or do I need to generate
>    xxx.inc files from useful headers, myself?  (It's not a big deal, but
>    why reinvent television? :-)

You'll have to include avr/io.h, not sfr_defs.h directly and pass the 
assembler file through c-preprocessor. Have a look at avr-libc documentation 
on how to use these with assembler source files  (can't check the direct 
address to on-line avr-libc documentation right now, since 
http://savannah.nongnu.org/projects/avr-libc/ says that the group does not 

D.Sc. Julius Luukko
Laboratory of Control Engineering/Department of Electrical Engineering
Lappeenranta University of Technology, FINLAND
phone:+358-5-621 6713, fax:+358-5-621 6799, www: http://www.ee.lut.fi

reply via email to

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