A Two-Phase Optimization Approach for Condition Codes in a Machine Adaptable Dynamic Binary Translator
CSIE '09 Proceedings of the 2009 WRI World Congress on Computer Science and Information Engineering - Volume 02(2009)
Abstract
Condition codes (CCs) are special architected bits that characterize instruction results. Reducing the overhead of emulating condition codes is a critical performance issue in binary translation. In this paper, we propose a two-phase optimization approach for condition codes, which has been implemented in Crossbit-a machine adaptable dynamic binary translator (DBT). First, redundant flag computing code in a basic block is reduced based on the information collected by Crossbit when the block is identified. Then, lazy evaluation technique is used inter basic blocks, which make the condition codes emulation more efficient. Experimental results show that this method works much better than the straightforward emulation method-it eliminate the code size more than 20% and have a performance gain nearly 40% in Crossbit. The data proves that the approach is effective to remove the redundant code and to increase the performance of the translated code.
MoreTranslated text
Key words
lazy evaluation technique,optimisation,instruction set,redundant code,basic block,program interpreters,performance gain,redundant flag computing code,critical performance issue,machine adaptable dynamic binary translator,two-phase optimization approach,machine adaptable dynamic binary,instruction sets,code size,condition codes,binary codes,binary translation,inter basic block,crossbit,condition code,computer architecture,optimization,redundancy,sun,data mining,lazy evaluation,emulation
AI Read Science
Must-Reading Tree
Example
![](https://originalfileserver.aminer.cn/sys/aminer/pubs/mrt_preview.jpeg)
Generate MRT to find the research sequence of this paper
Chat Paper
Summary is being generated by the instructions you defined