-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Hugo edited this page Feb 26, 2026
·
2 revisions
CoreTrace Compiler is a Clang/LLVM wrapper compiler with optional IR instrumentation. It keeps Clang-compatible CLI behavior while adding runtime diagnostics for memory and call safety.
- Build the project: Getting Started
- Learn command options: CLI Reference
- Understand internals: Architecture
- Compile C/C++ to object files, assembly, LLVM IR, or executables
- Run in two modes:
-
ToFile: standard driver pipeline and filesystem outputs -
ToMemory: LLVM IR captured in-process and returned as a string/stdout
-
- Inject optional LLVM instrumentation passes:
- allocation tracking
- bounds checking
- function tracing
- virtual call diagnostics
- Link the instrumentation runtime automatically when
--instrumentis enabled
- Getting Started
- CLI Reference
- Instrumentation
- Runtime Library
- Toolchain Detection
- Testing and Validation
- Troubleshooting
# Plain compilation
./build/cc hello.c -o hello
# Instrumented binary
./build/cc --instrument --ct-modules=trace,alloc,bounds hello.c -o hello_inst
# LLVM IR in memory (stdout)
./build/cc --in-mem -emit-llvm hello.cStart
Architecture
Instrumentation
Developer