Quickstart

From Msim

Jump to: navigation, search

Conventions

<m-sim> refers to the installation directory for M-Sim.
<spec2K> refers to the benchmark directory, we assume the following: <m-sim>/<spec2K>

General usage

From the <spec2K> directory:

  • ls *.arg
    • Lists all available benchmarks, you may need to replace gcc.arg and wupwise.arg with some other .arg file.
  • ../sim-outorder
    • M-Sim will dump all of its command line information to the terminal
  • ../sim-outorder -fastfwd 1000000 -max:inst 2000000 gcc.arg
    • M-Sim will simulate gcc for 2 million insts, fast forwarding the first million
  • ../sim-outorder -fastfwd 1000000 -max:inst 2000000 gcc.arg wupwise.arg
    • M-Sim will simulate a single core, and run gcc and wupwise on that core. Both are fast-forwarded past the first million insts and simulated for 2 million insts.
  • ../sim-outorder -fastfwd 1000000 -max:inst 2000000 -num_cores 2 gcc.arg wupwise.arg
    • M-Sim will simulate two cores, gcc on the first, wupwise on the second.
  • ../sim-outorder -fastfwd 1000000 -max:inst 2000000 -num_cores 2 -rf:size_0 128 -rf:size_1 256 gcc.arg wupwise.arg
    • M-Sim will simulate two cores, gcc on the first with 128-entry register file, wupwise on the second with a 256-entry register file.
Personal tools