DOC PREVIEW
CMU CS 15745 - worksheet

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

15-745 Advanced Optimizing Compilers: WorksheetOptionalApril 25, 20061. Suppose we were to add setjmp() and long jmp() to L3. Briefly explain the changes you wouldhave to make to your compiler, starting with the construction of the flowgraph and the impacton the dataflow analyses and optimizations we have implemented this semester.2. Is there a difference in running time between computing iterative dataflow analysis in termsof both in() and out() sets, vs using only one of them?3. Give an example of a lattice that is not strongly distributive.4. Give an example of a specific dataflow analysis problem and an instance for which the MOPand MFP solutions are different.5. Draw the lattice of monotone functions from BV2 to itself.6. What are the flow, anti, and output dependences in the following basic block?r1 = [r7+4]r2 = [r7+8]r3 = r2 + 2r4 = r1 + r2[r5] = r4r4 = r5 - r3[r5] = r4[r7+r2] = r3r4 = r3 + r4r3 = r7 + r4r7 = r7 + 27. Formulate the dataflow analysis that is the inverse of available expressions, ie, the backward-flow problem in which an expression is in EVAL(i) if it is evaluated in block i and none of thevariables in it are changed between the entrance to the block and the given evaluation, withthe path-combining operator being intersection. Is there an optimization problem for whichthis analysis is useful?18. Consider the following loop:for (i=0; i<N; i++)A[i] = A[i] + B * C[i];Rewrite this code (in either source code form or in any suitable pseudo-assembler) in software-pipelined


View Full Document

CMU CS 15745 - worksheet

Documents in this Course
Lecture

Lecture

14 pages

Lecture

Lecture

19 pages

Lecture

Lecture

8 pages

Lecture

Lecture

5 pages

Lecture

Lecture

6 pages

lecture

lecture

17 pages

Lecture 3

Lecture 3

12 pages

Lecture

Lecture

17 pages

Lecture

Lecture

18 pages

lecture

lecture

14 pages

lecture

lecture

8 pages

lecture

lecture

5 pages

Lecture

Lecture

19 pages

lecture

lecture

10 pages

Lecture

Lecture

20 pages

Lecture

Lecture

8 pages

Lecture

Lecture

7 pages

lecture

lecture

59 pages

Lecture

Lecture

10 pages

Task 2

Task 2

2 pages

Handout

Handout

18 pages

Load more
Download worksheet
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view worksheet and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view worksheet 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?