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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!