Three address code



         


In computer science, three address code is a form of representing intermediate code at compiling process.

Each statement has the general form of

<math>x := y\ op\ z<math>

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

<math>p := x + y * z<math>

are not allowed. They have to be translated in three address code, such as

<math>t1 := y * z<math>

<math>p := t1 + x<math>





  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License