title: What does a compiled C++ class look like?
body: <p>With some background in assemble instructions and C programs, I can visualize how a compiled function would look like, but it's funny I have never so carefully thought about how a compiled C++ class would look like.</p>
  
  <pre><code>bash$ cat class.cpp
  #include&lt;iostream&gt;
  class Base
  {
    int i;
    float f;
  };
  
  bash$ g++ -c class.cpp
  </code></pre>
  
  <p>I ran:</p>
  
  <pre><code>bash$objdump -d class.o
  bash$readelf -a class.o
  </code></pre>
  
  <p>but what I get is hard for me to understand.</p>
  
  <p>Could somebody please explain me or suggest some good starting points.</p>