User Tools

Site Tools


cc17:homework_4

Differences

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

Link to this comparison view

cc17:homework_4 [2017/04/20 19:33]
hossein created
cc17:homework_4 [2017/05/12 02:58] (current)
hossein [Problem 3]
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)) $$
  
cc17/homework_4.txt ยท Last modified: 2017/05/12 02:58 by hossein