C++静态安全规则检查工具实现

被引量 : 7次 | 上传用户:jsd84r
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
C++ language is a development language of software which is widely used at present .The developers using C++ language pursuit efficiency and flexibility of the language. So they ignore the safety of the language in varying degrees. And because of limited capacity and carelessness of programmers, the safety of software is under serious threat.The development of C++ static safety rule checking tool is studied in this paper. Static code checking tool is software which is used to help programmers to automatically detect whether there are potential safety defect in source code. Through line by line it analyses the source code and finds the potential safety defect in software. The formulation of safety rules based on "MISRA C++ 2008", with summarizing other books about C++ security, is integrated its own set of standards for software development in the aerospace. According to static analysis of C++ program, the code which is detected non-compliance with safety standards is warned. The purpose is to detect potential safety defect in C++ program by application of static analysis.Rule checking tool is based on open source compiler GCC and the code which is used to check rules is added on the base of the frontend of GCC. Therefore firstly this article introduces the theory of achieving the frontend of compiler, and then it introduces the internal structure and implementation of the frontend of GCC through reversely analysis of source code of GCC. Finally the methods to develop checking tool are discussed totally according to GCC source code.
其他文献
随着火力发电厂自动化水平的不断提高及DCS系统的广泛应用,全厂设备的参数及实时数据的重要性不但增强,火力发电厂厂级监控系统(SIS)成为电力企业信息化的重要组成部分。电力
本文基于背景辐射和传热学基本理论,利用MODTRAN大气传输模型计算了不同天顶角和不同观测高度时的太阳辐射、天空背景辐射、海背景辐射亮度;通过对海面目标所处热环境的分析,
陕西经济目前处于高污染、高能耗、高排放的产业发展模式。本文通过分析陕西"高碳"经济的突出现象,指出陕西发展经济必须走低碳化道路,认为金融支持是发展低碳经济的必要途径
针对关于铁路企业班组管理建设的探讨问题,文中探讨了铁路企业发展与加强班组建设与管理的意义,提出了铁路企业发展对班组管理的具体要求,主要包括:班组长要提高自己的管理能
本文拟从水利管理角度切入,分水利机构和置官、管理法令制度、治理经费来源和力役征发问题、水利政论四个方面对北宋水利管理进行考述,并结合其与政治经济的关系考察北宋水利
目的:为上颌骨翻转入路切除颅底沟通肿瘤提供解剖学指导并结合临床应用探讨其可行性。方法:(1)解剖研究:选择福尔马林固定保存良好的成人尸头湿标本10具,分别于双侧颈总动脉
随着中国逐渐成为世界的LED封装加工中心,LED应用领域对LED分光分色质量的不断提高,全自动LED分色分光机已逐渐成为LED封装生产线的必备设备。目前针对普通LED的全自动分色分
分形理论是现代数学的一个新分支,被誉为大自然的几何学,其本质是一种新的世界观和方法论。它承认世界的局部可能在一定条件下或过程中,在某一方面(形态、结构、信息、功能、
为推动企业自主科技创新,国家制定了一系列的税收优惠政策,并每年安排大量的专项扶持资金,鼓励企业增加科研支出。而研发支出的会计核算与税务处理是否得当,会直接影响到企业
互通立交曲线梁桥是目前在公路及市政道路建设中应用最为广泛的桥梁结构形式,由于其构造物的设计不仅受几何因素的控制,还受结构受力因素的约束,显得非常复杂且规律性差。目