How can I see parse tree, intermediate code, optimization code and assembly code during COMPILATION?
I am studying Compilers course, compilation of program follows below steps Lexical analysis Syntax analysis Semantic analysis Intermediate code generation Code optimization Target code generation. How can I see output of each step e.g I want to see parse tree after syntax analysis. I am compiling program on Linux machine with GCC compiler. 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. While you can use the -fdump-tree-all and -fdump-rtl-all options in gcc, I don't think that their output