Code Monkey home page Code Monkey logo

how-to-install-simplescalar-on-ubuntu's Introduction

How-to install SimpleScalar on Ubuntu

EDIT June 2017: Using the Dockerfile, you can use this script whatever your OS. Install Docker, then follow comments at the top of Dockerfile.

SimpleScalar is a VLIW processor simulator. It allows to access measures like execution time, caches misses, and branch mis-prediction rates. It is entirely scalable: cache size and type, number of UAL entities, branch predictor types are customizable. It can be used as a tool for understanding Design-Space-Exploration. Unfortunately, the installation is a hassle due to an outdated code source.

The following script intends to automate the installation process with Ubuntu. It has been tested with Ubuntu 16.04 LTS and gcc 4.6. It may not resolve all the errors you will have to face: don't hesitate to contribute if you think the script has to be improved. If you can choose not to use this simulator, you might want to take a glance at other simulators like SoCLib or gem5. A more exhaustive list is available at wikipedia (en)

The script

install_simple_scalar.sh will create ~/simple_scalar, and install SimpleScalar in it. Set the script as executable (chmod +x install_simple_scalar.sh), run it, this it it! You should be able to compile your first program using a command-line such as: "sslittle-na-sstrix-gcc -x c++ main.c"

Miscellaneous

  • gcc 2.6 does not accept inline comments with C. A simple workaround is to compile your C code as if it was a C++ code: use for instance sslittle-na-sstrix-gcc -x c++ main.c
  • You might want to change some compilation flags in the SimpleScalar Makefile: Replace "-O0" by "-O3 -march=native -fstrict-aliasing" and removing the "-DDEBUG" flag gives a substantial speed gain (near x2.0)
  • Dimensioning your architecture is always a trade off: Cache speed decreases with size. For a quantitative idea of the speed you can expect from a cache, you might be interested by the tool CACTI, luckily far more simple to install than SimpleScalar.

Connected links

Are you stuck with a bug not described here? The following link could be useful:

how-to-install-simplescalar-on-ubuntu's People

Contributors

aivus avatar alexrumak avatar sdenel avatar zazaboo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

how-to-install-simplescalar-on-ubuntu's Issues

File does not exist

Sorry, I know this project is old, but I've run into some issues and need your help.
This "www.simplescalar.com" website seems to be gone, do you have any other way to get SimpleScalar?

Resolving www.simplescalar.com (www.simplescalar.com)... 69.5.3.2
Connecting to www.simplescalar.com (www.simplescalar.com)|69.5.3.2|:80... connected.
HTTP request sent, awaiting response... 404 file does not exist
2023-02-28 08:33:44 ERROR 404: file does not exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.