Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started