GithubHelp home page GithubHelp logo

bwry / typesan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vusec/typesan

0.0 0.0 0.0 44.33 MB

TypeSan checks casts in C++ code - code released for CCS 2016

PHP 0.01% Shell 0.07% CMake 0.29% Go 0.06% C++ 49.25% OCaml 0.19% Python 0.61% CSS 0.01% Batchfile 0.01% Standard ML 0.01% C 18.03% SourcePawn 0.01% Objective-C 2.67% Makefile 0.04% Objective-C++ 0.75% Assembly 6.36% HTML 0.60% LLVM 20.92% Mirah 0.12% MATLAB 0.02%

typesan's Introduction

TypeSan quick setup guide

Installation

For this manual, we assume that you are running Ubuntu Server 16.04 LTS. Other distributions or Ubuntu versions might require different packages to be able to perform the setup.

We also assume that you have a copy of SPEC CPU2006 installed in $HOME/cpu2006. If your SPEC install is located somewhere else, adjust the value of PATHSPEC accordingly. If you do not have a copy of SPEC CPU2006, set the environment variable BUILD_SPEC to 0.

If you want to build Firefox, you will need to install the Firefox build prerequisites beforehand. Instructions are found here:

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites

If you do not want to build Firefox, set BUILD_FIREFOX=0.

Follow the following instructions:

sudo apt-get install autoconf bison build-essential git libtool libtool-bin
git clone https://github.com/vusec/typesan.git
cd typesan
PATHSPEC="$HOME/cpu2006" ./autosetup.sh

This sets up TypeSan and instruments all C++ SPEC CPU2006 benchmarks as well as Firefox using all supported configurations:

  • default - default compilation without tcmalloc
  • baseline - default compilation with uninstrumented tcmalloc
  • typesan - typesan instrumented compilation
  • typesanbl - typesan instrumented compilation with blacklist
  • typesanresid - residual typesan instrumented compilation

Microbenchmarks

To run the microbenchmarks, type:

./run-ubench-typesan.sh

'typesan' can be replaced with any of the other configurations.

Firefox

To run Firefox, type:

./run-firefox-typesan.sh

'typesan' can be replaced with any of the other configurations.

Please note that Firefox requires a graphical interface, which Ubuntu Server does not offer by default. Ensure access to an X11 server and export the correct value of $DISPLAY before running this script.

SPEC CPU2006

To run the microbenchmarks, type:

./run-spec-typesan.sh benchmarks

'typesan' can be replaced with any of the other configurations.

'benchmarks' should be set to one or more of the following:

  • 444.namd
  • 447.dealII
  • 450.soplex
  • 453.povray
  • 471.omnetpp
  • 473.astar
  • 483.xalancbmk

typesan's People

Contributors

hal-ler 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.