[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)? |
Date: |
Mon, 9 Sep 2002 10:35:58 +0200 (MET DST) |
"Larry Barello" <address@hidden> wrote:
> This works under 3.02 (avrfreaks) but fails on 3.2 (experimental) because
> the data gets placed in SRAM rather than FLASH.
>
> #define FLASH __attribute__ ((progmem))
> typedef struct
> {
> ...
> } const FLASH SomeStruct;
>
> SomeStruct MyData = {...};
>
>
> Why?
Because __attribute__ ((foo)) is apparently only honored within a
variable declaration, not within a typedef.
Since __attribute__ is a gcc extension, there's nothing the C standard
would tell you about this.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org
- [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, Larry Barello, 2002/09/10
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?,
Joerg Wunsch <=
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, Larry Barello, 2002/09/10
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, Joerg Wunsch, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, E. Weddington, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, Joerg Wunsch, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, E. Weddington, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, Joerg Wunsch, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, E. Weddington, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, Joerg Wunsch, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, E. Weddington, 2002/09/13
- Re: [avr-gcc-list] How to place data in FLASH on GCC 3.2 (avrfreaks)?, Joerg Wunsch, 2002/09/13