...
首页> 外文期刊>ACM Transactions on Programming Languages and Systems >A Transformational Approach to Binary Translation of Delayed Branches
【24h】

A Transformational Approach to Binary Translation of Delayed Branches

机译:延迟分支的二进制翻译的转换方法

获取原文
获取原文并翻译 | 示例
           

摘要

A binary translator examines binary code for a source machine and generates code for a target machine. Understanding what to do with delayed branches in binary code can involve tricky case analyses, for example, if there is a branch instruction in a delay slot. This article presents a disciplined method for deriving such case analyses. The method identifies problematic cases, shows the translations for the nonproblematic cases, and gives confidence that all cases are considered. The method supports such common architectures as SPARC, MIPS, and PA-RISC, and it should apply to any tool that analyzes machine instructions. We begin by writing a very simple interpreter for the source machine's code. We then transform the interpreter into an interpreter for a target machine without delayed branches. To maintain the semantics of the program being interpreted, we simultaneously transform the sequence of source-machine instructions into a sequence of target-machine instructions. The transformation of the instructions becomes our algorithm for binary translation.
机译:二进制翻译器检查源计算机的二进制代码并生成目标计算机的代码。理解如何处理二进制代码中的延迟分支可能涉及棘手的案例分析,例如,如果延迟槽中有分支指令。本文介绍了一种进行此类案例分析的自律方法。该方法可以识别有问题的案例,显示非问题案例的译文,并有信心考虑所有案例。该方法支持诸如SPARC,MIPS和PA-RISC之类的通用体系结构,并且该方法应适用于分析机器指令的任何工具。我们首先为源计算机的代码编写一个非常简单的解释器。然后,我们将解释器转换为目标计算机的解释器,而无需延迟分支。为了保持所解释程序的语义,我们将源机器指令序列同时转换为目标机器指令序列。指令的转换成为我们二进制翻译的算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号