Question: Instructions The program memory, written in C + + , is a PIN tool that dynamically instruments a process to collect a trace of memory
Instructions The program memory, written in C is a PIN tool that dynamically instruments a process to collect a trace of memory addresses referenced during execution. Your task is to: Modify 'PinTool.cpp so that the methods 'MemRead' and 'MemWrite' call the method 'Access' in Cache.cpp properly. Modify the file 'Cache.cpp included in the program archive and 'Cache.h if necessary, to simulate cache replacement operations using the Least Recently Used LRU cache replacement policy. For additional learning support to assist you in solving this assignment, please refer to the 'Relevant External Materials' page on Canvas. The source code comes with a README file that I created to walk you through the steps required to build and run the Pin Tool. Requirements Extend the template cache.cpp in memory.zip to Implement a virtually indexed, virtually tagged cache. Ensure that cache.cpp performs essential cache operations: Cache Reference: Check if a memory reference hits or misses in the cache. Cache Placement Mapping Function: Determine where to place an incoming block in the cache on a miss. Cache Replacement: Implement LRU cache replacement policy The LRU cache replacement policy simulation must accurately report statistics such as hit rate, miss rate, eviction rate, data movement in bytes, and cache utilization. Create a Makefile that compiles and runs your program efficiently. Write a README or a text file that clearly explains the structure of your LRU cache replacement policy simulator. Include details on any dependencies, and provide stepbystep instructions on how to use the Makefile to compile and run the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
