O'Reilly logo

Compilers: Principles and Practice by Himanshu B. Dave, Parag H. Dave

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.9 Real-life: Intermediate Codes of GNU gcc

GCC – GNU compiler collection (previously expanded as GNU C compiler), gcc/ccl – the modern GNU C compiler (see Fig. 8.12).

 

GNU compiler collection framework. Generic, Gimple and RTL are the Intermediate codes in GCC

 

Fig. 8.12 GNU compiler collection framework. Generic, Gimple and RTL are the Intermediate codes in GCC

 

The Abstract Syntax Tree (AST), generic Intermediate representation in GCC:

  • Output by the parser.
  • Explicitly represents all information in the original source code.
  • Front-end code may have its specific AST, but generic is aimed at being the common IR of all HLLs that GCC supports.

GIMPLE is another abstract level of representation in GCC. It is influenced by the SIMPLE ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required