cc17:homework_4

# Differences

This shows you the differences between two versions of the page.

 cc17:homework_4 [2017/04/20 19:33]hossein created cc17:homework_4 [2017/05/12 02:58] (current)hossein [Problem 3] 2017/05/12 02:58 hossein [Problem 3] 2017/04/20 19:33 hossein created 2017/05/12 02:58 hossein [Problem 3] 2017/04/20 19:33 hossein created Line 19: Line 19: $x := y \mbox{ op } z$ $x := y \mbox{ op } z$ where $x$ , $y$ , $z$ are identifiers,​ constants or temporary variables. $\mbox{op}$ is an operator. ​ where $x$ , $y$ , $z$ are identifiers,​ constants or temporary variables. $\mbox{op}$ is an operator. ​ - Generate code for the following expression under the assumption that you have only three temporary variables available. Your translation should not change the values of the identifiers after execution. + Generate ​three-address ​code for the following expression under the assumption that you have only three temporary variables available. Your translation should not change the values of the identifiers after execution. $$(a+b) + ((c-d)+(e*f))$$ $$(a+b) + ((c-d)+(e*f))$$