[Bug c++/43745] [avr] g++ puts VTABLES in SRAM
matthijs at stdin dot nl
gcc-bugzilla@gcc.gnu.org
Sat Sep 2 08:26:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43745
Matthijs Kooijman <matthijs at stdin dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matthijs at stdin dot nl
--- Comment #12 from Matthijs Kooijman <matthijs at stdin dot nl> ---
Apologies if this is an obvious question, but I'm not familiar with gcc/g++
internals. Georg-Johann, you say this requires address space support in c++,
but I'm not sure I follow you there. Two things:
- You say WG21 will never add AS support to C++, but also say that language
support for AS is not needed, only internal support in gcc/g++. So that means
what WG21 does is not relevant for vtable handling in particular?
- Even if AS would not be used, what prevents g++ from emitting the vtables in
the `progmem.data` section and generating vtable-invocation code using LPM
instructions? This behaviour could be toggled using a commandline option, or
some gcc-specific attribute on a class?
I would be happy if you could comment on the feasibility of these two
approaches, thanks!
More information about the Gcc-bugs
mailing list