jeffk@tomalesbay:~/cache$ ./lab5a Usage: ./lab5a -A ASSOCIATIVITY -S CSIZE -B BSIZE FILE jeffk@tomalesbay:~/cache$ ./lab5a -A ./lab5a: option requires an argument -- A jeffk@tomalesbay:~/cache$ ./lab5a -A foo ./lab5a: invalid associativity `foo' jeffk@tomalesbay:~/cache$ ./lab5a -A 4foo ./lab5a: invalid associativity `4foo' jeffk@tomalesbay:~/cache$ ./lab5a -A 4 ./lab5a: missing option -- S jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S ./lab5a: option requires an argument -- S jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024foo ./lab5a: invalid cache size `1024foo' jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 ./lab5a: missing option -- B jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 -B ./lab5a: option requires an argument -- B jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 -B 123456 ./lab5a: invalid block size `123456' jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 -B 64 ./lab5a: missing operand after `64' jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 -B 64 trace1 trace2 ./lab5a: extra operand `trace2' jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 -B 64 foo ./lab5a: foo: No such file or directory jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 -B 64 Makefile Associativity: 4-Way Set Associative Cache size: 1024KB Block size: 64B Trace Input: ./lab5a: Makefile: invalid syntax on line 1 jeffk@tomalesbay:~/cache$ ./lab5a -A 4 -S 1024 -B 64 trace Associativity: 4-Way Set Associative Cache size: 1024KB Block size: 64B Trace Input: 2146980967 134514980 1328899880 2100183659 1884247095 711931474 2741516894 993144952 1785942654 jeffk@tomalesbay:~/cache$ ./lab5a -B64 -A4 trace -S1024 # no spacing, reorder Associativity: 4-Way Set Associative Cache size: 1024KB Block size: 64B Trace Input: 2146980967 134514980 1328899880 2100183659 1884247095 711931474 2741516894 993144952 1785942654 jeffk@tomalesbay:~/cache$ ./lab5a -A4 trace -S1024 -B64 -A8 # repeated -A option Associativity: 8-Way Set Associative Cache size: 1024KB Block size: 64B Trace Input: 2146980967 134514980 1328899880 2100183659 1884247095 711931474 2741516894 993144952 1785942654 jeffk@tomalesbay:~/cache$ ./lab5a -A4 -S1024 -B64 -- -A8 # -A8 is a trace file Associativity: 4-Way Set Associative Cache size: 1024KB Block size: 64B Trace Input: 2146980967 134514980 1328899880 2100183659 1884247095 711931474 2741516894 993144952 1785942654