基于类库的可重定向编译器后端设计与实现  被引量:1

The Design and Implementation of a Retargetable Compiler Back End Based on Class Libraries

在线阅读下载全文

作  者:王民华[1] 张素琴[1] 田金兰[1] 

机构地区:[1]清华大学计算机科学与技术系,北京100084

出  处:《计算机工程与应用》2003年第9期115-118,共4页Computer Engineering and Applications

基  金:国家自然科学基金项目(编号:60083004)

摘  要:该文在对几种可重定向编译器进行分析的基础上,提出了一种基于类库的可重定向编译器后端设计技术。该技术通过恰当定义机器描述与代码生成之间的接口,抽象不同硬件平台共有的操作与功能,隔离中间表示和不同硬件平台汇编语言代码的差异。根据不同硬件平台特点,利用面向对象技术实现接口,构成重定向支持类库。代码生成器通过对接口的调用,将中间表示转化为相应平台的汇编语言,完成编译器后端的重定向工作。By analyzing some retargetable compilers,this paper gives a way to design a retargetable compiler back end.Using the well-defined interfaces between the code generator and the machine description that abstract the common functions and operations on different hardware platforms ,the variety of assembly languages becomes transparent.A class library that supports retargetable back end construction can be built using object -oriented technologies.The code generator achieves the retargetable work by invoking the interfaces to translate the IR to the target language.

关 键 词:编译器后端 代码生成 可重定向 类库 

分 类 号:TP314[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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