This page includes links to a variety of tips, tricks, and guides you may find useful during the semester. This is a new addition to the course website, so I will be gradually adding material here. If you have specific requests for topics that you’d like to see here, feel free to send requests by email or mention them in class. Pages are organized by category below.
LeakSanitizer is a useful tool that helps you track down memory leaks in your C programs. To use LeakSanitizer, you have to pass in some additional options to your program compilation.
Running the same command over and over again can be a pain in the shell.
With a small amount of configuration, you can set up a repeat shell command that makes this a bit more convenient.
You may end up in a situation where you’d like to run a command you’ve run before, but you aren’t quite sure the last time you ran it. You could hit the up key until you find it, but you can search your shell history instead.
For many of the assignments in this class, you will need to compare your program’s output to some known correct output. This is fairly easy to do for a few cases, but it can get quite annoying if you have to do it repeatedly.