assignment4 - CSCI 2021 Machine Architecture and...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI 2021 Machine Architecture and Organization Written Assignment 4 Due on May 6 th 2010 Name: ______________________ Section #: ______________________ Student ID: ______________________ These problems are from Chapters 5, 6, and 10 Problems 1-7 are good practice for the quiz. Please print off this document and write your answers in the space provided. Note that this assignment is being graded out of 300 points instead of 100. The textbook for this assignment is R. Bryant, D. O'Hallaron. Computer Systems: A Programmer's Perspective. Prentice Hall, 2003 .
Background image of page 1

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

View Full DocumentRight Arrow Icon
Problem 1 (45 Points) The following problem concerns optimizing a procedure for maximum performance on an Intel Pentium III. Recall the following performance characteristics of the functional units for this machine: Operation Latency Issue Time Integer Add 1 1 Integer Multiply 4 1 Integer Divide 36 36 Floating Point Add 3 1 Floating Point Multiply 5 2 Floating Point Divide 38 38 Load or Store (Cache Hit) 1 1 Consider the following two procedures: Loop 1 Loop 2 int loop1(int *a, int x, int n){ int y = x*x; int i; for (i = 0; i < n; i++) x = y * a[i]; return x*y;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/21/2011 for the course CSCI 2021 taught by Professor Staff during the Spring '08 term at Minnesota.

Page1 / 7

assignment4 - CSCI 2021 Machine Architecture and...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online