0 votes 0 votes 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 Compiler Design compiler-design three-address-code test-series + – 92komal asked Dec 22, 2017 edited Jul 2, 2022 by Lakshman Bhaiya 92komal 2.4k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply register_user_19 commented Dec 27, 2018 reply Follow Share 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. 0 votes 0 votes yashvi commented Dec 22, 2020 reply Follow Share url not working 0 votes 0 votes register_user_19 commented Dec 23, 2020 reply Follow Share https://karkare.github.io/cs335/lectures/15IR_and_SymTab.pdf 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes 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 Yogesh Mandge answered Dec 23, 2017 Yogesh Mandge comment Share Follow See all 2 Comments See all 2 2 Comments reply 92komal commented Dec 24, 2017 reply Follow Share can you give me any example of non linearized representation actually little bit dbt in my mind 0 votes 0 votes Yogesh Mandge commented Dec 24, 2017 reply Follow Share Syntax tree is one such representation. 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes S1 is true: Three-address code is a linearized representation of syntax tree. Because we can determine the three address code from syntax tree. S2 is false: The syntax tree depicts the natural hierarchical structure of source program.because if statement(arithmetic) gives in the linear form then we are able to make a hierarchical structure of syntax tree. shaurabhpatel47 answered Sep 22, 2020 shaurabhpatel47 comment Share Follow See all 0 reply Please log in or register to add a comment.