Chapter 9: Code generation

Unreachable code example .

constant propagation

if 0 <> 1 goto L2

print debugging information

L2:

Evaluate boolean expression. Since if condition is always true the code becomes

goto L2

print debugging information

L2:

The print statement is now unreachable. Therefore, the code becomes

L2: