Tag: build-bom

Introducing build-bom

TL;DR The build-bom tool makes it easy to obtain LLVM IR for C/C++ programs without requiring any modifications to build systems by using the low-level debugger primitive ptrace. This is something you may want if you build tools to analyze C/C++ programs. A typical use of build-bom looks like: ./configure build-bom generate-bitcode -- make build-bom extract-bitcode /path/to/binary --output binary.bc Background What is LLVM IR? LLVM IR is the intermediate representation of code used by LLV…