Supporting legacy binary code in a software transaction compiler with dynamic binary translation and optimization

被引:0
作者
Wang, Cheng [1 ]
Ying, Victor [1 ]
Wu, Youfeng [1 ]
机构
[1] Intel Corp, Microproc Technol Labs, Program Syst Lab, Santa Clara, CA 95052 USA
来源
COMPILER CONSTRUCTION | 2008年 / 4959卷
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Transactional memory (TM) has been shown to be a promising programming model for multi-core systems. We developed a Software-based Transactional Memory (STM) compiler that generates efficient transactional code for transactions to run on a STM runtime without the need of transactional hardware support. Since real-world applications often invoke third party libraries available only in binary form, it is imperative for our STM compiler to support legacy binary functions and provide an efficient solution to convert those invoked inside transactions to the corresponding transactional code. Our STM compiler employs a Lightweight Dynamic Binary Translation and Optimization Module (LDBTOM) to automatically convert legacy binary functions to transactional code. In this paper, we describe our LDBTOM system, which 1) seamlessly integrates the translated code with the STM compiler generated code to run on the STM runtime, and 2) optimizes the translated code taking advantage of dynamic optimization opportunities and STM runtime information. Although the binary code is inherently harder to optimize than high-level source code, our experiment shows that it can be translated and optimized into efficient transactional code by LDBTOM.
引用
收藏
页码:291 / 306
页数:16
相关论文
共 20 条
  • [1] ADLTABATABAI, 2006, MICRO 2006
  • [2] ADLTABATABAI A, 2006, PLDI 2006
  • [3] Unbounded transactional memory
    Ananian, CS
    Asanovic, K
    Kuszmaul, BC
    Leiserson, CE
    Lie, S
    [J]. 11TH INTERNATIONAL SYMPOSIUM ON HIGH-PERFORMANCE COMPUTER ARCHITECTURE, PROCEEDINGS, 2005, : 316 - 327
  • [4] BARAZ L, 2003, MICRO 36 2003
  • [5] BLUNDELL C, 2005, ANN WORKSH DUPL DEC
  • [6] BLUNDELL C, 2006, CIS0609 U PENNS DEP
  • [7] BORIN E, 2006, CGO 2006
  • [8] HARRIS T, 2006, PLDI 2006
  • [9] HERLIHY M, 2003, PODC 2003
  • [10] HOSKING A, 2005, NESTED TRANSACTIONAL