This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]