

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Date Assigned: 9/ 7 / Due Date: 9/ 21 /2007, 23:59:
The goal of this project is to use simulator to profile executions of given benchmark programs, analyze performance for different computer systems based on the benchmarks, and the roles of the compiler in this process. This is an individual project.
In this project, you need to use SimpleScalar simulation tools to profile the commercial benchmark programs as well as other C-source programs. The SimpleScalar tool set, originally developed at the University of Wisconsin-Madison, is a set of tools---including compiler, assembler, linker, simulation, and visualization tools---for the SimpleScalar architecture to simulate the programs on a variety of modern processor systems. Figure 1^1 gives an overview of the SimpleScalar tool set. More information on the Simplescalar tool set can be found at the SimpleScalar Tools web page ( http://www.simplescalar.com ). The SimpleScalar tool packages have been installed in the Unix machines under directory /usr/local/simplescalar/. The following example shows how you can run the SimpleScalar command, i.e., sim-profile command. Example: /usr/local/simplescalar/simplesim-3.0/sim-profile -iclass go.ss 2 8 go.in where (^1) Adopt from http://www.simplescalar.com/docs/users_guide_v2.pdf
go.ss is the SimpleScalar pre-compiled binary for the go benchmark. 2 and 8 are the two required input parameters for the go simulation. go.in is a file that specifies the starting board position (in this case an empty file.) For more detailed information on how to use SimpleScalar simulation tools, you can refer to the Simplescalar Too Set Document on the web.
m, n, and k, randomly generates two matrices, and then computes their product. Compile it with SimpleScalar compiler (i.e.,