IT lexicon › Programming › GIMPLE

GIMPLE

Programming På svenska → Updated: 2026-11-05

GCC's mid-level intermediate representation, where nearly all the machine-independent optimisation happens.

The front end turns source code into the tree format GENERIC, which is then flattened into GIMPLE: three-address code in which every statement does at most one operation and complex expressions are split up with temporaries. The design descends from SIMPLE, the IR of McGill University's McCAT compiler. GIMPLE and the Tree SSA framework arrived with GCC 4.0 in 2005 and gave GCC a proper SSA-based optimiser; until then almost everything had happened down in the machine-oriented RTL.

Anyone curious how the compiler understood their code can pass -fdump-tree-gimple and get a readable, C-like dump. Under link-time optimisation GCC streams GIMPLE into the object files, and most GCC plugins work at this level too.

← Back to the lexicon