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.
You might also like to view...
Which of the following is NOT a common operating system?
A) Linux B) Mac OS C) IBM D) Windows
Provide steps to prepare the virtual environment.
In this lab, you will investigate a possible SQL injection to access the SQL database on the server. You will also review the logs to investigate a possible data exfiltration and the method of exfiltration.
When multiple reviewers are working on a document, comments by each reviewer are identified by the author's name and are assigned a(n) ________
A) color B) order C) code D) reviewer number
Describe the advantage of using performance monitoring software.
What will be an ideal response?