Tracing Memory Access With an LLVM Pass · Bits and Clou

Tracing Memory Access With an LLVM Pass · Bits and Cloud

This blog post details how to implement an LLVM Pass that allows for tracing memory access - by modifying binaries to augment each memory access opcode with tracing logic.
Contents Link to heading 1️⃣ Introducing Memory Access Traces at Compile Time with LLVM Passes 2️⃣ Resources and Setup 3️⃣ Writing the Pass - Planning and Boilerplate 4️⃣ Writing the Pass - Setting Up a Global File Descriptor 5️⃣ Writing the Pass - Implementing the Memory Trace Function 6️⃣ Writing the Pass - Wrapping Each Memory Access Opcode 7️⃣ Running the Pass 8️⃣ Conclusions

Related Keywords

, Blog , Developer , Personal ,

© 2025 Vimarsana