Compiler Design
105601Module 4: Intermediate Code Generation, Code Improvement (optimization)
Q1d. Three-address code involves (i) Exactly 3 address (ii) At most 3 addresses (iii) No unary operator (iv) None20232m
Module 4: Intermediate Code Generation, Code Improvement (optimization)
View this question on its own page →Three-address code involves
(i) Exactly 3 address
(ii) At most 3 addresses
(iii) No unary operator
(iv) NoneQ1i. The method which merges the bodies of two loops is (i) Loop rolling (ii) Loop Jamming (iii) Constant folding (iv) None of the above20232m
Module 4: Intermediate Code Generation, Code Improvement (optimization)
View this question on its own page →The method which merges the bodies of two loops is
(i) Loop rolling
(ii) Loop Jamming
(iii) Constant folding
(iv) None of the aboveQ8b. Translate the expression a = (a + b) * (c + d) + (a + b + c) into (i) Quadruple (ii) Triple (iii) Indirect triple20239m
Module 4: Intermediate Code Generation, Code Improvement (optimization)
View this question on its own page →Translate the expression into
(i) Quadruple
(ii) Triple
(iii) Indirect triple