CS 553 Compiler Construction - Homework 3: Parallelization and Alias Analysis - Prof. Mich, Assignments of Computer Science

Information about homework 3 for the cs 553 compiler construction course, which focuses on parallelization and alias analysis. The assignment includes exercises from the book and a program for which students are required to perform flow-sensitive, context-sensitive (fscs) and flow-insensitive, context-sensitive (fics) alias analysis. The deadline for submission is december 7, 2007, and the total points for the assignment are 100, representing 5% of the course grade.

Typology: Assignments

Pre 2010

Uploaded on 11/08/2009

koofers-user-jvo-1
koofers-user-jvo-1 🇺🇸

8 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 553 Compiler Construction Fall 2007 Homework #3
Parallelization and Interprocedural Analysis Due December 7, 2007
Homework assignments are to be completed individually. Hand-written submissions are fine,
but they must be readable. Due at the beginning of class. Total points: 100, 5% of course grade
1. [15 Points] Exercise 11.7.1 in the book.
2. [15 Points] Exercise 11.7.2 in the book.
3. [15 Points] Exercise 11.7.3 in the book.
4. [15 Points] Exercise 12.1.1 in the book.
5. [20 Points] Exercise 12.1.2 in the book.
1
pf2

Partial preview of the text

Download CS 553 Compiler Construction - Homework 3: Parallelization and Alias Analysis - Prof. Mich and more Assignments Computer Science in PDF only on Docsity!

CS 553 Compiler Construction — Fall 2007 Homework # Parallelization and Interprocedural Analysis Due December 7, 2007

but they must be readable. Due at the beginning of class. Total points: 100, 5% of course grade^ Homework assignments are to be completed individually.^ Hand-written submissions are fine,

  1. [15 Points] Exercise 11.7.1 in the book.
  2. [15 Points] Exercise 11.7.2 in the book.
  3. [15 Points] Exercise 11.7.3 in the book.
  4. [15 Points] Exercise 12.1.1 in the book.
  5. [20 Points] Exercise 12.1.2 in the book.
  1. [20 points] Alias Analysis FSCS FICS

int g; main() {int **a, **b, *c, *d, e, f, *r, *s; S1 c = &e; S2 d = &f; S3 a = &c; S4 b = &d; S5 r = bar( a ); S6 s = bar( &d ); }

int* bar(int **z) {int *q; S7 q = *z; S8 q = &g; S9 return q; } For the above program, perform flow-sensitive, context-sensitive alias analysis (FSCS) andflow-insensitive, context-sensitive alias analysis (FICS). Showing you work will help in the assignment of partial credit. (a) For FSCS, what is the points-to set for variables r and s after statement S6? (b) For FICS, what is the points-to set for variables r and s in the main function?