The Accuracy of Initial Prediction in Two-Phase Dynamic Binary Translators

  • Authors:
  • Youfeng Wu;Mauricio Breternitz;Justin Quek;Orna Etzion;Jesse Fang

  • Affiliations:
  • -;-;-;-;-

  • Venue:
  • Proceedings of the international symposium on Code generation and optimization: feedback-directed and runtime optimization
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

Dynamic binary translators use a two-phase approachto identify and optimize frequently executed codedynamically. In the first step (profiling phase), blocks ofcode are interpreted or quickly translated to collectexecution frequency information for the blocks. In thesecond phase (optimization phase), frequently executedblocks are grouped into regions and advancedoptimizations are applied on them.This approach implicitly assumes that the initialprofile of each block is representative of the blockthroughout its lifetime. This study investigates the abilityof the initial profile to predict the average programbehavior. We compare the predicted behavior of varyinglengths of the initial execution with the average programbehavior for the whole program execution, and use theprediction from the training input as the reference. Ourresult indicates that, for the SPEC2000 benchmarks, evenvery short initial profiles have comparable predictionaccuracy to the traditional profile-guided optimizationsusing the training input, although the initial profile isinadequate for predicting loop trip count information forsome integer programs and several benchmarks canbenefit from phase-awareness during dynamic binarytranslation.