Giter Site home page Giter Site logo

parthsaraswat / branch-pred-fl Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 31.12 MB

CMake 0.03% HTML 20.79% CSS 0.33% JavaScript 0.62% C 31.79% C++ 42.00% Objective-C 0.05% Perl 1.61% Makefile 0.16% Assembly 2.24% Python 0.29% Shell 0.06% Batchfile 0.02% GDB 0.02%

branch-pred-fl's Introduction

Branch Predictors

This is the code repository for my branch predictor functional level model project. The repository contains

  • functional level models for a 2-bit saturating counter, a 1-level BHT which keeps track of local history, and a parametrized 2-level BHT which keeps track of local and global history
  • Pin, Intel's just-in-time compiler used to instrument branches
  • unit tests for all the functinal level models

Instructions

Setup

You can set up the project by running the setup script in the top directory by using the following command:

$ source pred-setup.sh

This script will set up environment variables, build demo programs and the pintools.

Using the Pintools to Instrument Branches

Once the setup script has been sourced, the pintools can be invoked by using the following command:

$ $PIN/pin -ifeellucky -t $PIN/source/tools/ManualExamples/obj-intel64/branch-tracker-demo.so -- <application-name>

where \<application-name\> is the name of the application you wish to instrument.

If you wish to rebuild the Pintools, use the following set of commands:

$ cd $PINTOOLS
$ make obj-intel64/branch-tracker-demo.so TARGET=intel64

branch-pred-fl's People

Contributors

parthsaraswat avatar

Watchers

 avatar

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.