Git Product home page Git Product logo

triton_ast_llvm_ir_translator's Introduction

it is fork from https://github.com/fvrmatteo/TritonASTLLVMIRTranslator

*WARNINGS: tested only linux(ubuntu 20.04) and only llvm and clang version 10*

how to compile lib?
`
clang -fPIC -shared Translator.cpp `llvm-config-10 --ldflags --cxxflags --libs core --system-libs`  -lboost_system -L<path to boost libraries> -ltriton -L <path to triton> -lcapstone -L<path to capstone> -o libtransTritonLLVM.so

by sample cmd:

clang -fPIC -shared Translator.cpp `llvm-config-10 --ldflags --cxxflags --libs core --system-libs`  -lboost_system -L/usr/lib/x86_64-linux-gnu -ltriton -L/home/user/Triton/build/src/ -lcapstone -L/home/user/capstone/build -o libtransTritonLLVM.so
`

how to compile C++ sample?
`
clang main.cpp `llvm-config-10 --ldflags --cxxflags --libs core --system-libs` -lboost_system -L<path to boost> -ltriton -L<path to triton> -ltransTritonLLVM -L<path to libtransTritonLLVM.so> -lstdc++ -o main

by example:
clang main.cpp `llvm-config-10 --ldflags --cxxflags --libs core --system-libs` -lboost_system -L/usr/lib/x86_64-linux-gnu -ltriton -L/home/user/Triton/build/src/ -ltransTritonLLVM -L /home/user/TritonASTLLVMIRTranslator/ -lstdc++ -o main
`

how to run C++ sample?
`
 LD_LIBRARY_PATH=<absolute path to libtransTritonLLVM.so> ./main
by example:
 LD_LIBRARY_PATH=/home/user/TritonASTLLVMIRTranslator/ ./main
`

triton_ast_llvm_ir_translator's People

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.