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

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

Re: [avr-gcc-list] gcc: putting a variable in a certain section


From: E. Weddington
Subject: Re: [avr-gcc-list] gcc: putting a variable in a certain section
Date: Thu, 24 Apr 2003 15:31:15 -0600

On 24 Apr 2003 at 20:05, Torsten Mohr wrote:

> Hi,
> 
> i'd like to put some variables in an own section, i tried:
> 
> int __attribute((mysection)) abc = 0x1234;
> 
> and also:
> 
> const int __attribute((mysection)) abc = 0x1234;
> 
> 
> But sadly, avr-gcc ignores it:
> 
> main.c:1: warning: `mysection' attribute directive ignored
> 

It's:
__attribute__ ((section ("mysection")))

Eric


reply via email to

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