Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any g++ option to dump class layout and vtables? [duplicate]

Tags:

c++

g++

I want to see how g++ lays out memory for classes and virtual tables.

Is there a way to dump this information, using g++'s options?

like image 218
Aman Jain Avatar asked Mar 31 '10 00:03

Aman Jain


1 Answers

g++ -fdump-class-hierarchy -c source_file.cpp

like image 182
Artem Sokolov Avatar answered Oct 19 '22 06:10

Artem Sokolov