A Sound and Complete Algorithm for Code Generation in Distance-Based ISA

Shu Sugita, Toru Koizumi, Ryota Shioya, H. Irie, S. Sakai
{"title":"A Sound and Complete Algorithm for Code Generation in Distance-Based ISA","authors":"Shu Sugita, Toru Koizumi, Ryota Shioya, H. Irie, S. Sakai","doi":"10.1145/3578360.3580263","DOIUrl":null,"url":null,"abstract":"The single-thread performance of a processor core is essential even in the multicore era. However, increasing the processing width of a core to improve the single-thread performance leads to a super-linear increase in power consumption. To overcome this power consumption issue, an instruction set architecture for general-purpose processors, called STRAIGHT, has been proposed. STRAIGHT adopts a distance-based ISA, in which source operands are specified by the distance between instructions. In STRAIGHT, it is necessary to satisfy constraints on the distance used as operands to generate executable code. However, it is not yet clear how to generate code that satisfies these constraints in the general case. In this paper, we propose three compiling techniques for STRAIGHT code generation and prove that our techniques can reliably generate code that satisfies the distance constraints. We implemented the proposed method on a compiler and evaluated benchmark programs compiled with it through simulation. The evaluation results showed that the proposed method works in all cases, including conditions where the number of registers is small and existing methods fail to generate code.","PeriodicalId":310343,"journal":{"name":"Proceedings of the 32nd ACM SIGPLAN International Conference on Compiler Construction","volume":"6 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-02-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 32nd ACM SIGPLAN International Conference on Compiler Construction","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3578360.3580263","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The single-thread performance of a processor core is essential even in the multicore era. However, increasing the processing width of a core to improve the single-thread performance leads to a super-linear increase in power consumption. To overcome this power consumption issue, an instruction set architecture for general-purpose processors, called STRAIGHT, has been proposed. STRAIGHT adopts a distance-based ISA, in which source operands are specified by the distance between instructions. In STRAIGHT, it is necessary to satisfy constraints on the distance used as operands to generate executable code. However, it is not yet clear how to generate code that satisfies these constraints in the general case. In this paper, we propose three compiling techniques for STRAIGHT code generation and prove that our techniques can reliably generate code that satisfies the distance constraints. We implemented the proposed method on a compiler and evaluated benchmark programs compiled with it through simulation. The evaluation results showed that the proposed method works in all cases, including conditions where the number of registers is small and existing methods fail to generate code.
基于距离的ISA代码生成的完善算法
即使在多核时代,处理器核心的单线程性能也是必不可少的。然而,增加核心的处理宽度以提高单线程性能会导致功耗的超线性增加。为了克服这个功耗问题,已经提出了一种用于通用处理器的指令集体系结构,称为STRAIGHT。STRAIGHT采用基于距离的ISA,其中源操作数由指令之间的距离指定。在STRAIGHT中,有必要满足作为操作数的距离约束,以生成可执行代码。然而,在一般情况下如何生成满足这些约束的代码还不清楚。在本文中,我们提出了三种用于STRAIGHT代码生成的编译技术,并证明我们的技术可以可靠地生成满足距离约束的代码。我们在一个编译器上实现了该方法,并通过仿真对用该方法编译的基准程序进行了评估。评估结果表明,所提出的方法在所有情况下都有效,包括寄存器数量较少和现有方法无法生成代码的情况。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书