public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: AVR C++ - how to move vtables into FLASH memory
@ 2009-06-17  8:00 Tomasz Francuz
  2009-06-17 14:26 ` Ian Lance Taylor
  0 siblings, 1 reply; 7+ messages in thread
From: Tomasz Francuz @ 2009-06-17  8:00 UTC (permalink / raw)
  To: gcc

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?

^ permalink raw reply	[flat|nested] 7+ messages in thread
* AVR C++ - how to move vtables into FLASH memory
@ 2009-06-16  9:51 Tomasz Francuz
  2009-06-16 14:41 ` Ian Lance Taylor
  0 siblings, 1 reply; 7+ messages in thread
From: Tomasz Francuz @ 2009-06-16  9:51 UTC (permalink / raw)
  To: gcc

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?

TIA.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-17 14:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17  8:00 AVR C++ - how to move vtables into FLASH memory Tomasz Francuz
2009-06-17 14:26 ` Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2009-06-16  9:51 Tomasz Francuz
2009-06-16 14:41 ` Ian Lance Taylor
2009-06-16 17:41   ` Denis Chertykov
2009-06-16 21:29   ` Zoltán Kócsi
2009-06-17  0:25     ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).