Question: Consider this high-level code sequence of three statements A=B+C; B=A+C; D=A-B; Use the technique of copy propagation to transform the code sequence to the point
Consider this high-level code sequence of three statements A=B+C; B=A+C; D=A-B; Use the technique of copy propagation to transform the code sequence to the point where no operand is a computed value. Note the instances in which the transformation has reduced the computational work of a statement and those cases where the work has increased. What does this suggest about the technical challenge faced in trying to satisfy the desire for optimizing compilers?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
