Frequently Asked Questions
How do I set my path?
To set your path, use an editor to modify the file .cshrc.localin your home directory. You may use any text editor. Enter the following set path statement correctly at the end of your .cshrc.local file.
Make sure you type in the set path statement exactly as follows, paying special attention to spelling and spaces.
set path = ($path /p/course/cs354-common/public/bin)
Remember to end the statement with a carriage return (the the Enter or Return key).
To let changes to .cshrc.local take effect, logout and then log back in.
How do I forward e-mail from my class account to my student account?
Place the address of your student account into the ~/public/.forward file of your class account.
For example, if your student account is abcdef, enter the following line in your ~/public/.forward file.
abcdef@students.wisc.eduRemember to end the line with a carriage return.
Simulator
How do I run the simulator for SAL programs?
We use a simulator to run programs. A simulator is a program that appears to be something else. In this case, we are simulating a machine that would execute SAL code.Under UNIX, run the simulator with the command
/p/course/cs354-common/public/bin/simp p0.s
wherep0.s
is an example of a file name that contains the SAL source code.It is a UNIX convention to identify assembly language source code by using the suffix
.s
on the file name. This suffix is not required.For the long term, you will want to add the following directory to your path.
/p/course/cs354-common/public/bin
Look at the section above titled "How do I set my path?" for how to do this.
After your path has been modified, you will be able to run the simulator with
simp p0.s
How do I run the simulator for MAL programs?
Under UNIX, run the simulator with the command
/p/course/cs354-common/public/bin/sim p2.s
wherep2.s
is an example of a file name that contains the MAL source code. It is a UNIX convention to identify assembly language source code by using the suffix.s
on the file name. This suffix is not required.For the long term, you will want to add the following directory to your path.
/p/course/cs354-common/public/bin
Look at the section above titled "How do I set my path?" for how to do this.
After your path has been modified, you will be able to run the simulator with
sim p2.s
Can I run the simulator on my home computer?
Yes, there are UNIX and PC versions of the simulator, that will run on most home computers. SPIMSAL will help with all but the last two programs of the semester. Instructions for getting SPIMSAL
You may run the graphic version
sim
from a telnet or ssh connection, but you will need to install an X-server first.
Is there any documentation for the simulator?
Yes, there is a postscript document that explains the graphic version
sim
of the simulator.You should save the document to your directory and then use a program like GhostView to read and/or print the document you've saved.