SoftwareIn addition to Scheme/Racket, CS136 students will need access to a C compiler. Because programming in C is subject to many mysterious memory-related bugs, we strongly recommend the use of a tool named valgrind as you develop C code. Valgrind has been integrated into set of tools collectively known as RunC. If your own computing environment is either Linux or Mac, you may try to get RunC running on your machine directly. You are on your own. It consists of the following tools:
Getting all this software going is a daunting task (except, perhaps, on Linux). Therefore, we strongly suggest that you use a prepared virtual machine instead. The basic idea is to use the VirtualBox software to run a complete, pre-configured, computer system on whatever computer you have. This also has the advantage of making valgrind available (indirectly) for Windows users; there isn't a native version of valgrind for Windows. The first tutorial will help you install and become acquainted with this software. Please do steps 1 and 2 before going to Tutorial. Tutorial leaders can help you with the remaining steps in tutorial. Of course, you can try them on your own as well.
NOTE: When you first run the virtual machine, it may prompt you to upgrade to the latest version of Ubuntu (11.04 - Natty Narwhal). Please do not perform this upgrade, as RunC hasn't been fully tested in the new enviroment. There is a RunC tutorial available. Note that one of the screen shots shows an incorrect C program. The text says how to correct it. Setting up RunC on your student.cs accountTo set up RunC on your own account, log in to one of the Linux labs on the second floor of MC. From there, follow the instructions on this page to set up RunC. |
Last modified on Tuesday, 01 May 2012, at 13:18 hours.