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: Tomasz Francuz <tfrancuz at mp dot pl>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 17 Jun 2009 10:00:36 +0200
- Subject: Re: AVR C++ - how to move vtables into FLASH memory
As I can see in my first post I would like to modify gcc AVR backend to
support new feature â putting vtables into FLASH not SRAM. Thatâs why I
sent my message here.
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?