| |||||||||
In computer science, three address code is a form of representing intermediate code at compiling process.
Each statement has the general form of
where x, y and z are variables, constants or temporary variables generated by the compiler. op represents any operator, e.g. an arithmetic operator.
Compound statements such as
are not allowed. They have to be translated in three address code, such as
<math>t1 := y * z<math>
<math>p := t1 + x<math>