SimpleScalar Simulator
The simulator is located on in the top-level directory
/cse/courses/cse548/01wi which is crossmounted to the GWS Linux
machines and the instructional Linux machines. There is also a gzipped tar file
ready to run on Intel Linux platforms available here.
The directory contains the following subdirectories:
-
bin:
This contains the binaries for the simulator and cross-compiler. The one that
you need to use is called sim-outorder which is the detailed
microarchitecture simulator, modelling in detail an out-of-order microprocessor
with branch prediction, caches and external memory.
The cross-compiler works just like conventional gcc, except that it creates
binaries for the SimpleScalar simulator.
-
tests:
This contains pre-compiled test programs for the Simplescalar machine.
-
spec95-little:
The Simplescalar executables in this directory are from the SPEC95 benchmark
suite. The little refers to the fact that we are using little endian machines.
-
config:
This directory contains the default configuration. The simulator can be
configured by using command-line options or by specifying a configuration file
using the command-line option -config <configfilename>
-
inputs:
This contains sample inputs for the various Simplescalar executables. For
example for the file perl.ss in spec95-little it contains a
perl script charcount and an input file for a perl script
all_grep_words. So to run this program, the following command needs to
be issued in the top-level directory:
bin/sim-outorder spec95-little/perl.ss inputs/charcount
inputs/all_grep_words
This takes roughly 15min to execute, so try running some files in
tests or
bin/sim-outorder spec95-little/perl.ss -v
first to get a feel for what the output looks like.
Note: The simulator outputs the statistics to stderr not
stdout, so piping it to less or redirecting the output will
not work. Use
command |& less