This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Runtime initialization
- From: Rayiner Hashem <heliosc at mindspring dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 10 Jan 2002 18:50:40 -0500
- Subject: Runtime initialization
I have a few questions about what kind of runtime support g++ needs. I'm (trying) to use full-blown C++ in an OS kernel, and I'm having some problems invoking virtual functions. Basically, the problem occurs when I try to call the function itself, the CPU triple-faults and reboots. I'm thinking it has something to do with the vtables (I don't touch them anywhere else in the code). I would appreciate some info on how GCC manages vtables and specifically, what, if anything, needs to be done to the vtable sections (the gnu.linkonce.d.__vtable*) before virtual functions can be used.
Thanks in advance,
Rayiner H.