DocumentCode :
2746367
Title :
The accuracy of initial prediction in two-phase dynamic binary translators
Author :
Wu, Youfeng ; Breternitz, Mauricio ; Quek, Justin ; Etzion, Orna ; Fang, Jesse
Author_Institution :
Corporate Technol. Group, Intel Corp., USA
fYear :
2004
fDate :
20-24 March 2004
Firstpage :
227
Lastpage :
238
Abstract :
Dynamic binary translators use a two-phase approach to identify and optimize frequently executed code dynamically. In the first step (profiling phase), blocks of code are interpreted or quickly translated to collect execution frequency information for the blocks. In the second phase (optimization phase), frequently executed blocks are grouped into regions and advanced optimizations are applied on them. This approach implicitly assumes that the initial profile of each block is representative of the block throughout its lifetime. We investigate the ability of the initial profile to predict the average program behavior. We compare the predicted behavior of varying lengths of the initial execution with the average program behavior for the whole program execution, and use the prediction from the training input as the reference. Our result indicates that, for the SPEC2000 benchmarks, even very short initial profiles have comparable prediction accuracy to the traditional profile-guided optimizations using the training input, although the initial profile is inadequate for predicting loop trip count information for some integer programs and several benchmarks can benefit from phase-awareness during dynamic binary translation.
Keywords :
optimising compilers; program control structures; program interpreters; program testing; SPEC2000 benchmarks; average program behavior; dynamic code optimization; frequently executed blocks; initial prediction; loop optimization; optimization phase; profile-guided optimizations; profiling phase; two-phase dynamic binary translators; Accuracy; Frequency; Instruments;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Code Generation and Optimization, 2004. CGO 2004. International Symposium on
Print_ISBN :
0-7695-2102-9
Type :
conf
DOI :
10.1109/CGO.2004.1281677
Filename :
1281677
Link To Document :
بازگشت