1 votes 1 votes Replacing the expression $4\ast 2\cdot 14$ by $8 \cdot 56$ is known as constant folding induction variable strength reduction code reduction Compiler Design ugcnetcse-june2019-paper2 code-optimization constant-folding + – Arjun asked Jul 2, 2019 edited Jul 24, 2019 by Lakshman Bhaiya Arjun 4.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes It's constant folding. Constant folding: Replacing the value of expression before compile time. here the value of 4*2.14 is replaced by 8.56. so it's constant folding. https://en.wikipedia.org/wiki/Constant_folding Induction variable: A variable that increased or decreased by a fixed amount of time on every iteration of the loop. https://en.wikipedia.org/wiki/Induction_variable Strength reduction: Replacing the costlier operator by cheaper operator. https://en.wikipedia.org/wiki/Strength_reduction so option A. Hira Thakur answered Jul 3, 2019 edited Jan 2, 2020 by Hira Thakur Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.