Consider the following statements: S1 : Three-address code is a linearized representation of syntax tree. S2 : The syntax tree not depicts the natural hierarchical structure of source program. Which of the following is true?
plz explain s1 statement
S1 and S2 can be found:- https://www.cse.iitk.ac.in/users/karkare/cs335/lectures/15IR_and_SymTab.pdf
page number 15 AND 11.
https://karkare.github.io/cs335/lectures/15IR_and_SymTab.pdf
Three-address code is a linearized representation of syntax tree.
Suppose we have a parse tree with + as root node and a and b as child nodes. Then, the three address code would be represented as,
op op1 op2 result (1) + a b t1
64.3k questions
77.9k answers
244k comments
80.0k users