This documents instructs you on how to setup a C programming environment for your Macintosh computer. The instructions will deal with configuring one of the laptops purchased through SCI, although if you bought your own equipment you should be able to adapt the instructions below. All of the software below is either shipped with your SCI computer or can be downloaded from the Web.
|
|
You can enter a command by typing it in the Terminal window followed by the "Enter" or "Return" key.[localhost:~] wayne%
Now, type in the following text and save the file with Ctrl-o.[localhost:~] wayne% pico .tcshrc
You probably won't be using the pico editor very often, but it's sometimes useful. (This adds the current directory to your path and tells the compiler to allow only legal ANSI C programs. If this sounds like gibberish, don't worry about it.)setenv PATH ${PATH}:. alias gcc126 'cc -ansi -Wall -W -O'
|
The Developer Tools include a C compiler, debugger, and lots of other goodies. It should be pre-installed on all recent Apple machines. To see if it is installed on our machine, go to the Terminal and type
If it says /usr/bin/cc, then you're ready to go; if it says cc: Command not found., then you need to install the Developer Tools. You should have a CD with your copy of OS X; if not you can go to http://developer.apple.com, register for a free ADC membership, go to Downloads, and download the appropriate version of the OS X Developer Tools.which cc
|
We recommend using Project Builder and adding it to your dock. It is included with the Developer Tools. On my system, you can find it from the Finder via Computer -> OS X Partition -> Developer -> Applications -> Project Builder.
BBEdit is another popular text editor for the Mac. The "Lite" version is freeware. It can be downloaded from www.bbedit.com.
|
MacGSView is a program that allows you to view PostScript files. You will need such a program when we create graphics, starting in Assignment 2.
|
Acrobat Reader allows you to view pdf files. Many of the documents on our Web site are in this format. If you bought your computer from SCI, you probably have the OS 9 version of Acrobat installed. We recommend upgrading to the OS X version.
|
Fetch is an FTP client that allows you to transfer files to and from your computer. On many assignments we provide various sample code and data files which you will probably want to download.
|
Nifty telnet is a telnet
and
ssh
client that allows you to
login to a remote system such as arizona
. If you plan to edit
and compiler programs under OS X, you may not need this program.
|
Some of the in-class demos are in PowerPoint format.
|
It is automatically installed along with OS X.