计算机科学 ›› 2013, Vol. 40 ›› Issue (12): 19-22.

• 综述 • 上一篇    下一篇

基于GCC实现飞腾处理器向量处理单元的编译器后端

李春江,杜云飞,倪晓强,王永文,杨灿群   

  1. 国防科学技术大学计算机学院 长沙410073;国防科学技术大学计算机学院 长沙410073;国防科学技术大学计算机学院 长沙410073;国防科学技术大学计算机学院 长沙410073;国防科学技术大学计算机学院 长沙410073
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家自然科学基金项目:多核多线程处理器SIMD扩展的编程模型和编译优化关键技术研究(61170046),国家863计划项目:面向国产飞腾处理器的并行程序综合优化技术与系统(2012AA010903)资助

Implementing Compiler Backend for Vector Processing Unit of FT Processor Based on GCC

LI Chun-jiang,DU Yun-fei,NI Xiao-qiang,WANG Yong-wen and YANG Can-qun   

  • Online:2018-11-16 Published:2018-11-16

摘要: 编译器后端是针对特定目标机器的编译器实现,不同的指令集体系结构需要实现不同的编译器后端。面向飞腾处理器中向量处理单元(FT-VPU)的体系结构和指令集,基于GCC编译器实现了编译器后端,使GCC能够正确编译面向FT-VPU的SIMD指令的内嵌函数。从四路双精度SIMD指令的机器描述出发,总结了在GCC后端所做的实现工作。其对基于GCC编译器实现面向特定目标机器的编译器后端有较大的参考价值。

Abstract: Compiler backend is the implementations in a compiler for a specific target machine.Different instruction set architecture needs different implementations of compiler backend.Targeting for the architecture and instruction set of the Vector Processing Unit (VPU) in FT processor,we implemented the compiler backend based on GCC.And we made it possible for GCC to correctly compile the intrinsic functions oriented to the SIMD instructions in FT-VPU.In this paper,from the machine description for the four-way double precision SIMD instructions,we concluded the backend implementations in GCC for FT-VPU.Our work is valuable reference to implement a compiler backend for a specific target machine based on GCC.

[1] OpenSPARCTM T2Core Microarchitecture Specification.Revision A[S].Sun Microsystems,Inc.,Dec.2007
[2] Firasta N,Buxton M,Jinbo P,et al.Intel AVX:New Frontiers in Performance Improvements and Energy Efficiency[M].2008
[3] UltraSPARC Architecture 2007[M].Sun Microsystems,Inc.,Aug.2007
[4] 李春江,杜云飞,易会战,等.GCC中内嵌函数实现剖析[J].计算机科学,2012(6A):357
[5] GCC,GNU Compiler Collection.http://gcc.gnu.org/
[6] The GNU General Public License.http://www.gnu.org/licenses/licenses.html#GPL
[7] Ganguin M.GCC Back-end for the Ulysse Processor[D].COLE POLYTECHNIQUE FèDèRALE DE LAUSANNE,Sept.2007
[8] 林秉毅,刘兴傑,陈立杰,等.追踪GCC核心原始码与移植相关之研究[R].专题报告.台湾逢甲大学资讯工程学系
[9] Strtling A.Optimizing the GCC Suite for a VLIW Architecture[D].Chemnitz University of Technology,2004
[10] 林凯伟.移植GCC的系统方法之研究[D].台湾国立中正大学资讯工程研究所,2008
[11] 李春江,杜云飞,倪晓强,等.GCC后端中四路双精度短向量寄存器的实现[J].计算机科学,2012,9:292

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!