This repository has been archived on 2020-09-21. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Adam Goldsmith 8548d6ede5 Move print_cache into main loop 2016-04-28 01:55:38 -04:00
traces Initial Commit 2016-04-24 20:07:46 -04:00
.gitignore Ignoring test files, emacs drafts, and emacs buffers. 2016-04-27 16:00:51 -04:00
Makefile Added make test, which uses -Wextra, and doesn't use -Werror. 2016-04-27 22:29:16 -04:00
README delete trailing newlines 2016-04-24 20:12:20 -04:00
cachelab.c Initial Commit 2016-04-24 20:07:46 -04:00
cachelab.h delete trailing newlines 2016-04-24 20:12:20 -04:00
csim-ref Initial Commit 2016-04-24 20:07:46 -04:00
csim.c Move print_cache into main loop 2016-04-28 01:55:38 -04:00
driver.py Correct python version in driver.py 2016-04-25 23:59:12 -04:00
test-csim Initial Commit 2016-04-24 20:07:46 -04:00
test-trans.c delete trailing newlines 2016-04-24 20:12:20 -04:00
tracegen.c delete trailing newlines 2016-04-24 20:12:20 -04:00
trans.c delete trailing newlines 2016-04-24 20:12:20 -04:00

README

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 instructorruns):
    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