Assume you have the following relative instruction frequency and their respective cycles per instruction:

Arithmetic/logical instructions 57% with 1 cycle
Load instructions 22% with 3 cycles
Store instructions 6% with 2 cycles
Unconditional branches 10% with 2 cycles
Conditional branches 5% wit 2 cycles

What is the average cycles per instruction?
A: 1.60
B: 1.55
C: 1.70
D: 1.45
E: 1.65

Answer: E: 1.65

If we say that there are 100 instructions, then:

57 of them are Arithmetic/logical

22 of them are Load instructions

6 of them are Store instructions

10 of them are Unconditional branches

5 of them are Conditional branches

(57 * 1) + (22 * 3) + (6 * 2) + (10 * 2) + (5 * 2) = 165 cycles/100 instructions

Therefore, there are 1.65 Cycles per instruction.

Computer Science & Information Technology

You might also like to view...

By default, tables are sorted in ascending order by the primary key field

Indicate whether the statement is true or false

Computer Science & Information Technology

How do you send a value to a function?

What will be an ideal response?

Computer Science & Information Technology