COSC 201: Computer Organization

Lab 9: Caches

For this lab you have the choice of two different versions. For either version you may work with a partner, submitting a single report for the partnership.


In this version you will use the MARS simulator with its data cache tool to investigate the performance of programs with different types of data cache. The programs investigated simply do matrix multiplication, a very common application in many fields.


In this version you will do paper and pencil exercises to study the effects of different types of instruction caches on program performance. In one set of problems you will look at how cache performance works for longer and longer versions of a program. In the second set of problems you will investigate program performance for different caches for a program involving loops and function calls. The specific purpose of the programs is not important, only how they interact with the caches.