[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Constatnts in .data section
From: |
Alex Kholodenko |
Subject: |
[avr-gcc-list] Constatnts in .data section |
Date: |
Wed, 01 Jun 2005 14:20:58 +0200 |
Hello,
I have in my code some constants like this one
for example:
const static uint16_t mm_days[12]=
{ 0, 31, 59,
90, 120, 151, 181, 212, 243, 273, 304, 334 };
As far as I can see it will be placed in .data
section in RAM after init. I would prefer to have it in flash memory and not
to spend RAM for it. I can afford speed reduction in access to this area. So
how can I force gcc to do it if it is possible.
Thanks. Alex.
I'm not a member of the list so please take care to
"reply all"
- [avr-gcc-list] Constatnts in .data section,
Alex Kholodenko <=