COMP226 Prac 2 quick start




For students who haven't used Unix much, here are a few quick notes, so that you can get started on Prac 2 immediately.

First, please note that it is very important that you do become familiar with Unix and make good use of your titanic account (as opposed to just using Windows on a machine in the lab). You can access your titanic account using Putty from the lab machines. Please get used to Unix as soon as possible.

Next, in case you do need help getting files so that you can work on Prac 2, I've put all the example SPARC programs in a titanic directory so that you can get them easily. Just log into your titanic account and type at the unix command prompt:

	cd
	cp /home/student/comp226/examples/* .
and you will have a complete set of the program examples in your titanic home directory. You can then use as-isem and ld-isem at your unix command prompt to assemble and link files (as described in the pages linked to the prac 2 page), and
	tkisem &
to simulate their execution.

Make sure that you've soon learned enough about Unix so that if someone asks you what that cp command above was doing you'd be able to explain it to them! Anyway, if you don't know what it means just now, that's OK -- just use it and go ahead and get started.

(However you do it, don't forget that you need to have the files in your titanic directory, not on the C drive of the machine that's in front of you.)

I haven't checked this yet (I can't, because I don't have a student account), but on the machine in front of you, see if there is an H drive. I believe that will be mounted as your titanic home directory. That's very useful, because it means you can edit files on titanic however you like to edit them under Windows. Here's hoping! (And please let me know in the prac if it doesn't seem to be like this.)

So, here's how it all can work. Copy the example files into your home directory (as above). Create new files, or edit files in the H drive (under Windows, but the files will really be in your titanic home directory). Through your ssh window, assemble and link files on titanic (as-isem, and ld-isem, as described in the pages linked to the prac 2 page), load executables into tkisem via its window (and from your home titanic directory), and then watch them execute in the tkisem window.

It's not as complicated as it sounds once you've done this a few times!


Comp226 Home Page August 2013