期刊文献+

面向RISC-V处理器的GCC移植与优化 被引量:1

GCC PORTING AND OPTIMIZATION FOR RISC-V PROCESSOR
下载PDF
导出
摘要 嵌入式RISC-V处理器交叉开发生成高质量目标代码的关键是GCC的移植与优化。分析GCC的基本结构和RISC-V体系结构的数据与指令特点,建立GCC后端移植机制,采用机器描述方法,生成32位riscv-none-embed-gcc编译器,实现RISC-V处理器的GCC移植,设计强度削弱的窥孔优化方法解决中间代码生成过程中CPU计算代价高的问题。验证与测试结果表明编译器编译正确并具有通用功能,优化后编译生成的目标代码体积减少约11%,提高了目标代码质量,节省了嵌入式处微理器的存储空间。 In the cross-development process of the embedded RISC-V processor,the key of generating high-quality target code is the porting and optimization of GCC.The basic structure of GCC and the data and instruction characteristics of RISC-V architecture are analyzed in this paper.The GCC back-end porting mechanism is proposed.The machine description method was used to generate 32-bit riscv-none-embed-gcc compiler,and GCC porting of the RISC-V processor was completed.The peephole optimization method with strength reduction was designed to solve the problem of high CPU cost during the intermediate code generation phase.The verification and test results show that the compiler can correctly compile source code,and has universal functions,that the size of optimized target code is reduced about 11%.The quality of the target code is improved,and the storage space is saved for the embedded processor with limited resources.
作者 唐俊龙 禹智文 刘远治 肖仕勋 邹望辉 Tang Junlong;Yu Zhiwen;Liu Yuanzhi;Xiao Shixun;Zou Wanghui(School of Physics&Electronic Science,Changsha University of Science&Technology,Changsha 410114,Hunan,China;Hunan Provincial Key Laboratory of Genetic Engineering for Flexible Electronic Materials,Changsha 410114,Hunan,China)
出处 《计算机应用与软件》 北大核心 2021年第9期262-267,285,共7页 Computer Applications and Software
关键词 交叉开发 RISC-V体系结构 GCC编译器 后端移植 窥孔优化 强度削弱 Cross-development RISC-V architecture GCC compiler Back-end porting Peephole optimization Strength reduction
  • 相关文献

参考文献8

二级参考文献56

  • 1石博慧,陈英.GCC代码优化技术的研究[J].微机发展,2004,14(8):67-70. 被引量:6
  • 2马湘宁,武成岗,唐锋,冯晓兵,张兆庆.二进制翻译中的标志位优化技术[J].计算机研究与发展,2005,42(2):329-337. 被引量:9
  • 3叶崴,马杰,侯朝焕.GCC的流水冲突识别器和并行调度器[J].计算机工程与应用,2005,41(20):10-11. 被引量:1
  • 4王凤芹,刘春林,胡定磊.一种支持DSP条件执行指令的编译框架[J].计算机工程,2006,32(11):106-108. 被引量:1
  • 5[1]Bou jarwah A S, Saleh K. Compiler Test Case Generation Methods: A Survey and Assessment. Information and Software Technology,1997, (39): 617-625
  • 6[2]Appel A W, Ginsburg M. Modern Cormpiler Implementation in C.Cambridge: Cambridge University Press, 1998
  • 7[3]Gan Qitao, Sun Tong. Compiler Evaluation Methodology and Engineering. Motorola Internal Papers, 1999
  • 8[4]Boujarwah A, Saleh K. Compiler Test Suite: Evaluation and Use in an Automated Test Environment. Information and Technology, 1994,36(10): 607-614
  • 9JPEG - 6B. The Independent JPEG Group's JPEG software. 27-Mar-1998.
  • 10杜春蕾.ARM体系结构与编程.北京:清华大学出版社,2003..

共引文献7

同被引文献5

引证文献1

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部