.. Copyright 1988-2022 Free Software Foundation, Inc. This is part of the GCC manual. For copying conditions, see the copyright.rst file. .. index:: Tree SSA, Optimization infrastructure for GIMPLE .. _tree-ssa: Analysis and Optimization of GIMPLE tuples ------------------------------------------ GCC uses three main intermediate languages to represent the program during compilation: GENERIC, GIMPLE and RTL. GENERIC is a language-independent representation generated by each front end. It is used to serve as an interface between the parser and optimizer. GENERIC is a common representation that is able to represent programs written in all the languages supported by GCC. GIMPLE and RTL are used to optimize the program. GIMPLE is used for target and language independent optimizations (e.g., inlining, constant propagation, tail call elimination, redundancy elimination, etc). Much like GENERIC, GIMPLE is a language independent, tree based representation. However, it differs from GENERIC in that the GIMPLE grammar is more restrictive: expressions contain no more than 3 operands (except function calls), it has no control flow structures and expressions with side effects are only allowed on the right hand side of assignments. See the chapter describing GENERIC and GIMPLE for more details. This chapter describes the data structures and functions used in the GIMPLE optimizers (also known as 'tree optimizers' or 'middle end'). In particular, it focuses on all the macros, data structures, functions and programming constructs needed to implement optimization passes for GIMPLE. .. toctree:: :maxdepth: 2 analysis-and-optimization-of-gimple-tuples/annotations analysis-and-optimization-of-gimple-tuples/ssa-operands analysis-and-optimization-of-gimple-tuples/alias-analysis analysis-and-optimization-of-gimple-tuples/memory-model analysis-and-optimization-of-gimple-tuples/static-single-assignment