csci2021/CacheLab/cachelab-handout
Michael Zhang 1fa36db752
f
2018-01-29 17:45:27 -06:00
..
traces f 2018-01-29 17:45:27 -06:00
.csim_results f 2018-01-29 17:45:27 -06:00
.marker f 2018-01-29 17:45:27 -06:00
cachelab.c f 2018-01-29 17:45:27 -06:00
cachelab.h f 2018-01-29 17:45:27 -06:00
csim f 2018-01-29 17:45:27 -06:00
csim-MRU-ref f 2018-01-29 17:45:27 -06:00
csim-ref f 2018-01-29 17:45:27 -06:00
csim.c f 2018-01-29 17:45:27 -06:00
driver.py f 2018-01-29 17:45:27 -06:00
Makefile f 2018-01-29 17:45:27 -06:00
output.txt f 2018-01-29 17:45:27 -06:00
README f 2018-01-29 17:45:27 -06:00
test-csim f 2018-01-29 17:45:27 -06:00
test-csim.id0 f 2018-01-29 17:45:27 -06:00
test-csim.id1 f 2018-01-29 17:45:27 -06:00
test-csim.id2 f 2018-01-29 17:45:27 -06:00
test-csim.nam f 2018-01-29 17:45:27 -06:00
test-csim.til f 2018-01-29 17:45:27 -06:00
test-trans f 2018-01-29 17:45:27 -06:00
test-trans.c f 2018-01-29 17:45:27 -06:00
trace.f0 f 2018-01-29 17:45:27 -06:00
trace.f1 f 2018-01-29 17:45:27 -06:00
trace.tmp f 2018-01-29 17:45:27 -06:00
tracegen f 2018-01-29 17:45:27 -06:00
tracegen.c f 2018-01-29 17:45:27 -06:00
trans.c f 2018-01-29 17:45:27 -06:00
trans.o f 2018-01-29 17:45:27 -06:00
zhan4854-handin.tar f 2018-01-29 17:45:27 -06:00

This is the handout directory for the CS:APP Cache Lab. 

************************
Running the autograders:
************************

Before running the autograders, compile your code:
    linux> make

Check the correctness of your simulator:
    linux> ./test-csim

Check the correctness and performance of your transpose functions:
    linux> ./test-trans -M 32 -N 32
    linux> ./test-trans -M 64 -N 64
    linux> ./test-trans -M 61 -N 67

Check everything at once (this is the program that your instructor runs):
    linux> ./driver.py    

******
Files:
******

# You will modifying and handing in these two files
csim.c       Your cache simulator
trans.c      Your transpose function

# Tools for evaluating your simulator and transpose function
Makefile     Builds the simulator and tools
README       This file
driver.py*   The driver program, runs test-csim and test-trans
cachelab.c   Required helper functions
cachelab.h   Required header file
csim-ref*    The executable reference cache simulator
test-csim*   Tests your cache simulator
test-trans.c Tests your transpose function
tracegen.c   Helper program used by test-trans
traces/      Trace files used by test-csim.c