Information
clang -Werror -Wall -Wextra -ansi -pedantic -g -O2 sample-driver.c cachelist.c PRNG.c -o cachelist
where X is the test number to run. See the driver for details../cachelist X
To detect memory errors and leaks, run it under valgrind like this:
replace X with the test number to run.valgrind -q --leak-check=full --show-reachable=yes --tool=memcheck ./cachelist X
You need to capture your shell session that shows various things like compiling and running the program, using diff to make sure your output is correct and running with valgrind and then running Doxygen. After you've finished coding and testing everything and are sure everything is correct, use the script command to make a text file of your session. From the bash shell in the directory you've setup to test with, run these commands: (You'll need a proper Doxygen config file called Doxyfile for the doxygen command to work. Make sure you set QUIET=YES in the config file so that you can see any warnings that might be displayed.)
Then, press Ctrl-D to end the script session. A file named typescript was created with all of the commands and output. Replace FIRSTNAME and LASTNAME with your real first name and last name. This is how you get your name in the typescript file. Consult the man pages here.if you want more information on script.script date uptime echo FIRSTNAME LASTNAME pwd whoami uname -a cat /proc/cpuinfo cat /proc/meminfo clang -g -Werror -Wall -Wextra -ansi -pedantic sample-driver.c cachelist.c PRNG.c -o cachelist ./cachelist | tee output.txt diff output.txt output-all.txt valgrind -q --leak-check=full --show-reachable=yes --tool=memcheck ./cachelist > /dev/null doxygen ls -al html/ ls -al latex/