Browse Source

Added usage string.

masstesting
Jacob 6 years ago
parent
commit
0a3f87840d
  1. 9
      csim.c

9
csim.c

@ -4,7 +4,14 @@ @@ -4,7 +4,14 @@
void print_usage()
{
printf("Usage:\n");
printf("Usage: ./csim [-hv] -s <number> -E <number> -b <number> -t <file>\n"
"Options:\n"
" -h Print this help.\n"
" -v Display trace info.\n"
" -s <number> The number of sets is the base-2 logarithm of this argument.\n"
" -E <number> Associativity (lines per set).\n"
" -b <number> Block size in bits is the base-2 logarithm of this argument.\n"
" -t <file> Name of the file to read a valgrind trace from.");
exit(0);
}