Is there any compiler option in MS Visual C++ equivalent to GCC’s -fdump-class-hierarchy? i.e. showing the virtual function table layout.
Is there any compiler option in MS Visual C++ equivalent to GCC’s -fdump-class-hierarchy? i.e.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
try
cl.exe /d1reportAllClassLayout test.cpp
The output is something like:
class request_handlerAttribute size(8): +--- 0 | name 4 | sdl +--- class perfmonAttribute size(8): +--- 0 | name 4 | register | (size=3) +---Found doing:
+ findstr /i class c1xx.dll > c1xx.txt
+ and then manually inspecting c1xx.txt
Hope it can help,
Benedetto
PS: This obviously is an undocumented and unsupported switch.
Look also here for a similar switch.