This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
C++ objects with virtual tables in eeprom
- From: jon dot busenkell at rsa dot com
- To: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 20 Aug 2008 15:33:52 -0400
- Subject: C++ objects with virtual tables in eeprom
Hello all:
I am wondering if anyone has ever implemented a __attribute__ or #pragma
statement for use with constructors to specify to the compiler that the
object does not exist in ram; therefore it can not just do a "MOV.L
<reg>,<memory>" with the register containing the virtual tables address.
The compiler I am presently using (from the chip vendor) does not take
into account that C++ objects that have virtual tables, might reside in
the eeprom. I am asking them to add this feature, and they are asking me
if there is a standard way of handling this. Any thoughts would be
greatly appreciated.
Thank you,
Jon