Research on Intermediate Code Optimization in GCC

Author
ZhangDian
Advisor
LiLanYing
School
Harbin University of Science and Technology
Major
Applied Computer Technology
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2008
Downloads
218
Citations
2

Request the full text

Abstract

The endless programming language, computer advances, resulting in a diversity of programming languages ??and computer, which has brought a heavy burden to the compiler of the structure. The emergence of the intermediate code will be optimized as far as possible be applied to the intermediate language, rather than applied to the high-level language or low-level language. Intermediate code optimization process consists of non-loop optimization and loop optimization of two parts. Data flow analysis is a non-circulating technology necessary to optimize the model, data flow analysis model, however, can not be incrementally modify the data stream, and therefore build incremental data flow analysis model to become a non-loop optimization techniques focus; other hand, the loop optimization, localized, and can improve the program to determine the ideal step length vector corresponding to the transformation matrix of a plurality of array access, however, if these transformations are the same matrix does not resolve conflicts measures computational complexity is very high. This article by the in-depth study of the data flow analysis techniques, the introduction of the control block decomposition flow diagram to build a control flow tree to determine the node in the back side and the circulation path in the flow diagram contained by these back side from the original flow diagram The elimination can build without circulating Figure simplified flow diagram data flow analysis. The control block flow diagram of the control relationship shifted to the newly constructed within the control flow tree control node. Control block decomposition algorithms converted to control flow tree process flow diagram, create a node does not exceed the number n, the control flow tree to solving path expressions, and no more than determine the back edge of time complexity O (nlogn). Further, using the sum of the weighted system matrix elements of each column to get a new vector, determine most of the array access in the nested loop sequence consistent order stored in a coarser granularity nested loop to improve the local and greatly reduces the computational complexity. The implementation mechanism of the GCC senior cycle transform the in-depth study to determine the main factors to affect the GCC advanced loop transformations GCC calculate the matrix transformation mechanism by using nested loops unified analytical framework to determine the ideal cycle hierarchy solve the GCC calculation matrix transformation mechanism drawback. Finally, performance evaluation data to GCC compiler based platform, the improved GCC compiler test, the test results show that: the improved GCC compiler loop transformation capabilities have improved better.

Related dissertations

  1. Research and Cases Study on Data Flow Analysis
  2. Studies on Data Locality and Compiler Optimization Techniques
  3. Research on Compiler Optimization Technologies for THUMP
    CuiHuiMin ·Tsinghua University ·2003 ·Master's thesis
  4. Research on Instruction Scheduling for IA-64
  5. Research and Implementation of the Autovectorization for YHFT-Matrix Complier
  6. Analysis of Hardware Fault Propagation in Programs and Research on Fault-tolerance Techniques
  7. The Gulf Regional Cooperation after the Cold War: a Regionalism Perspective
    YuZhen ·Shanghai International Studies University ·2014 ·Doctoral dissertation
  8. A New Algorithm of Sound Source Localization Based on Special Acoustic Detection
  9. Technical Structure Analysis for Chinese Manufactured Goods Export to GCC
    RenMin ·Ningxia University ·2013 ·Master's thesis
  10. Algorithm Research and Localization System Design of In-Tank Robot Based on Microphone Array
    ZuoSongHua ·Shanghai Jiaotong University ·2012 ·Master's thesis
  11. Research on Technologies of User Access Behavior Check Based on Web Data Stream Analysis
    WeiHao ·PLA Information Engineering University ·2013 ·Master's thesis
  12. Research on Detecting Buffer Overflow in Binary Code
    YuXu ·Nanjing University ·2012 ·Master's thesis
  13. Analyze and Transplant of GCC Compiler Based on the Platform of SPARC
  14. The Research and Implementation of Path Sensitive Methods Summary in DTS
  15. Research on Data Type Reconstruction in Decompilation
    HeDong ·PLA Information Engineering University ·2012 ·Master's thesis
  16. The Design and Implementation of Testing Service System Based on Software Behavior Analysis
    ShenYi ·Nanjing University ·2013 ·Master's thesis
  17. An Integration of Several Data Flow Analysis Techniques for Program Verification
    XingYuChen ·Nanjing University ·2013 ·Master's thesis
  18. Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
    ZhangCheng ·Shanghai Jiaotong University ·2013 ·Doctoral dissertation
  19. Study on sound source localization algorithm based on time delay estimation
    ZhangQing ·North China University of Technology ·2012 ·Master's thesis
  20. Study on the construction of the six Gulf countries security from the perspective of Communitarianism
    LiuBin ·Shanghai International Studies University ·2013 ·Doctoral dissertation