Question: A program has 10 addition, 6 multiplication and 4 shift instructions. It is being run on a processor which takes 1 cycle to perform addition,
A program has 10 addition, 6 multiplication and 4 shift instructions. It is being run on a processor which takes 1 cycle to perform addition, 4 cycles to perform an multiplication and 2 cycles to perform shift instruction. What are the average cycles per instruction for the program?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
