To run this test, modify myCache.h with the settings you want and then compile myCache: gcc -g -O0 -m32 myCache.c -o myCache For a comparison of row vs. col order on a real cache: First, run in row order: //#define PRINT_CACHE #define ARRAY_WIDTH 10000 #define TEST_RUN_MODE ROW_MAJOR_ORDER #define NUM_TESTS 10 then run in column order: //#define PRINT_CACHE #define ARRAY_WIDTH 10000 #define TEST_RUN_MODE COL_MAJOR_ORDER #define NUM_TESTS 10 To test the dummy cache, set the cache settings you'd like and set the test settings as: #define PRINT_CACHE #define ARRAY_WIDTH 10 #define TEST_RUN_MODE ROW_MAJOR_ORDER #define NUM_TESTS 1 Feel free to play around. Remember you can always re-download if you get stuck!