diff options
Diffstat (limited to 'cachelab-handout/csim.c')
| -rw-r--r-- | cachelab-handout/csim.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/cachelab-handout/csim.c b/cachelab-handout/csim.c deleted file mode 100644 index 007d04b..0000000 --- a/cachelab-handout/csim.c +++ /dev/null @@ -1,52 +0,0 @@ -#include "cachelab.h" - -#include <stdio.h> - -#include <getopt.h> -#include <stdlib.h> -#include <unistd.h> - - -int time,s, E, b, setIndexLen, blockLen; -char traceFile[200]; - -void findSlot() -{ - ; -} - -void solve() -{ - ; -} - -int main(int argc, char *argv[]) -{ - int opt; - while ((opt = getopt(argc, argv, "s:E:b:t:")) != -1) - { - switch (opt) - { - case 's': - s = atol(optarg); - break; - case 'E': - E = atol(optarg); - break; - case 'b': - b = atol(optarg); - break; - case 't': - snprintf(traceFile, sizeof(traceFile), "%s", optarg); - break; - case '?': - printf("Unknown\n"); - break; - default: - break; - } - } - - printSummary(0, 0, 0); - return 0; -} |
