计算机C语言编译系统前后端的设计与实现  

Design and Implementation of Front and Rear End of Computer C Language Compilation System

在线阅读下载全文

作  者:王强 Wang Qiang(Jiangsu United Vocational and Technical College Suzhou Industrial Park Branch,Suzhou,China)

机构地区:[1]江苏联合职业技术学院苏州工业园区分院,江苏苏州

出  处:《科学技术创新》2024年第24期128-131,共4页Scientific and Technological Innovation

摘  要:本文主要探究了计算机C语言编译系统前端和后端的设计要点与实现方法。系统前端通过词法分析器和语法分析器,可以实现单词识别、语法翻译,并借助于错误码实现了对非法情况的自动识别与提醒,方便开发人员及时发现源程序问题,提高了编译的质量与效率。系统后端使用80×86架构实现了对寄存器资源的优化分配,并通过栈式存储管理减小存储资源的占用,为程序运行提供了有利环境。该系统可支持词法和语法识别,以及目标文件和可执行文件生成管理等功能,能够满足C语言编译的基本需要。This article mainly explores the design points and implementation methods of the front-end and back-end of computer C language compilation systems.The front-end of the system can achieve word recognition and grammar translation through lexical and syntactic analyzers,and automatically recognize and remind illegal situations with the help of error codes,making it convenient for developers to discover source program problems in a timely manner and improving the quality and efficiency of compilation.The system backend uses the 80×86 architecture to optimize the allocation of register resources and reduces storage resource usage through stack storage management,providing a favorable environment for program operation.This system can support lexical and syntax recognition,as well as target file and executable file generation management functions,and can meet the basic needs of C language compilation.

关 键 词:C语言编译系统 词法分析器 目标文件 符号重定位 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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