Assignment 2, due Sept 8

Part of the homework for 22C:40, Fall 2003
by Douglas W. Jones
THE UNIVERSITY OF IOWA Department of Computer Science

Announcement

The Iowa chapter of the ACM is holding a Unix tutorial/refresher course on Wednesday Sept 3, in 301 MLH (the third-floor lab) at 6:30. This is a good way to get up to speed on Unix, and it's a good way to get involved with the ACM chapter!


The Homework

Always, on every assignment, please write your name legibly as it appears on your University ID and on the class list! All assignments will be due at the start of class on the day indicated, and unless there is what insurance companies call "an act of God", the only exceptions to this rule will be by advance arrangement.

  1. Do the following exercises from Chapter 3 of the notes:

Access to the SMAL assembler

Login to your class account on one of the Linux machines. Then, do one of the following:

  1. run the command ~dwjones/22c40setup.sh

  2. edit the file .cshrc to add the following 3 lines at the end:
    	alias smal ~dwjones/smalstuff/smal32.intel -U ~dwjones/hawk
    	alias hawk ~dwjones/hawk/hawk.intel
    	alias link ~dwjones/hawk/link
    

These two alternatives do identically the same thing, as you can verify by examining the contents of .cshrc (note that the leading dot on a Unix file name makes this a hidden file, it doesn't show up when you list your directory unless you use the ls -a command).

Having done this, you are all set to use the smal command to run the assembler, and to use the link and hawk commands that we will discuss later.