Consider this high-level code sequence of three statements: A = B + C; B = A +

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 (see Figure A.20) 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?

Figure A.20

Percentage of the total number of optimizing transforms Optimization name Explanation At or near the source level; proce

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Architecture A Quantitative Approach

ISBN: 978-8178672663

5th edition

Authors: John L. Hennessy, David A. Patterson

Question Posted: