-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It does not show vtable and vptr assignment #553
Comments
Hello @rajendrasp, thanks for raising this question. Addressing the vtable: Since you raised the question, how would you like to see the transformation? Regarding the memory layout: Andreas |
For vtable, I was thinking of seeing the memory layout of compiled object. Microsoft Visual C++ has following undocumented options that give layout information. /d1reportSingleClassLayoutXXX https://stackoverflow.com/questions/2138890/layout-of-compiled-objects Following is what it ouputs for a multiply-inherited classes. Library.cpp class IHen size(8): IHen::$vftable@: IHen::Cluck this adjustor: 0 class IHen2 size(8): IHen2::$vftable@: IHen2::Forage this adjustor: 0 class Hen size(24): Hen::$vftable@IHen2@: Hen::$vftable@IOfflineChicken@: I do not understand why thunk is used instead of just saying &Hen::AddRef in vtable "Hen::$vftable@IOfflineChicken@:". But this is something I was hoping for with a bit of better presentation in the cppinsights. I was also looking for code that initialises the this->_vptr in constructors. And compiler generated code in destructor if there is any. Thanks. |
The tool does not show me memory layout of the program including vtable. And constructor implementation does not show vptr assignment. Any plan to add these?
The text was updated successfully, but these errors were encountered: