Research and Implementation on Models of Profile-guided Compilation

Author
YangXia
Advisor
ZhaoKeJia
School
National University of Defense Science and Technology
Major
Software Engineering
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2006
Downloads
69
Citations
1

Request the full text

Abstract

Compiler optimization is a very important task which attemps to improve objectCode so as to make full use of performance of target machine. Traditional compileroptimizing techniques are mostly based on static analysis of source code, and allinformation needed by optimizer are collected staticlly. Such static information areconservative and often makes optimizer lose quite lot of oppommities for optimization.The profiling-guided compilation guides optimizing by run time profilinginformation. This method can remedy the disadvantage of static analysis method andgreatly improve the effct of optimizing and the execution efficiency of object code,which is impossible to achieve by traditional static methods. Profiling-guided compilingmethod has widely adopted by morden advanced compilers.In this paper, we discuss the issues about profiling-guided compiling techniquesand its implementation method from following aspects:We gave a brief introduction to the principle of profiling-guided compiling, theproblems we might face and solutions to them.We analyzed categories of information needed and collected by profiling-guidedcompiling, including their definition, application and how to capture them.We deeply analyzed the implementation method used by GCC4.0 such as thecompiling frame, the method of instrument, the format of profiling data file, and how toget profiling information and noting them in the RTL.We implemented a new profiling, path profiling, in GCC4.0 by use of thearithmetic reported by T. Ball and J. R. Larus. Path profiling record the times each pathwas executed and has lots of potential uses in programs optimizing and in softwaretesting, the experiment show that the method has achieved success.

Table of contents

Abstract 9-10 ABSTRACT 10-11 first chapter 11-14 issues 1.1 Background and significance 11-12 1.2 main topic of research content 12-13 The main structure of 1.3 papers 13-14 second chapter of feedback compiled mode 14-26 2.1 Feedback compilation mode Summary 14-16 2.1.1 compile mode feedback process 14-15 2.1.2 Feedback compilation mode to solve the key problem 15-16 2.2 profile information types 16-22 2.2.1 Control Flow Profile 16-19 2.2.2 Value profile 19-20 2.2.3 Address profile 20-22 2.3 Instrumentation 22-26 2.3.1 several typical staked 22-23 2.3.2 Instrumentation overhead comparison 23-24 2.3.3 Instrumentation concrete realization 24-26 Chapter GCC4.0, profile-guided compiler technology analysis 26-42 the compiled framework of 3.1 GCC4.0 26-27 3.2 GCC the control flowchart related data structures 27-29 3.3 the GCC profile-guided compiled implementation technology 29-34 3.3.1 edge profile to achieve 31-32 3.3.2 value profile implementations 32-34 3.4 GCC4.0 in the data file format 34-37 3.4.1 data file logical structure 34-36 3.4.2 data files instances 36-37 the of 3.5 GCC4.0 on profilling information marked 37-42 3.5.1 compiler reads the profile data 37-38 the 3.5.2 edge profiling information marked 38-39 3.5.3 on value profiling information marked 39-42 - fourth based on the realization of GCC4.0 path profile 42-65 4.1 proposed purpose of the path profile 42-43 4.2 framework path profile 43-47 4.2.1 path profile algorithm introduced 43-46 4.2.2 Algorithm 46 4.2.3 record path profile information, the design of the data file format 46-47 4.3-fprofile-path command switch 47-51 4.3.1 GCC command line parameter handling mechanism introduced 47-48 4.3.2 increase-fprofile-path command switch to achieve 48-51 4.4 path profile instrumentation 51-60 4.4.1 algorithm involving data structures 51-52 4.4.2 staked achieve 52-60 the saved path of 4.5 in the data file number of executions 60-63 4.5.1 data structure 60 4.5.2 algorithm to achieve 60-63 4.6 test results and analysis 63-65 Chapter V Conclusion 65-68 5.1 work summarizes 65 5.2 Research harvest and Prospects 65-68 Acknowledgements 68-69 Reference 69-72 the author achieved academic achievements during the study period 72

Related dissertations

  1. Based on the Continuous Improvement of R&D Management Research
  2. Research on Multi-channel Radar Signal Simulator by Instrument
    XuMei ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. The Usage of Digitalize Imaging Quality Control for "Junyuexiangdi"Real Estate Commercial Advertisement Photography
    HouXie ·Hunan University ·2012 ·Master's thesis
  4. Rapid Detectection Instrument of Vegetation Nitrogen Based on Spectral Information
    SunGang ·China Agricultural University ·2013 ·Doctoral dissertation
  5. Rapid Determination and Instrumentation of Soil Organic Matter Based on Visible-Near-Infrared Spectroscopy
    LuoWeiQiang ·Zhejiang University of Technology ·2013 ·Master's thesis
  6. Research of Instrument and Control System for Millions Ethylene Cracking Gas Compressor
    ShiZuo ·Northeastern University ·2013 ·Master's thesis
  7. Development of the Real-time Logging System on Ice Shelf Hot-drilling
  8. Based on CAN Bus of Pure Electric Vehicles for Instrument Design
    ZhouSuMao ·Guangxi University of Technology ·2012 ·Master's thesis
  9. Research and design of Gigabit Ethernet service single board instrument
  10. Research on Profile-Guided SIMD Vectorization Identification and Optimization
  11. Research and implementation of WEB testing equipment testing management system based on
    ZhangXuan ·Sun Yat-sen University ·2012 ·Master's thesis
  12. The Research and Design of Boundary Checkout Circuit Module
  13. Electro-magnetic Compatibility Test System Construct of Wireless Communications Products
    XiaoLing ·South China University of Technology ·2012 ·Master's thesis
  14. Investigation into Instruments in Chinese EFL Learners’ Relativization
    TangWeiQin ·Jiangnan University ·2013 ·Master's thesis
  15. Development and Evaluation of Patient-reported Outcomes Instrument for Asthma
    DongLiMin ·Shanxi Medical ·2012 ·Master's thesis
  16. Development of a Patient Reported Outcomes Instrument for Patients with Gastric Stuffiness Based on Computer Adaptive Test(GS-CAT)
  17. Development and Test of the Ac Field Detection Instruments
  18. Evaluation the Quality of Fresh Tea Shoots by Near Infrared Spectroscopy
    WangShengPeng ·Anhui Agricultural University ·2012 ·Doctoral dissertation
  19. Effect of Quantity Value Source-tracing in Chemistry Analysis
    ZhaoZuo ·Lanzhou University ·2013 ·Master's thesis
  20. Study on Composition of Instrument in Tang Dynasty’s Palace
    LiuYang ·Chinese National Academy of Arts ·2008 ·Doctoral dissertation