CS 2734 Computer Organization II -- Spring 2000


Laboratory 1 [Jan 19, 21]: Introduction to the Sun Laboratory

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 an account on the CS Sun network, 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:

    If you are a new user, you may want to download this sample .cshrc as your .cshrc

  4. Set up a personal homepage and register it by following these directions.

  5. Send an email to your instructor (wagner@cs.utsa.edu) giving your web page URL and your preferred email address.

  6. We will be using the MIPS simulator xspim to run our MIPS assembly language. The documentation for this simulator can be found at ftp://vip.cs.utsa.edu/pub/classes/cs2734f98/spim.ps. Put a bookmark or link to this documentation for easy reference.

  7. Create a cs2734/lab1 directory in your home directory.

  8. Download the MIPS assembly language test program fact2.s into your ~/cs2734/lab1 directory.

  9. Run the simulator on fact2.s by typing:
        spim -file fact2.s
    

    (You should type 3 (carriage return) at the prompt, the the program will calculate and print 3! or 6.)

    Next use the xwindows version of spim, by typing:

        xspim -file fact2.s
    

    When the simulator comes up, click on step to execute one instruction at a time or run to execute the entire program. In either case you should get 6 printed. (You will have to step until you have executed "syscall" and then type 3 and carriage return in the window.)


To get checked off in this laboratory:


REVISION DATE: 1/18/00