Chapter 8: Intermediate Code Generation

Example

real x, y;

int i, j;

x = y + i * j

generates code

t1 = i int* j

t2 = inttoreal t 1

t3 = y real+ t 2

x = t 3

Here is an example of type conversion within assignments