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: Ian Lance Taylor <iant at google dot com>
- To: Tomasz Francuz <tfrancuz at mp dot pl>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 17 Jun 2009 07:26:17 -0700
- Subject: Re: AVR C++ - how to move vtables into FLASH memory
- References: <4A38A2A4.6050502@mp.pl>
Tomasz Francuz <tfrancuz@mp.pl> writes:
> Ok, Iâve studied a little bit gcc sources, Iâve found sections
> responsible for generating different register loading instructions,
> and indeed there is no information telling to the compiler how to load
> data
>> From FLASH. This is easy to correct, I suppose. But I have no idea
>> how
> compiler generates code responsible for loading pointers from
> vtable. I found code responsible for generating vtable itself. So
> please, can anybody point me to the peace of code responsible for
> loading pointers
>>From vtables?
The build_vtbl_ref function.
Ian