title: Understanding g++ compilation flags
body: <p>I want to know what each flag does to the code to understand its overhead. I checked </p>
  
  <p><code>man g++</code> for the <code>'-g'</code> flag</p>
  
  <p>and found only <code>"Generate extra code to write profile...."</code></p>
  
  <p>It doesn't specify where? </p>
  
  <p>Are their any detailed manuals to help me understand what -g/-p do?</p>