检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:唐俊龙[1,2] 禹智文 刘远治 肖仕勋 邹望辉 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)
机构地区:[1]长沙理工大学物理与电子科学学院,湖南长沙410114 [2]柔性电子材料基因工程湖南省重点实验室,湖南长沙410114
出 处:《计算机应用与软件》2021年第9期262-267,285,共7页Computer Applications and Software
摘 要:嵌入式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.
关 键 词:交叉开发 RISC-V体系结构 GCC编译器 后端移植 窥孔优化 强度削弱
分 类 号:TP314[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.144.97.63