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
just give me commands with explanation to find CPI,registers......in linux using
SimpleScalar 3.0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started