SimpleScalar Installation Under Windows

Installing the SimpleScalar simulator is relatively straightforward under Linux. For Windows installation, the Cygwin toolchain is required. Grab the latest Cygwin installer (setup-x86_64) from here: (note that this is intended for 64-bit machines).

After running the installer, just proceed through the wizard. The default installation directory is C:\cygwin64. When selecting a mirror website, usually is the fastest mirror. Select where you want the Cygwin packages to be installed. In the package installation window, select the following packages under Devel:

  1. gcc-core
  2. gcc-g++
  3. make

Also, under Web select the w3m package (this will make the download process much easier). The installer will say that additional dependencies are needed. Click “Yes” to install the additional dependency packages.

Note: To install a package, you can simply click on the circular arrows next to the name of the package. The text next to the arrow will cycle between “skip” and the desired version of the package. Feel free to install the latest available version of each of the packages above.

After the installation of Cygwin is finished, simply open a Cygwin bash terminal (by opening “Cygwin64 Terminal” from the installed programs in Start menu) and follow these steps (credits go to Ramya Pradhan):

  1. Download SimpleScalar:
    Use the arrow keys to navigate to the bottom of the page to accept the terms. Move the cursor to ‘I Agree’ and hit enter. You will see a message ‘(Download) Save file to: simplesim-3v0e.tgz’ at the bottom of the page, hit enter to save file in the current directory. To get out of the browser, press q.
  2. Compile SimpleScalar
     tar xvzf simplesim-3v0e.tgz
     cd simplesim-3.0
     make config-pisa
  3. Test the installation using
     ./sim-safe tests/bin.little/test-math


Skip to comment form

    • Tamanna Afroze on January 21, 2017 at 10:43 PM

    Thanks for this specific help. It is really helpful. I have done the same processes under ubuntu. Unfortunately, it is not working correctly. Some steps may be missing or my distribution is not full.

    • bojan on December 15, 2017 at 3:40 AM

    thank you so so much! that worked for me!

    1. Glad it helped!

    • Austin on January 31, 2018 at 7:22 PM

    I am getting a few undefined references errors when I do the “make” command; specifically to “md_opoffset”, “md_opmask”, and “md_opshift”. Do you have any solution for this? Thanks,

    • Ugwueze Kingsley on September 3, 2018 at 1:53 PM

    Thanks a lot for this tutorial but I have a question. How do I download and install other simplescalar utilities using this using this cygwin bash terminals?

Leave a Reply

Your email address will not be published.