Implementation of C++Checking Tool with Static Safety Rules
- Author
- WeiZhiQiang
- Advisor
- WangAnSheng
- School
- Beijing University of Posts and Telecommunications
- Major
- Software Engineering
- Classification
- TP312.1 Programming language ALGOL
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 114
- Citations
- 2
Abstract
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 \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.
Related dissertations
- Research and Implementation of the Autovectorization for YHFT-Matrix Complier
- The high school mathematics teaching case preparation and use of problem analysis and countermeasure research
- The Gulf Regional Cooperation after the Cold War: a Regionalism Perspective
- The Development of the Neonatal Nurses' Knowledge and Attitudes Survey Regarding Pain
- Soil Carbon/Nitrogen Dynamics, Carbon Fractions and Nutrient Distribution under Long Term Tillage and Residue Management Systems in North China Plain
- Development of Laser Coal Stocktaking System
- Migration and Transformation Law of Nitrate in Unsaturated Zone and Saturated Zone
- Research on the Key Technology of Compiled-typed Cnc System Based on USB Communication Interface
- A New Algorithm of Sound Source Localization Based on Special Acoustic Detection
- Technical Structure Analysis for Chinese Manufactured Goods Export to GCC
- "History of the Song Dynasty, and clothing Chi" research
- The Design and Implementation of A Miniature Programmable Controller Based on ADuC831Singlechip
- Algorithm Research and Localization System Design of In-Tank Robot Based on Microphone Array
- Analyze and Transplant of GCC Compiler Based on the Platform of SPARC
- The Design and Implementation of Testing Service System Based on Software Behavior Analysis
- Research and Implementation of Tape Resources Management System
- Study on sound source localization algorithm based on time delay estimation
- Research of Digital Integrated Circuit Design
- Key Technologies for Strained Si/Ge MOSFETs with Source/Drain Stressors
- Study on the construction of the six Gulf countries security from the perspective of Communitarianism