GCC编译器后端移植技术  被引量:4

GCC compiler rear-end porting technology

在线阅读下载全文

作  者:吕鹏伟[1] 袁成军[1] 贺骊[1] 

机构地区:[1]西安微电子技术研究所,陕西西安710054

出  处:《现代电子技术》2012年第6期39-42,共4页Modern Electronics Technique

摘  要:从GCC编译器的体系结构出发,提出了GCC前后端分离的结构以适合移植到不同的硬件平台,分析了GCC后端移植的关键技术。重点阐述后端移植所必须的文件,并详细说明这些文件的作用,给出了RTL中间语言的语法结构以及典型指令的RTL指令模板结构。最后通过一个实例对移植到新硬件体系结构的GCC进行测试,结果表明针对特定的硬件体系结构,GCC后端移植技术是可行的,能够产生正确的汇编语言代码。Proceeding from the GCC compiler system structure, the separation of GCC front-end and rear-end structures is put forwards to suit the transplantation to different hardware platforms. The key technology of GCC rear-end porting is ana- lyzed. The details and functions of these documents needed by the rear-end porting are presented. The intermediate language grammar structure of RTL and typical instruction template structure of RTL instructions are provided. Finally, an example of the GCC transplanted to a new hardware system structure were tested. The results show that GCC rear-end porting to the specific hardware system structure is practicable, which can produce the correct assembly language code.

关 键 词:RTL中间语言 指令模板 机器描述MD 后端移植 

分 类 号:TN919-34[电子电信—通信与信息系统] TP314[电子电信—信息与通信工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象