How can I see parse tree, intermediate code, optimization code and assembly code during COMPILATION?

后端 未结 3 648
春和景丽
春和景丽 2020-11-30 05:53

I am studying Compilers course, compilation of program follows below steps

  1. Lexical analysis
  2. Syntax analysis
  3. Semantic analysis
  4. Interm
3条回答
  •  有刺的猬
    2020-11-30 06:33

    You can see the preprocessor output with -E. -fdump-tree-* dumps the tree internal represenation, e.g. -fdump-tree-all. Various -d options exist to dump the RTL intermediate representations, e.g. -fdump-rtl-all (see the manual for the invidual passes that you get dumps of); in addition, -dD dumps all macro definitions.

提交回复
热议问题