Research and Cases Study on Data Flow Analysis
- Author
- WangXiaoFei
- Advisor
- ZhaoKeJia
- School
- National University of Defense Science and Technology
- Major
- Software Engineering
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 209
- Citations
- 3
Abstract
Compiler in order to convert the high-level language program to be able to most full play to the performance of the computer executable code , the code needs to be a variety of optimization , is about a structure of the intermediate code is converted to a more efficient another structure intermediate code. Detailed data flow analysis for compiler optimization is very important , whether it is a traditional high-level optimization, or low-level optimization for modern microprocessor architectures , all can not do without the support of data flow analysis . Therefore , data flow analysis is one of the most important part of the modern compiler , the basis for a variety of compiler optimization . Whether the data flow analysis plays an extremely important role in a comprehensive and full effect on compiler optimization . This paper describes the theory of data flow analysis , data flow analysis of mainstream technology , summarizes the various technologies . In this paper, an open source compiler GCC targeted analysis of the basic structure and work processes in the GCC . Used by the compiler data flow analysis and specific implementation method based on the study of all major data flow analysis techniques , analysis , focusing on analysis of data structures and algorithms used by the GCC compiler data flow analysis , describes GCC data flow analysis on the data structure and function interface , combined with other data flow analysis techniques were analyzed and compared . Deficiencies identified from the analysis and comparison of the GCC compiler data flow analysis to achieve , and recommendations for improvements . The experimental results show that the improvement has a certain effect .
Table of contents
Abstract 8-9
ABSTRACT 9-10
Chapter 1 Introduction 10-12
Chapter 2 the theoretical knowledge of the data flow analysis problem 12-26
2.1 basic concepts 12-16
2.1.1 basic block and control flow chart 12-13
2.1.2 flow graph nodes to find and traverse 13-14
2.1.3 must pass through node must pass through the junction 14-15
2.1.4 and stream function 15-16
2.2 data flow equation with common data stream 16-21
2.2.1 Data flow equation 17
2.2.2 common data stream 17-21
2.3 data flow analysis using methods 21-24
2.3.1 iterative data flow analysis 21-22
2.3.2 based on the analysis of the data flow control tree 22-23
2.3.3 Structural Analysis 23-24
2.3.4 Interval Analysis 24
2.4 data flow analysis method simple comparison 24-26
Chapter 3, data flow analysis case study-GCC data flow analysis to resolve 26-58
3.1 GCC basic structure 26-29
3.1.1 the GCC an integral part 26-28
3.1.2 data flow analysis in which the location 28-29
3.1.3 GCC and data flow analysis for the optimization 29
3.2 GCC data flow analysis Overview 29
3.3 data flow analysis, global data structures 29-39
3.3.1 basic block data structure 29-34
3.3.2 indicates edge data structure 34-37
3.3.3 collection of data structures 37-39
3.4 live variable analysis 39-48
3.4.1 active variable analysis method for 39
3.4.2 on flow.c file interpretation 39-40
3.4.3 on life_analysis function analysis 40-42
3.4.4 on the analysis of other functions 42-48
3.5 DU chain, with the establishment of the UD chain 48-58
the
of 3.5.1 on df.c file interpretation 48-51
3.5.2 on df_analyse function analysis 51-52
3.5.3 on the analysis of other functions 52-58
Chapter 4 of the merits of GCC data flow analysis method with improved 58-65
the
the 4.1 GCC data flow analysis method has the advantage 58
4.2 the GCC data flow analysis inadequate and needs to be improved 58-62
4.3 Results and analysis 62-65
Chapter 5 Conclusion 65-66
Acknowledgements 66-67
the
References 67-69
the
Appendix A: papers published for Master during 69-70
The
Appendix B: to participate in the research projects during the study for master 70
Related dissertations
- Research on Intermediate Code Optimization in GCC
- Research on Compiler Optimization Technologies for THUMP
- Research on Instruction Scheduling for IA-64
- Research and Implementation of the Autovectorization for YHFT-Matrix Complier
- Analysis of Hardware Fault Propagation in Programs and Research on Fault-tolerance Techniques
- The Gulf Regional Cooperation after the Cold War: a Regionalism Perspective
- A New Algorithm of Sound Source Localization Based on Special Acoustic Detection
- Technical Structure Analysis for Chinese Manufactured Goods Export to GCC
- Algorithm Research and Localization System Design of In-Tank Robot Based on Microphone Array
- Research on Technologies of User Access Behavior Check Based on Web Data Stream Analysis
- Research on Detecting Buffer Overflow in Binary Code
- Analyze and Transplant of GCC Compiler Based on the Platform of SPARC
- The Research and Implementation of Path Sensitive Methods Summary in DTS
- Research on Data Type Reconstruction in Decompilation
- The Design and Implementation of Testing Service System Based on Software Behavior Analysis
- An Integration of Several Data Flow Analysis Techniques for Program Verification
- Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
- Study on sound source localization algorithm based on time delay estimation
- Study on the construction of the six Gulf countries security from the perspective of Communitarianism
- Research status of civilian nuclear energy policy and the development of the GCC countries