检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:王强 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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.16.44.178