diff options
| author | ov-4 <hausemasterstream@gmail.com> | 2026-05-24 14:34:28 +0000 |
|---|---|---|
| committer | ov-4 <hausemasterstream@gmail.com> | 2026-05-24 14:34:28 +0000 |
| commit | 21c76a8ece5a7652d760c6f3d74c0dab2c55e0bd (patch) | |
| tree | 5b0dc60481497a81ff5f23f87612188fdea72b59 /cachelab-handout/csim.c | |
| parent | af1ddae06b2eef9e94b65272200a5847d8a0eeaf (diff) | |
finished part A, with modern C++
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; -} |
