Writing a Cache Simulator
You will write a cache simulator in csim.c that takes a valgrind memory trace as input, simulates the hit/miss behavior of a cache memory on this trace, and outputs the total number of hits, misses, and evictions.
We have provided you with the binary executable of a reference cache simulator, called csim-ref, that simulates the behavior of a cache with arbitrary size and associativity on a valgrind trace file. It uses the LRU (least-recently used) replacement policy when choosing which cache line to evict.
9 freelanceria on tarjonnut keskimäärin $122 tähän työhön
I have 12+ years experience in C and C++ programming. I have worked on multiple cache simulator using valgrind traces and can help you here. Ping me with more details so we can work on this.