Employing Simulation to Facilitate the Design of Dynamic Binary Translators

  • Vanderson Martins do Rosario UNICAMP
  • Rafael Zinsly UNICAMP
  • Sandro Rigo UNICAMP
  • Edson Borin UNICAMP


Dynamic Binary Translation (DBT) is a sophisticated technique that allows the implementation of highperformance ISA emulators. In this technique, the guest code is compiled dynamically at runtime. Consequently, achieving good performance depends on several design decisions, including the shape of the regions of code being translated. Researchers and engineers explore these decisions to bring the best performance possible. However, a real DBT engine is a very sophisticated piece of software, and modifying one is a challenging and demanding task. Hence, we propose using simulation to evaluate the impact of design decisions on dynamic binary translators and present RAIn, an open-source DBT simulator that facilitates the test of DBT's design decisions, such as Region Formation Techniques (RFTs). RAIn outputs several statistics that support the analysis of how design decisions may affect the behavior and the performance of a real DBT. We validated RAIn running a set of experiments with six well-known RFTs (NET, MRET2, LEI, NETPlus, NET-R, and NETPlus-e-r) and showed that it could reproduce well-known results from the literature without the effort of implementing them on a real and thus complex dynamic binary translator engine.
Palavras-chave: Measurement, Patents, Rain, Codes, Runtime, Shape, Benchmark testing, dynamic translator, simulation, just-in-time
ROSARIO, Vanderson Martins do; ZINSLY, Rafael; RIGO, Sandro; BORIN, Edson. Employing Simulation to Facilitate the Design of Dynamic Binary Translators. In: INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE AND HIGH PERFORMANCE COMPUTING (SBAC-PAD), 33. , 2021, Belo Horizonte. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2021 . p. 104-113.