This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AVR C++ - how to move vtables into FLASH memory
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Tomasz Francuz <tfrancuz at mp dot pl>, gcc at gcc dot gnu dot org
- Date: Tue, 16 Jun 2009 21:41:27 +0400
- Subject: Re: AVR C++ - how to move vtables into FLASH memory
- References: <4A376AFD.5020107@mp.pl> <m3eitk44yf.fsf@google.com>
2009/6/16 Ian Lance Taylor <iant@google.com>:
> Tomasz Francuz <tfrancuz@mp.pl> writes:
>
>> I would like to change gcc so AVR C++ port will use FLASH memory
>> instead of SRAM to store virtual function pointers. Does anyone try to
>> do it? I have no experience as gcc developer, so can you head me to
>> appropriate files/literature about this particular problem?
>
> This question would be more appropriate for the mailing list
> gcc-help@gcc.gnu.org than for gcc@gcc.gnu.org. ÂPlease take any
> followups to gcc-help. ÂThanks.
>
> Virtual tables will normally be placed in the .rodata section which
> holds read-only data. ÂAll you should need to do it arrange for the
> .rodata section to be placed in FLASH rather than SRAM. ÂThis would
> normally be done in your linker script.
No, no. movMODE insns for AVR don't support FLASH (PROGMEM), only SRAM.
Denis.