標題: Improving Dynamic Binary Optimization Through Early-Exit Guided Code Region Formation
作者: Hsu, Chun-Chen
Liu, Pangfeng
Wu, Jan-Jan
Yew, Pen-Chung
Hong, Ding-Yong
Hsu, Wei-Chung
Wang, Chien-Min
交大名義發表
National Chiao Tung University
關鍵字: Design;Performance;Dynamic Binary Translation;Trace-Based JIT Compilation;Virtual Machine;Hardware-based Performance Monitoring;Hot Region Formation
公開日期: 1-七月-2013
摘要: Most dynamic binary translators (DBT) and optimizers (DBO) target binary traces, i.e. frequently executed paths, as code regions to be translated and optimized. Code region formation is the most important first step in all DBTs and DBOs. The quality of the dynamically formed code regions determines the extent and the types of optimization opportunities that can be exposed to DBTs and DBOs, and thus, determines the ultimate quality of the final optimized code. The Next-Executing-Tail (NET) trace formation method used in HP Dynamo is an early example of such techniques. Many existing trace formation schemes are variants of NET. They work very well for most binary traces, but they also suffer a major problem: the formed traces may contain a large number of early exits that could be branched out during the execution. If this happens frequently, the program execution will spend more time in the slow binary interpreter or in the unoptimized code regions than in the optimized traces in code cache. The benefit of the trace optimization is thus lost. Traces/regions with frequently taken early-exits are called delinquent traces/regions. Our empirical study shows that at least 8 of the 12 SPEC CPU2006 integer benchmarks have delinquent traces. In this paper, we propose a light-weight region formation technique called Early-Exit Guided Region Formation (EEG) to improve the quality of the formed traces/regions. It iteratively identifies and merges delinquent regions into larger code regions. We have implemented our EEG algorithm in two LLVM-based multi-threaded DBTs targeting ARM and IA32 instruction set architecture (ISA), respectively. Using SPEC CPU2006 benchmark suite with reference inputs, our results show that compared to an NET-variant currently used in QEMU, a state-of-the-art retargetable DBT, EEG can achieve a significant performance improvement of up to 72% (27% on average), and to 49% (23% on average) for IA32 and ARM, respectively.
URI: http://dx.doi.org/10.1145/2517326.2451519
http://hdl.handle.net/11536/22804
ISSN: 0362-1340
DOI: 10.1145/2517326.2451519
期刊: ACM SIGPLAN NOTICES
Volume: 48
Issue: 7
起始頁: 23
結束頁: 32
顯示於類別:期刊論文


文件中的檔案:

  1. 000324470900003.pdf

若為 zip 檔案,請下載檔案解壓縮後,用瀏覽器開啟資料夾中的 index.html 瀏覽全文。