An infrastructure for adaptive dynamic optimization

被引:211
作者
Bruening, D [1 ]
Garnett, T [1 ]
Amarasinghe, S [1 ]
机构
[1] MIT, Comp Sci Lab, Cambridge, MA 02139 USA
来源
CGO 2003: INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION | 2003年
关键词
D O I
10.1109/CGO.2003.1191551
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Dynamic optimization is emerging as a promising approach to overcome many of the obstacles of traditional static compilation. But while there are a number of compiler infrastructures for developing static optimizations, there are very few for developing dynamic optimizations. We present a framework for implementing dynamic analyses and optimizations. We provide an interface for building external modules, or clients, for the DynamoRIO dynamic code modification system. This interface abstracts away many low-level details of the DynamoRIO runtime system while exposing a simple and powerful, yet efficient and lightweight, API. This is achieved by restricting optimization units to linear streams of code and using adaptive levels of detail for representing instructions. The interface is not restricted to optimization and can be used for instrumentation, profiling, dynamic translation, etc. To demonstrate the usefulness and effectiveness of our framework, we implemented several optimizations. These improve the performance of some applications by as much as 40% relative to native execution. The average speedup relative to base DynamoRIO performance is 12%.
引用
收藏
页码:265 / 275
页数:11
相关论文
共 38 条
  • [1] ADLTABATABAI AR, 1998, P SIGPLAN 98 C PROGR
  • [2] ANDERSON JM, 1997, 16 ACM S OP SYST PRI
  • [3] ARNOLD M, 2000, 2000 ACM SIGPLAN C O
  • [4] BALA V, 2000, P ACM SIGPLAN C PROG
  • [5] Bruening D, 2001, 4 ACM WORKSH FEEDB D
  • [6] An api for runtime code patching
    Buck, B
    Hollingsworth, JK
    [J]. INTERNATIONAL JOURNAL OF HIGH PERFORMANCE COMPUTING APPLICATIONS, 2000, 14 (04) : 317 - 329
  • [7] CHEN WK, 2000, 3 ACM WORKSH FEEDB D
  • [8] FX!32 - A profile-directed binary translator
    Chernoff, A
    Herdeg, M
    Hookway, R
    Reeve, C
    Rubin, N
    Tye, T
    Yadavalli, SB
    Yates, J
    [J]. IEEE MICRO, 1998, 18 (02) : 56 - 64
  • [9] CMELIK RF, 1994, SIGMETRICS
  • [10] COHN R, 1996, 29 ANN INT S MICR MI