This is the mail archive of the gcc@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]

Re: Class layout accross multiple architectures.



> For example, instances of a class with virtual functions will contain a 
> "vptr", a pointer to a "vtable", represented according to the conventions 
> for a struct member of a pointer type on that platform.  The vtable will 
> look like an array of structs laid out conventionally for that platform. 

You would also have to worry about layout in the case of virtual base
classes and multiple inheritance (though it is not extremely complex).


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