Translate the arithmetic expression [a + a^ * (b - c)] + [(b - c)^ * d]
into:
(i) Three-address code
(ii) Quadruples
(iii) Triples
[2016, 2010]
Write quadruples, triples, and indirect triples for the expression (a + b) + (c + d) - (a + b + c)
.
[2015]
The assignment d := (a - b) + (a - c) + (a - c)
might be translated into the following three-address code sequence:
t := a - b
u := a - c
v := t + u
d := v + u
d
live at the end, what are the code sequences for the above three-address code using the code generation algorithm?[2014]