libsprinkles: Simple disassembly library.
This project is alpha (which is my excuse if something doesn’t
function accurately or correctly).
libsprinkles is both a library and has an accompanying example called vorhees
libsprinkles provides a simple API that can be used to disassemble binaries
using LLVM. The example program vorhees
uses libsprinkles and can be used to
disassemble a binary into a JSON representation.
The best example is to look at vorhees/main.cc which takes as input an object
file and outputs a JSON representation of the executable code.
So you want to use the library?
sprinkles::Sprinkles S(filename);
S.initialize();
Vorhees is an object file -to- JSON dumper. Give it a whirl!build/vorhees/vorhees <object file>
mkdir libsprinkles/build
cd libsprinkles/build; cmake ../
make
to build the library and example program vorhees
.llvm
and/or llvm-dev
).Matt Davis: https://github.com/enferex