Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
8 user(s) are online (8 user(s) are browsing encyclopedia)

Members: 0
Guests: 8

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Three address code

In computer science, three address code is a form of representing intermediate language used by Compilers to aid in the implementation of code-improving transformations.

Each statement has the general form of:

x := y , operatorname{op} , z,

where x , y and z are variables, constants or temporary variables generated by the Compiler. op represents any operator, e.g. an arithmetic operator.

Expressions containing more than one fundamental operation, such as:

p := x + y imes z,

are not representable in three address code as a single instruction. Instead, they are decomposed into an equivalent series of instructions, i.e. ,

t_1 := y imes z,

p := x + t_1,

The term three address code is still used even if some instructions use more or less than two operands. The key features of three address code are that every instruction implements exactly one fundamental operation, and that the source and destination may refer to any available register.

A refinement of three address code is Static single assignment form.