Automatically generating instruction selectors using declarative machine descriptions

Author:

Dias João1,Ramsey Norman1

Affiliation:

1. Tufts University, Medford, USA

Abstract

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. Our 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. Our 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.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference38 articles.

1. Alfred V. Aho Mahadevan Ganapathi and Steven W. K. Tjiang. 1989 (October). Code generation using tree matching and dynamic programming. phACM Transactions on Programming Languages and Systems 11 (4): 491--516. 10.1145/69558.75700 Alfred V. Aho Mahadevan Ganapathi and Steven W. K. Tjiang. 1989 (October). Code generation using tree matching and dynamic programming. phACM Transactions on Programming Languages and Systems 11 (4): 491--516. 10.1145/69558.75700

2. Fast, effective dynamic compilation

3. Mark W. Bailey and Jack W. Davidson. 2003 (November). Automatic detection and diagnosis of faults in generated code for procedure calls. phIEEE Transactions on Software Engineering 29 (11): 1031--1042. 10.1109/TSE.2003.1245304 Mark W. Bailey and Jack W. Davidson. 2003 (November). Automatic detection and diagnosis of faults in generated code for procedure calls. phIEEE Transactions on Software Engineering 29 (11): 1031--1042. 10.1109/TSE.2003.1245304

4. Manuel E. Benitez and Jack W. Davidson. 1994 (March). The advantages of machine-dependent global optimization. In phProgramming Languages and System Architectures phLNCS volume 782 pages 105--124. Springer Verlag. Manuel E. Benitez and Jack W. Davidson. 1994 (March). The advantages of machine-dependent global optimization. In phProgramming Languages and System Architectures phLNCS volume 782 pages 105--124. Springer Verlag.

5. Mark Bezem Jan Willem Klop and Roel de Vrijer editors. 2003. phTerm Rewriting Systems. Cambridge University Press Cambridge UK. Mark Bezem Jan Willem Klop and Roel de Vrijer editors. 2003. phTerm Rewriting Systems. Cambridge University Press Cambridge UK.

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Rewrite rule inference using equality saturation;Proceedings of the ACM on Programming Languages;2021-10-20

2. RockSalt;ACM SIGPLAN Notices;2012-08-06

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3