Academic Journal

PrecIRisc: A High-Precision and Low-Bloat Dynamic Binary Instrumentation Tailored for RISC Architectures.

Λεπτομέρειες βιβλιογραφικής εγγραφής
Τίτλος: PrecIRisc: A High-Precision and Low-Bloat Dynamic Binary Instrumentation Tailored for RISC Architectures.
Συγγραφείς: Xie, Wenbing1 (AUTHOR) xiewb@mail.ustc.edu.cn, Guan, Ruixue1 (AUTHOR), Yu, Fanyue1 (AUTHOR), Zhang, Yiming1 (AUTHOR)
Πηγή: Journal of Electronic Testing. Aug2025, Vol. 41 Issue 4, p483-502. 20p.
Θεματικοί όροι: *Reduced instruction set computers, *Debugging, *Data integrity
Περίληψη: Dynamic binary instrumentation (DBI) tools are essential for program analysis and error detection. The Disassemble-and-Resynthesise (D&R) method, a key DBI technique, translates binary code into an intermediate representation (IR) for consistent instrumentation, minimizing architecture-specific dependencies. However, D&R results in significant code bloat, which reduces runtime efficiency compared to native code. Additionally, the complexity of D&R requires developers to understand both the program's execution and the DBI framework, complicating practical application. To address these challenges, we propose a D&R-based DBI framework that optimizes VEX IR and ensures precise debugging. We present a low-bloat optimization mechanism, including redundant copy elimination, IR type extension, and symbolic self-extension. Additionally, we propose a precise debugging and diagnostic method based on memory value consistency comparison, ensuring that code behaves consistently before and after instrumentation. We implement our design in PrecIRisc, a Valgrind-based DBI system, and evaluate PrecIRisc on SW64 and Mips architectures. Benchmarks show that PrecIRisc achieves a 14.7% code bloat reduction on SW64 compared to Valgrind for x86. Meanwhile, results show a 3.88% code bloat reduction on MIPS compared to the original Valgrind. Further testing with code mutations and real-world programs confirms PrecIRisc's effectiveness in debugging and diagnosis. [ABSTRACT FROM AUTHOR]
Βάση Δεδομένων: Academic Search Index
Περιγραφή
ISSN:09238174
DOI:10.1007/s10836-025-06191-5