From 0a3f87840d31563590465489c4462d054783bf4b Mon Sep 17 00:00:00 2001 From: Jacob Date: Mon, 25 Apr 2016 17:45:52 -0400 Subject: [PATCH] Added usage string. --- csim.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/csim.c b/csim.c index e66cd5a..4ca764e 100644 --- a/csim.c +++ b/csim.c @@ -4,7 +4,14 @@ void print_usage() { - printf("Usage:\n"); + printf("Usage: ./csim [-hv] -s -E -b -t \n" + "Options:\n" + " -h Print this help.\n" + " -v Display trace info.\n" + " -s The number of sets is the base-2 logarithm of this argument.\n" + " -E Associativity (lines per set).\n" + " -b Block size in bits is the base-2 logarithm of this argument.\n" + " -t Name of the file to read a valgrind trace from."); exit(0); }