The compiler technology based on profiling
- Author
- DongXiQian
- Advisor
- ZhangZhaoQing
- School
- Institute of Computing Technology
- Major
- Computer Architecture
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2002
- Downloads
- 128
- Citations
- 1
Abstract
The compiler will optimize the code in order to get high performance. A traditional optimizing compiler relies entirely on static analysis of the program’s source code, and the information is static. The optimization which depends on static information has increased dramatically in the last decade. The optimization technique and the algorithm have proven their worth in the increased performance of programs. However, static analysis by definition can only guess at the performance characteristics of a program, the static information is different from the true run-time characteristics of a program, so the performance can’t be improved as we expect. We need a kind of technique that can get the run-time information of a program. The optimization depends on it. Profiling is used to collect the run-time information of a program, record and save the information. And compiler will use the information to optimize the code. The technique is called profiling based technique that depends on profiling. It can improve much more basing on the static optimization. The profiling can be divided into two parts, one depends on control flow graph and the other depends on the data stream. Now the profiling-based optimization is becoming a hotspot recently. We will do some work about profiling research.This paper describes the technique of edge profiling, path profiling and value profiling. We will focus on the next part:①We will introduce the edge profiling and path profiling, and describe how to design framework of profiling which is convenient for other profiling implement. In ORC, we implemented the edge profiling and value profiling. The performance is improved by 5%.②We describe the function inline depending on information from edge profiling. We will automatically inline to improve the performance of code.③To design a broad sense profiling of control flow graph. It combines the edge profiling and path profiling. We can gather the information of edge profiling and path profiling from the broad sense profiling. At the same time we can provide the other information about control flow.
Table of contents
Summary 4-5
Abstract 5-8
Chapter 1 Introduction 8-12
1.1 compiler technology overview 8-10
1.2 compiler technology and traditional optimization 10-12
chapter based profiling compiler technology 12-22
2.1 new compiler optimization techniques - based on profiling optimization 12-14
2.2 edge profiling and related optimization 14-15
2.2.1 edge profiling 14-15
2.2 .2 optimized edge profiling based on correlation of 15
2.3 path profiling 15-17
2.4 value profiling 17-18
2.5 compiler based on profiling the frame design 18-22
the third chapter is to reduce the overhead of using a variety of profiling to a variety of optimization techniques 22-25
3.1 Cartridge code embedded 22
3.2 based on spanning tree (spanning tree) to determine the insertion position 22-24
3.3 using sampling techniques to reduce operating overhead 24
3.4 feedback file reuse technology 24-25
Chapter IV results 25-27
Chapter conclusions and Prospects 27-29
5.1 Conclusion 27
5.2 based on dynamic profiling optimization - dynamic inline (dynamic inline) 27-28
5.3 integrated dynamic control flow profiling 28-29
reference literature 29-31
Thanks About 31-32
Author 32