首页> 外文会议>Principles of programming languages >Automatically Generating Instruction Selectors Using Declarative Machine Descriptions
【24h】

Automatically Generating Instruction Selectors Using Declarative Machine Descriptions

机译:使用声明性机器描述自动生成指令选择器

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

摘要

Despite years of work on retargetable compilers, creating a good, reliable back end for an optimizing compiler still entails a lot of hard work. Moreover, a critical component of the back end-the instruction selector-must be written by a person who is expert in both the compiler's intermediate code and the target machine's instruction set. By generating the instruction selector from declarative machine descriptions we have (a) made it unnecessary for one person to be both a compiler expert and a machine expert, and (b) made creating an optimizing back end easier than ever before.rnOur achievement rests on two new results. First, finding a mapping from intermediate code to machine code is an undecidable problem. Second, using heuristic search, we can find mappings for machines of practical interest in at most a few minutes of CPU time.rnOur most significant new idea is that heuristic search should be controlled by algebraic laws. Laws are used not only to show when a sequence of instructions implements part of an intermediate code, but also to limit the search: we drop a sequence of instructions not when it gets too long or when it computes too complicated a result, but when too much reasoning will be required to show that the result computed might be useful.
机译:尽管在可重定目标的编译器上进行了多年的工作,但要为优化的编译器创建良好,可靠的后端仍然需要进行大量的工作。此外,后端的关键组成部分-指令选择器-必须由精通编译器中间代码和目标机器指令集的人员编写。通过从声明性的机器描述生成指令选择器,我们(a)使得一个人既不必既是编译专家又是机器专家,并且(b)使得创建优化后端比以往任何时候都容易。rn两个新结果。首先,找到从中间代码到机器代码的映射是一个不确定的问题。其次,使用启发式搜索,我们最多可以在几分钟的CPU时间内找到具有实际兴趣的机器的映射。我们最重要的新想法是启发式搜索应由代数定律控制。定律不仅用于显示指令序列何时实现中间代码的一部分,而且还用于限制搜索:我们放下指令序列不是在时间过长或计算结果过于复杂时,而是在时间过长时需要大量的推理来证明计算出的结果可能是有用的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号