Register liveness analysis for optimizing dynamic binary translation
Mark Probst, Andreas Krall, Bernhard Scholz · Proceedings - Working Conference on Reverse Engineering · 2003
Dynamic binary translators compile machine code from a source architecture to a target architecture at run time. Due to the hard time constraints of just-in-time compilation only highly efficient optimization algorithms can be employed. Common problems are an insufficient number of registers on the target architecture and the different handling of condition codes in source and target architecture. Without optimizations useless stores and computations are generated by the dynamic binary translator and cause significant performance losses. In order to eliminate these useless operations, a very fast liveness analysis is required. We present a dynamic liveness analysis algorithm that trades precision for fast execution and conducted experiments with the SpecInt95 benchmark suite using our PowerPC to Alpha translator. The optimizations reduced the number of stores by about 50 percent. This resulted in a speed-up of 10 to 30 percent depending on the target machine. The dynamic liveness analysis results are very close to the most precise solution.
Cited by 16 works. doi:10.1109/wcre.2002.1173062
Authors
References
- Compilers: Principles, Techniques, and Tools
- Dynamo
- Modern Compiler Implementation in C
- FX!32 a profile-directed binary translator
- An efficient hybrid algorithm for incremental data flow analysis
- An incremental version of iterative data flow analysis
- Machine-adaptable dynamic binary translation
- A retargetable, ultra-fast instruction set simulator