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

c++, g++

Solution

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

Problem

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?

Original source

Related problems