[Top][All Lists]

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

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

From: Torsten Mohr
Subject: [avr-gcc-list] gcc: putting a variable in a certain section
Date: Thu, 24 Apr 2003 20:05:36 +0200
User-agent: KMail/1.4.3


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

How can i put a variable into an own section?  It seems
this works different, compared to other gcc-cross compilers?

If i'd like to have a non-const variable, in which
section is its initialisation value put (the 0x1234)?

Best regards,

reply via email to

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