Code Monkey home page Code Monkey logo

daedalus's Introduction

Daedalus

Daedulus drawing

Daedalus is an LLVM Pass that maps Instructions to Program Slices. Our end goal is to use program slices as a unit of program compression, by outlining common slices; hence, making code shorter.

Building

The preferred way to build Daedalus is as an out-of-tree LLVM pass. You can do the following to compile and install it as a library:

mkdir build
cd build
cmake -DLLVM_DIR={path_to_llvm_project} ../
make
cd ..
opt -load-pass-plugin build/lib/libdaedalus.so -passes=daedalus -disable-output tests/test1.ll

Running

After building Daedalus, you can extract program slices using a script we have: comp.sh. This script will compile a C program and invoke Daedalus on it:

chmod +x comp.sh
./comp.sh {path_to_test_file}
# ex
./comp.sh tests/test1.ll

If, otherwise, you prefer to load and run the pass directly, you can simply do:

cd build
make
cd ..
opt -load-pass-plugin build/lib/libdaedalus.so -passes=daedalus -disable-output {path_to_test_file}

But, in this last case, remember that you must apply Daedalus onto a program written in the LLVM IR.

daedalus's People

Contributors

danielaugusto191 avatar pronesto avatar

Stargazers

Rafael Eckstein avatar Felipe Menegazzi avatar Michael Canesche avatar  avatar  avatar

Watchers

 avatar Rodrigo Rocha avatar  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.