首页 | 本学科首页   官方微博 | 高级检索  
     

基于可重用代码生成器设计与实现
引用本文:张仕仁. 基于可重用代码生成器设计与实现[J]. 山西大学学报(自然科学版), 1993, 16(3): 285-290
作者姓名:张仕仁
作者单位:山西大学计算机科学系
摘    要:本文介绍IBMPC/XT机的代码生成器的设计。我们把编译程序分成两部分:前端编译和后端编译。前端编译对源程序进行分析,生成抽象指令形式的中间语言;后端编译对抽象指令进行处理,产生PC机汇编代码。对中间语言,采用语法制导原理进行分析,采用模式匹配产生汇编代码。

关 键 词:代码 生成器 编译程序

THE DESIGN AND IMPLEMENTATION OF THE GENERATOR BASED ON THE REUSE CODE
Zhang Shiren. THE DESIGN AND IMPLEMENTATION OF THE GENERATOR BASED ON THE REUSE CODE[J]. Journal of Shanxi University (Natural Science Edit, 1993, 16(3): 285-290
Authors:Zhang Shiren
Abstract:The design of the generation of code for IBM pc/XT is introduced. Compiler is divided into two parts: the front Ind Compiler and the rear end compiler. The source program is analysed by the front end compiler and the medial language of the abstract ins truetion is generated. The abstract instruction is dealed by the rear end compiler and then the PC-machine assembler instraction is generated. The medial langnage are analysed by using the principle of Syntax-Directed transtation and the assembler instraction is generated by using the pattern matching.
Keywords:code generator   compiler  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号