title: writing code for nm-alike command [C++]
body: <p>Out of curiosity about reverse engineering, I am thinking of writing a simple program (in C++) that takes an executable as input and produces the names of all the functions that were a part of source program of that executable.</p>
  
  <p>Any pointers on how should I go about it?</p>
  
  <p>Step-by-step approach would be much appreciated!</p>
  
  <p><b>EDIT:</b><br>
  Platform linux and i am concerned about <a href="http://en.wikipedia.org/wiki/A.out#Format" rel="nofollow noreferrer">a.out</a> format executable files.</p>