0 votes 0 votes Like Example Above please answer this question Q5. Implement a+b*(c+d)-e/f into: a). Quadruples. b). Triples. c). Indirect triples. Compiler Design compiler-design syntax-directed-translation lexical-analysis parsing + – Ebrahim asked Dec 18, 2023 Ebrahim 357 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Q5. Implement a+b*(c+d)-e/f into: a). Quadruples. b). Triples. c). Indirect triples. answer: Three Address Code: t1=a+b t2=c+d t3=t1*t2 t4=e/f t5=t3-t4 Quadruples: location OP ARG1 ARG2 Result 0 + a b t1 1 + c d t2 2 * t1 t2 t3 3 / e f t4 4 + t3 t4 t5 Triples: location OP ARG1 ARG2 (0) + a b (1) + c d (2) * (1) (2) (3) / e f (4) + (3) (4) Indirect triples. statement 35 (0) 36 (1) 37 (2) 38 (3) 39 (4) sediq answered Dec 22, 2023 • edited Dec 22, 2023 by makhdoom ghaya sediq comment Share Follow See 1 comment See all 1 1 comment reply mili_dhara commented Dec 25, 2023 reply Follow Share How a+b will be calculated first? c+d should be calculated first and then multiplied by b and so on. 0 votes 0 votes Please log in or register to add a comment.