C++ Source Code Analysis System’s Research and Design Based on G++ Front End
- Author
- XinLiJuan
- Advisor
- PengSiWei
- School
- Beijing University of Chemical Technology
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 75
- Citations
- 0
Abstract
GCC is the flagship product in the GNU open source world heavyweight products , most open source products are based on the compiler . GCC is a compiler collection , including a C compiler is . GCC using the front-end , back-end combination of front-end is responsible for processing language analysis to generate intermediate code , back-end is responsible for the treatment of specific physical platform to generate the object code . Source code analysis technology is an important part of software testing , systems analysis and software development . In this paper, the structural features of G with technical background , analysis of the G internal segregations G front end , and as source code analysis system to construct technical ideas , source code analysis objectives and specific implementations. G is an open-source product , you can use the source code , parse and extract G front-end part ( source code analysis and physical platform-independent , so there is no need to use the back-end part of G ) , and access to the source code of the syntax -level analysis functions , on this basis, further generate semantic analysis diagram control flow diagram , class diagram , design -based front-end G C source code analysis system , and the system function is verified .
Table of contents
Abstract 4-5
ABSTRACT 5-11
first chapter 11-17
1.1 research background 11 - 14
1.1.1 compiler causes 11-14
1.1.2 source code analysis 14
1.2 research significance 14-15
1.3 This topic research to About 15-17
GCC / G compiler 17-25
2.1 GCC compiler the development of historical 17-18
2.2 results of previous studies 18-19
2.3 G compiler installation and test 19-22
the 2.4 G overall structure of the compiler 22-24
2.5 Chapter Summary 24-25
Chapter G source code analysis and research 25-41
3.1 G source code tree node 25-27
3.2 G source code in Tree-SSA structure 27-32
3.2.1 Tree-SSA history Background the 28-29
3.2.2 Tree-SSA form introduced 29-31
3.2.3 Tree-SSA framework to achieve 31-32 <br / > the callback mechanism nbsp 3.3 G source code; the 32-36
3.4 G source code in the end nbsp structure; 36-38
3.5 Chapter Summary 38-41
Chapter system source code analysis and design 41-61
4.1 design system aims 41-42
4.2 control flow graph data structure 42-49
4.2.1 control flow graph defined 42-43
4.2.1.1 basic block 42
4.2.1.2 Control Flow Graph 42-43
the 4.2.2 node control flow graph traversal 43-44
4.2.2.1 depth-first traversal 43-44
4.2. 2.2 breadth-first traversal 44
4.2.3 construct the control flow graph structure 44-49
4.2.3.1 basic block data structure 44-46 <br / > 4.2.3.2 edge data structure 46-49
4.3 architecture diagram data structure research 49-51
4.3.1 basic model 49 -50
the 4.3.2 class diagram construction rules
50 4.3.3 class diagram data structures 50-51
4.4 system design 51-59
4.4.1 Theoretical Studies 52-53
4.4.2 design 53-57
4.4.3 system composition 57 - 58
4.4.4 system verification the 58-59 4.5 Chapter Summary
59-61
Chapter Summary and Outlook 61-63
5.1 has completed work 61
5.2 The next step to References 61-63
63-65
Acknowledgements 65-67
research and published papers 67-69 the
author and mentor Profile 69-70
Beijing University of Chemical Technology graduate dissertation committees for resolution book 70-71
Related dissertations
- Software Trustworthiness Mesurement Based on Model Checking
- Research on the Interactive General Tools for Program Comprehension
- Research of Embedded Operating System Tailoring
- Research on Source Code Analysis, Display and Application Based on SrcML
- C language IC ATE applications automatically analyze conversion
- The Application of Visualization in Operating System Education
- Design and Implementation of the Network Real-time Time-series Data Acquisition System