Architecture of lifting-bits/remill
lifting-bits/remill is 239 source files holding 7,545 symbols across 8 modules, written mainly in C++, Python, Shell. The largest module is lib, with 120 files, and 2 files are entry points into the dependency graph.
How remill fits together
Machine code instructions go in and LLVM bitcode comes out. The core lifting code lives in lib, which holds 120 of the 239 files, with header files in include. The top-level CMakeLists.txt configures the build, while dependencies/CMakeLists.txt is a superbuild that builds dependencies such as LLVM into dependencies/install. Python helpers in scripts, including the entry points diff_tester_export_insns/run.py and replace_pc_relative_disactions/main.py, are each packaged with a pyproject.toml. Tests are kept in tests, with 11 files, and test_runner_lib holds 3 more.
Largest modules
- lib: 120 files and 112,307 lines of code
- include: 51 files and 6,931 lines of code
- scripts: 19 files and 865 lines of code
- tests: 11 files and 3,683 lines of code
- bin: 4 files and 1,006 lines of code
- test_runner_lib: 3 files and 527 lines of code
- generated: 2 files
- root: 1 file and 88 lines of code
Languages
By file count: C++ 188 files, Python 14 files, Shell 8 files, Dockerfile 1 file.
Documentation
Repowise documents remill in 265 pages generated from the source, 23 of them written explanations of the repository and its modules. Module guides include:
- lib/Arch/AArch64/Semantics: AArch64 Instruction Semantics
More on remill: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos