Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a program P with the following mix of operations: Floating-point add: 25% Floating-point multiply: 10% Floating-point divide: 10% Integer instructions: 55% To execute this

image text in transcribed

Consider a program P with the following mix of operations: Floating-point add: 25% Floating-point multiply: 10% Floating-point divide: 10% Integer instructions: 55% To execute this program, also consider two machines M1 and M2 such that M1 has floating-point hardware while M2 does not. M1 requires the following number of clock cycles for each instruction class: Floating-point add: 5 Floating-point multiply: 7 Floating-point divide: 19 Integer instructions: 2 For M2, every integer instruction requires 2 clock cycles and we can emulate the floating-point operations using integer instructions. The number of instructions needed to implement each floating-point operation is as follows: Floating-point add: 15 Floating-point multiply: 30 Floating-point divide: 50 The clock rate for M1 is 1GHz, and for M2 is 800 MHz. Find which machine is faster in executing program P

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions

Question

5. How can you develop media literacy?

Answered: 1 week ago