CS611
Programming Assignment 6
Spring 1997


Write Alpha assembly code for the two programs given by the C code in ~cs611/public/prog6. One program computes pi and the other program is a prime number sieve.

Points will be assigned in the following manner:

Use the shell command "time" to time the program (ie time a.out). The time command shows the user time as the first (leftmost) metric.

Put your programs in the files pi.s and sieve.s.

You may lose points if your program is not properly structured or adequately documented. Remember that with an assembler program documentation is even more important than with C or C++ programs.

Your programs will be graded using an Alpha machine (e.g. hopper) so be sure to test in that environment.

Your programs should be submitted for grading from either hopper or christa. To turn in this assignment, type:

~cs611/bin/submit prog6 pi.s sieve.s

Notes:

Submissions can be checked by typing:

~cs611/bin/scheck prog6

To receive full credit for the assignment, you must turn in your files prior to 8am on Monday April 28. Late submissions will be accepted at the penalty of 5% per day up to one week late.

Remember: as always you are expected to do your own work on this assignment. In particular, on this assignment you are expected to write the assembly language yourself and not to exploit any assembly-language-generation tools.


Last modified on April 13, 1997.

Comments and questions should be directed to pjh@cs.unh.edu