You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
Adam Goldsmith 2857ac72a5 Sort of functional implementation 5 years ago
traces Initial Commit 5 years ago
.gitignore Ignoring test files, emacs drafts, and emacs buffers. 5 years ago
Makefile Added make test, which uses -Wextra, and doesn't use -Werror. 5 years ago
README delete trailing newlines 5 years ago
cachelab.c Initial Commit 5 years ago
cachelab.h delete trailing newlines 5 years ago
csim-ref Initial Commit 5 years ago
csim.c Slightly reorganized cache_access. Moved set re-linking to new function update_set. 5 years ago
driver.py Correct python version in driver.py 5 years ago
test-csim Initial Commit 5 years ago
test-trans.c delete trailing newlines 5 years ago
tracegen.c delete trailing newlines 5 years ago
trans.c Sort of functional implementation 5 years ago

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