Question: a) Write a simple c program that divides two numbers, name it div.c For the div.c program find a) CPI b) how many cycles are
a) Write a simple c program that divides two numbers, name it div.c
For the div.c program find
a) CPI
b) how many cycles are needed to execute the program
c) How many registers are used?
d) Pick a cycle that shows the instruction/s
e) Pick a cycle that shows the pipeline states
f) Pick a cycle that shows the cache miss
g) Pick a cycle that shows the branch misprediction,
h) Pick a cycle that shows the branch misprediction detected
help me commadns to run these in simplescaler in linux
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
