title: How can I see parse tree, intermediate code, optimization code and assembly code during COMPILATION?
body: <p>I am studying Compilers course, compilation of program follows below steps</p>
  
  <ol>
  <li>Lexical analysis</li>
  <li>Syntax analysis</li>
  <li>Semantic analysis</li>
  <li>Intermediate code generation</li>
  <li>Code optimization</li>
  <li>Target code generation.</li>
  </ol>
  
  <p>How can I see output of each step e.g I want to see parse tree after syntax analysis.</p>
  
  <p>I am compiling program on Linux machine with GCC compiler.</p>
  
  <p>We can see assembly code of the program  by using -Wa compiler option in gcc, similarly is there options to see Tokens, Parse tree and Inetmediate code. </p>