Homework #1
Most problems for this homework are from the textbook.
Comment based on the histogram. The files to use are: The first contains the traces obtained by executing the Spice circuit simulator and the second one has been obtained by running TeX to format some document. Each line in the file has two fields: the first field indicates what kind of operation the CPU performs (read, write, etc.), and the second field is the address; for this exercise you only need to consider the second column in the file. You will compile and run the programs on two different systems (most likely one of them will be some PC and the other one some UNIX station made available to you by IIT). Measure the time it takes the program to complete and then compare the performance of the two systems. Since the matrices are randomly generated, you will have to run the program several times, measure the running time and then take the average. Also the running time has to be significantly large (many seconds) to avoid measuring errors; this means you will have to work with matrices that have at least hundreds of lines and columns. Is the performance ratio the same as the clock rate ratio of the two systems? Explain. Based on the retail price of the two systems, which one is more cost effective? Make sure your work includes a description of the two systems (manufacturer, CPU type, amount of memory, etc.) and of the compiler used. Attach the source code and the tables with your time measurements for your work.
$Id: hw1.html,v 1.1 2007/09/02 04:09:11 virgil Exp $ |