高级检索
    马湘宁 武成岗 唐 锋 冯晓兵 张兆庆. 二进制翻译中的标志位优化技术[J]. 计算机研究与发展, 2005, 42(2): 329-337.
    引用本文: 马湘宁 武成岗 唐 锋 冯晓兵 张兆庆. 二进制翻译中的标志位优化技术[J]. 计算机研究与发展, 2005, 42(2): 329-337.
    Ma Xiangning, Wu Chenggang, Tang Feng, Feng Xiaobing, and Zhang Zhaoqing. Two Condition Code Optimization Approaches in Binary Translation[J]. Journal of Computer Research and Development, 2005, 42(2): 329-337.
    Citation: Ma Xiangning, Wu Chenggang, Tang Feng, Feng Xiaobing, and Zhang Zhaoqing. Two Condition Code Optimization Approaches in Binary Translation[J]. Journal of Computer Research and Development, 2005, 42(2): 329-337.

    二进制翻译中的标志位优化技术

    Two Condition Code Optimization Approaches in Binary Translation

    • 摘要: 在二进制翻译技术中,如何有效降低对源指令集体系结构标志位的模拟开销是一个值得研究的课题.分别针对二进制翻译中的解释执行和动态翻译,提出了相应的标志位模拟优化算法,能够有效地减少翻译生成的目标代码数量,提高目标代码性能.经过大量测试验证,在应用该标志位模拟优化算法后,Digital Bridge系统翻译生成的目标代码量是源体系结构目标代码量的120%,而没有应用该优化算法时该比例是250%,作为对比系统UQDBT系统的比例是150%.

       

      Abstract: It is an important performance issue how to reduce the emulation cost of the source Instruction Set Architecture's condition codes. In this paper, two optimized emulating algorithms for emulator and dynamic translator are presented, which can effectively improve the performance of the translated code. In emulator, ICDC(instant computing and delayed computing) algorithm compared with delay computing algorithm, can reduce the memory access overhead of object code. In dynamic translator, DFADC(data flow analysis and delayed computing) algorithm is presented to reduce redundant flag computing code. Data flow analysis is used in basic block, and delayed computing is used inter basic block. The two new optimized emulating algorithms can be applied in all the translation from source ISA with flag mechanism to target ISA without such mechanism. These algorithms are verified in the binary translator system——Digital Bridge, which combines emulation and dynamic translation methods. With these algorithms, Digital Bridge can do binary translation in 120% code size of the original binary code, while it could be 250% code size for non-optimized algorithms and 150% code size for UQDBT system. These data indicate that the algorithms are effective to reduce redundant code and to improve the performance of translated code.

       

    /

    返回文章
    返回