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 ...

Get Compilers: Principles and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.