How does GCC implement dynamic binding?

Ian Lance Taylor iant@google.com
Thu Oct 12 00:39:00 GMT 2006


"Lacefield, Greg \(CNS COE\)" <Greg.Lacefield@Honeywell.com> writes:

> Is there any information available which documents, or can it be
> otherwise officially confirmed, that GCC uses static v-tables?

Yes, gcc uses static tables for virtual functions.  When it
initializes an object whose type is a class with virtual functions, a
pointer to the relevant static table is stored in the object.

The format of the tables is documented here:
    http://codesourcery.com/cxx-abi/
Although that document refers to the Itanium, gcc uses that same ABI
for all processors.

Ian



More information about the Gcc-help mailing list