CS 2734 Computer Organization II

Laboratory 1

Laboratory 1 is an introduction to the Sun laboratory, the windows system, and the mechanics of assembling programs. The Sun laboratory is located in room 3.02.04SB. The first laboratory meets in this room rather than the classroom.
  1. If you do not already have a ringer account, fill out and sign the account form.

  2. If you are unfamiliar with the UNIX environment you should purchase a UNIX book such as UNIX SYSTEM V A Practical Guide by M. Sobell. (This book is used in CS 1713.)

  3. You should be familiar with the following UNIX utilities and programs:
    1. vi - for editing
    2. make - for compiling programs
    3. lint - for checking consistency
    4. mail - for sending mail
    5. rn or tin - for reading news
    6. netscape - for accessing the world wide web
    7. open windows - the windowing environment on Sun workstations

  4. Make the cs2734/assembly directory in your ringer account:

    mkdir cs2734
    cd cs2734
    mkdir assembly

  5. In your cs2734/assembly

    directory copy a certain tar file as follows:
    cd ~/cs2734/assembly
    cp ~cs3733s/cs2734/cs2734assembly.tar.gz .

  6. Unzip it:

    gunzip cs2734assembly.tar.gz

  7. Untar it:

    tar -xvf cs2734assembly.tar

    You should have subdirectories:
    calc
    passaddr
    passvalue
    returnvalue

  8. Print the source code from each of the four subdirectories using prtext. (Be sure that you only print source and not executables, e.g. .c files and .m files.) Bring all of your printouts to class on Friday, August 30.

  9. Compile and run the code in each of the four subdirectories. For example, change to the passvalue directory, execute make, and then run the resulting executable.

    cd passvalue
    make
    simple

  10. To get checked off in this laboratory.