Usage (Student Resources)

From Msim

Jump to: navigation, search

Also refer to Quickstart and Usage for information.

Command Line Options

From the benchmark directory, "../sim-outorder" will cause M-Sim to dump the configuration list.
Here are the ones most relevant to class:

  • -fastfwd <num>: Fast forwards all of the benchmarks for <num> instructions
  • -max:inst <num>: Tells the simulator to stop once one thread has committed <num> instructions
  • -redir:sim <filename>: Causes the major simulator output to be sent to <filename> instead of stderr
  • -redir:prog <filename>: Causes the simulated output (the result of the benchmarks) to be sent to <filename>. This only captures simulated output that would have been sent to stdout. Some benchmarks output directly to files!
  • -redir:err <filename>: Causes the simulated output (the result of the benchmarks) to be sent to <filename>. This only captures simulated output that would have been sent to stderr. Some benchmarks output directly to files!
  • -lsq:size <num>: The size of the Load-Store Queue
  • -rob:size <num>: The size of the Reorder Buffer
  • -iq:size <num>: The size of the Issue Queue
  • -rf:size <num>: The size of the architectural file, <num> integer registers and <num> floating point registers

Sample Usage

You won't want to run for hundreds of millions of instructions until you are sure that something works. In general, running for 5-10 million is a good indicator that you didn't severely break anything.
Make sure you are in your benchmark directory (usually spec2K)

  • ../sim-outorder -fastfwd 10000000 -max:inst 5000000 -rf:size 256 gcc.arg wupwise.arg
  • ../sim-outorder -fastfwd 10000000 -max:inst 5000000 -rf:size 128 art.arg sixtrack.arg
  • ../sim-outorder -fastfwd 10000000 -max:inst 5000000 -rf:size 128 twolf.arg applu.arg
  • ../sim-outorder -fastfwd 10000000 -max:inst 5000000 -rf:size 256 swim.arg mcf.arg crafty.arg gcc.arg
Personal tools