2: Simulation, eg using Simplescalar (www.simplescalar.org)
Simplescalar is a parameterisable simulator with an instruction set based on MIPS. Compile your application using a special cross-compiler, then use one of the simulators:
% ~phjk/simplescalar/bin/sslittle-na-sstrix-gcc -O3 MM.c % ~/simplescalar/simplesim-2.0/sim-cache ./a.out ... ul2.miss_rate 0.4959 # miss rate (i.e., misses/ref) ...
The SimpleScalar toolkit comes with other simulators which allow you to study other aspects of processor design.