关于一个分支位移算法的正确性
On the correctness of a branch displacement algorithm
摘要:
分支移位问题是汇编程序设计中的一个著名问题。它围绕着几个处理器家族中存在的具有不同大小的不同指令、用于不同位移的跳转的功能。这个问题,这是可证明的NP-困难,然后选择指令,使之最终与最小的可能的程序。在我们的研究与CerCo项目正式验证C编译器,我们已经实现并证明了正确的算法,这个问题。在本文中,我们讨论的问题,可能的解决方案,我们的具体解决方案和证明。
英文摘要:
The branch displacement problem is a well-known problem in assembler design. It revolves around the feature, present in several processor families, of having different instructions, of different sizes, for jumps of different displacements. The problem, which is provably NP-hard, is then to select the instructions such that one ends up with the smallest possible program. During our research with the CerCo project on formally verifying a C compiler, we have implemented and proven correct an algorithm for this problem. In this paper, we discuss the problem, possible solutions, our specific solutions and the proofs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。