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
Jacob dc67c24899 New and improved argument parsing with getopt.
Added checking that all arguments were provided.
Switched many variables to use size_t, and int8_t where appropriate.
Moved opening braces on to previous lines, except function braces.
Renamed set_bits to more-accurate index_bits.
2016-04-27 12:00:34 -04:00
traces Initial Commit 2016-04-24 20:07:46 -04:00
.gitignore Add .gitignore 2016-04-26 10:22:15 -04:00
Makefile delete trailing newlines 2016-04-24 20:12:20 -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 New and improved argument parsing with getopt. 2016-04-27 12:00:34 -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