This is a fork of the Boomerang Decompiler, a general, open source (BSD licensed) machine code decompiler. Boomerang currently supports:
- architectures: x86 (IA-32 only), SPARC (V8/V9), PPC, ST20
- file formats: ELF, PE, DOS MZ, DOS/4GW LE, Mach-O
- high-level language output: C
Although there are pre-compiled packages available for release versions (
it is currently recommended to build the development version (
develop) of the decompiler from source.
|Build status||Linux||Windows||Test Coverage|
- A 64 bit operating system (32 bit might or might not work, but it is not supported.)
- A C++17 compiler (GCC 7+, Clang 6+, MSVC 2017+ are known to work)
- CMake 3.8+
- Qt5 (Qt 5.11+ is known to work, earlier versions should also work)
- Capstone 3.0.5+
- GNU bison 3.0+ (3.0.5+ is recommended)
- GNU flex 2.6+
- CCache 3.2+ (optional, for recompilation speed)
- Doxygen 1.8+ (optional, for documentation)
- Python 3 (optional, for regression tests)
Building on Linux
On a Linux system you can build and install Boomerang with the usual cmake-make-make-install procedure. On a Debian-compatible system (e.g. Ubuntu) these commands will clone, build and install Boomerang:
sudo apt-get install git build-essential cmake qt5-default libcapstone-dev flex bison cd YOUR_FAVOURITE_DEVELOPMENT_DIRECTORY git clone https://github.com/BoomerangDecompiler/boomerang.git cd boomerang && mkdir build && cd build cmake .. && make && sudo make install
Building on Windows
To compile on Windows using Visual Studio, you can follow the following guide. Note that the build procedure for other IDEs or compilers (e.g. MinGW) is not covered in this guide.
- Install Visual Studio 2017 (e.g the free Community Edition).
- Install Git for Windows.
- Install CMake.
- Install flex+bison via winflexbison.
- Download and install Qt5. Please make sure to install the 64-bit Windows version for Visual Studio 2017.
- Set the QTDIR environment variable. For example, if you have installed Qt 5.10.0 into C:\Qt, set QTDIR to "C:\Qt\5.10.0\msvc2017_64" (without the quotes).
- Clone Boomerang using Git for Windows. Let's call the directory of the cloned repository $BOOMERANG_DIR.
- Open cmake-gui and enter $BOOMERANG_DIR and $BOOMERANG_DIR/build into the "Where is the source code" and "Where to build the binaries" fields, respectively.
- "Configure" Boomerang in cmake-gui. Make sure to select the "Visual Studio 15 2017 Win64" (i.e. 64-bit) generator.
- "Generate" and "Open Project" in cmake-gui.
- To build the command line tool, build the
boomerang-clitarget; to build the GUI, build the
Building on macOS
Building on macOS is currently not officially supported. However, pull requests on this matter are welcome. See also Issue #39.
Boomerang has a unit test suite, which can be run by
make && make test on Linux or by running the RUN_TESTS target in Visual Studio.
Make sure you have the BOOMERANG_BUILD_UNIT_TESTS option set in CMake.
Additionally, you can run the regression test suite, to do so you will need a Python 3 interpeter.
To run the regression test suite, make sure the BOOMERANG_BUILD_REGRESSION_TESTS option is set in CMake, then run
on Linux. Building the regression test suite on Windows is currently not supported.
When the regression test suite finds a regression in the output, it is shown as a unified diff. If you have not modified Boomerang, please file the regression(s) as a bug report at https://github.com/BoomerangDecompiler/boomerang/issues.
Boomerang uses the gitflow workflow. If you want to fix a bug or implement a small enhancement,
please branch off from the
develop branch (
git checkout -b) and submit your fix or enhancement as a pull request to the
If you want to implement a larger feature, please open an issue about the new feature on the issue tracker first, so the feature can be discussed first.
For additional information, please read the contributing guidelines.
Thanks for your interest in the Boomerang Decompiler!