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?
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.
- AVR C++ - how to move vtables into FLASH memory Tomasz Francuz
- Re: AVR C++ - how to move vtables into FLASH memory Ian Lance Taylor
- Re: AVR C++ - how to move vtables into FLASH mem... Denis Chertykov
- Re: AVR C++ - how to move vtables into FLASH mem... Zoltán Kócsi
- Re: AVR C++ - how to move vtables into FLASH... Ian Lance Taylor
- Re: AVR C++ - how to move vtables into FLASH memory Tomasz Francuz
- Re: AVR C++ - how to move vtables into FLASH mem... Ian Lance Taylor