Runtime initialization

Rayiner Hashem heliosc@mindspring.com
Thu Jan 10 15:52:00 GMT 2002


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.



More information about the Gcc-help mailing list