This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AVR C++ - how to move vtables into FLASH memory


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]