arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1309.7685cs.PLcs.SE
收藏

重新定位GCC:我们是否每次都在重新发明轮子?

Retargeting GCC: Do We Reinvent the Wheel Every Time?

Saravana Perumal P, Amey Karkare

摘要:

将GCC移植到新的体系结构需要编写一个机器描述(MD)文件,其中包含从GCC的中间形式到目标汇编代码的映射。构建MD文件是一项艰巨的任务,因为它需要用户理解(a)GCC的内部结构,以及(b)目标体系结构的复杂性。不同架构的指令集在一个大类中表现出大量的语义相似性(例如,RISC架构的指令集),仅在语法上有所不同。因此,预计具有类似架构的机器的MD文件也应该具有相似性。为了证实我们的假设,我们创建了“mdcompare”,这是一个工具,用于(a)从众所周知的架构的MD文件中提取RTL模式(RTL模板的机器独立抽象),以及(b)比较架构之间模式的相似性。结果令人鼓舞;我们发现,28% - 70%的RTL表达式在MD文件对之间是相似的,对于相似的体系结构对,相似性百分比较高。

英文摘要:

Porting GCC to new architecture requires writing a Machine Description (MD) file that contains mapping from GCC's intermediate form to the target assembly code. Constructing an MD file is a difficult task because it requires the user to understand both (a) the internals of GCC, and (b) the intricacies of the target architecture. Instruction sets of different architectures exhibit significant amount of semantic similarities across a large class (for example, the instruction sets for RISC architectures) and differ only in syntax. Therefore, it is expected that MD files of machines with similar architectures should also have similarities. To confirm our hypothesis, we created "mdcompare", a tool to (a) extract RTL patterns (machine independent abstraction of RTL templates) from MD files of well known architectures and (b) compare the similarity of patterns across architectures. The results are encouraging; we found that 28% -- 70% RTL expressions are similar across pairs of MD files, the similarity percentage being on the higher side for pairs of similar architectures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑