Write a programming assignment in c or c++, you will need tomeasure the cache miss ratio. The trace will be read from text filelike below:
2 400170 8fa400000 7ffebc64 02 400174 3c1c10022 400178 279ce7102 40017c 27a500042 400180 af85abb41 100192c4 02 400184 24a600042 400188 410802 40018c af80abb8
………….
there are 1 million enrties in the text file, so we have to readthat traces and say the miss ratio.
In the first column 0 means read,1 means write and 2 meansinstruction fetch. and the second column is of the address.
Expert Answer
Answer to Write a programming assignment in c or c++, you will need to measure the cache miss ratio. The trace will be read from t…