{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW 3 - CS 211 Fall 2008 Homework 3 Due October 14th 6pm...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 211- Fall 2008: Homework 3- Due October 14 th , 6pm Ques 1. For the following code fragment, assume that all data references are shown, that all values are defined before use, and that only b and c are used again after this segment. You may ignore any possible exceptions. The individual statements are numbered to provide an easy reference . 1 . if (a > c } ( 2 . d = d + 5 ; 3 . a= b + d +e {; { else } 4 . e = e + 2 ; 5 . f = f + 2 ; 6 . c = c + f ; { 7 . b = a + f ; ) a) List the control dependencies in the code. For each control dependence, tell whether the dependent statement can be scheduled before the if statement based on the data references . ) b) Assume a dynamically scheduled multiple-issue processor without speculation and with a window (i.e., scope of ILP) that is holding the entire code fragment. Find the data dependencies and use this information to make a list of the successive groups of statements that are issued together . ) c) It is given that only the values b and c are live after the code segment. If it is
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern