Cocoa - how to runYou must define the environment variables to point to the location of the directory containing JDK, Cocoa, and Jasmin. Add the following to your.profile (or .cshrc) file:
COCOADIR=/home/coen175/cocoa JASMINDIR=/home/coen175/jasmin JAVADIR=/opt/java CLASSPATH=.:$JAVADIR/lib/classes.zip:$COCOADIR/lib:$JASMINDIR/classes PATH=.:$COCOADIR/bin:$JASMINDIR/bin:$PATH export COCOADIR JASMINDIR JAVADIR CLASSPATH
You should also set up a mirror directory structure for YOUR VERSION of cocoa. You might want to give your executable a different name (like mycocoa) so you can tell when you're running YOUR executable versus the one in the course account (the A+ binary). So you might need another environment variable, etc. You will be changing the code in the src directory, recompiling (using the makefile) and creating a new binary. Don't forget to copy the binary into the bin directory. jasmin directoryThis contains the jasmin assembler. You should peruse this directory in conjuntion with the jasmin online page to look at the assembler code. You will be invoking the jasmin assembler on the code your compiler produces (.j files)! This directory contains:
|
COEN175 Home Page
Linda Seiter
This page is located at http://www.cse.scu.edu/~lseiter/coen175/cocoa/howtorun.html |