Based SUIF2 interprocedural analysis and optimization

Author
ChenYang
Advisor
WangZhongRen
School
University of Electronic Science and Technology
Major
Computer System Architecture
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2003
Downloads
105
Citations
0

Request the full text

Abstract

With the great development of processors technology, compiler optimization techniques take more and more important role in the research of modern processors. Not only can appropriate optimization algorithms generate high efficient target code, but also simplify the hardware control mechanism for processors. Moreover, generations of new language features and techniques for analyzing programs present new challenges to compilers, which need be adapted to these new language features. We should use new methods to improve code quality and resolve new problems during compiling.The traditional intraprocedural analysis and optimization handle the objects in only one procedure. But interprocedural analysis and optimization cover all over the program. For dealing with the whole program, they can get more context using the more complicated methods. It needs other analyzing techniques, distinguished from those of intraprocedural analysis, to find useful information across each procedure which compilers use to optimize code subsequently. Firstly, this dissertation introduces the conventional optimization techniques concisely and compares those with interprocedural techniques. Then, it explains the impact of interprocedural analysis and optimization, which results in the motive of our research. We present some classical theories about interprocedural analysis and optimization, including call multigraph construction, inline substitution and procedure cloning, and interprocedural information (side-effect summary sets, alias information and interprocedural constant). Furthermore, we give the overview of SUIF2, our research environment, which has modular structure and extensible program representation to maximize code reuse. With the modules and tools provided by SUIF2, we implemented an algorithm to construct call multigraph, and verified results. Lastly, we summarized our research work.Interprocedural analysis and optimization has great significance. Although they introduce some large compiler-time cost, they represent a trend of compiler optimization. Along with the more developed and effective methods of interprocedural analysis and optimization, there must be more compilers to be applied with these techniques.

Table of contents

Chinese Abstract 4-5 Abstract 5-9 first chapter 9-16 1.1 compiler optimization research purposes 9-10 1.2 traditional optimization methods Introduction 10-11 1.2.1 local optimization 10 1.2. 2 loop optimization 10 1.2.3 global Optimization 10-11 1.3 interprocedural optimization of the background 11-12 1.4 interprocedural optimization and comparison of traditional optimization techniques 12-13 1.5 interprocedural analysis and optimization of the impact of technology 13-14 1.6 of this article research methods and arrangement of the chapters 14-16 1.6.1 methodology 14 1.6.2 this chapter arrangements 14-16 <br / > Chapter interprocedural analysis and optimization 16-33 2.1 interprocedural analysis and optimization profiles 16-18 2.1.1 Definition 16 2.1.2 interprocedural analysis and optimization technology overview 16-18 2.2 call graph 18-20 2.2.1 Definition 18 2.2.2 call graph construction algorithm 18-20 2.3 inline substitution and process cloning 20-27 2.3.1 inline replacement 20-23 2.3.1.1 advantages inline replacement 20 2.3.1.2 perform inline replace considerations 20-21 2.3.1.3 inline substitution effects of register allocation 21-22 2.3.1.4 About inline replacement conclusions and recommendations 22-23 2.3.1.5 inline replacement realize 23 2.3.4 process cloning 23-27 2.3.4.1 cloning process definition 23-25 ?? 2.3.4.2 cloning process produces motivation 25 2.3.4.3 clone algorithm 25-27 2.4 interprocedural information 27-32 2.4.1 Summary of effects set 27 -28 2.4.2 alias 28-29 2.4.3 interprocedural constant 29-32 2.4.3.1 process constants between representation 29-30 2.4.3.2 forward jump function 30-32 2.4.3.3 return jump function 32 2.5 Chapter Summary 32-33 Chapter SUIF2 compiler infrastructure 33-46 3.1 SUIF2 introduction 33-34 3.1.1 SUIF2 key features 33-34 3.1.2 system provides compiler Construction Tools 34 3.2 SUIF structure 34-36 3.2.1 core (kernel) 35 3.2.2 module (moduls) 35-36 3.2.3 driver (drivers) 36 3.3 SUIF extensible program representation 36-37 3.3.1 multi-level representation 36-37 3.3.2 abstraction level 37 3.4 SUIF2 programming 37-45 3.4.1 Hoof specification language 37-40 3.4.1.1 SUIF intermediate representation 37-38 3.4.1.2 Hoof syntax 38 - 40 3.4.2 creating a module (Module) 40-43 3.4.3 generate a traversal (Pass) 43-45 3 0.5 Chapter Summary 45-46 Chapter call graph based SUIF2 create 46-58 4.1 background and Definitions 46-47 <br / > 4.2 algorithm 47-56 4.2.1 SUIF2IR node creation 47-50 4.2.2 class definition 50 -52 4.2.3 call graph construction algorithm 52-56 4.3 algorithm testing 56-57 4.4 chapter Summary 57-58 chapter summarizes 58-60 References 60-62 Thanks 62

Related dissertations

  1. Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
  2. The Design and Implementation of a Complier for SCADA Based on C
  3. Backend Porting for CSKY Based on LLVM Compiler Infrastructure
    HuMin ·Zhejiang University ·2014 ·Master's thesis
  4. Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
    GongCai ·Anhui University ·2014 ·Master's thesis
  5. The Embedded SRAM Compiler Design and IP Verification
    LiuXiaoQing ·Anhui University ·2014 ·Master's thesis
  6. Design and Implementation of SQL Compiler on Column-Oriented Database
    ZhenZhen ·South China University of Technology ·2012 ·Master's thesis
  7. Design and Implementation of Configurable Compiling Tools
    ZouYao ·Shanghai Jiaotong University ·2008 ·Master's thesis
  8. The Optimized Frontend Compiling System Design for Remus Ⅱ Reconfigurable Processor
    XieYuWei ·Shanghai Jiaotong University ·2013 ·Master's thesis
  9. A Self-Adapted Prolog Compiler
  10. The Design and Realization of Programming Device Based on the Type of STM8S208Single Chip Microcomputer as the Controller
    ChenXiong ·Wuhan Polytechnic University ·2012 ·Master's thesis
  11. Research and Design of Digital Broadcast Platforms
    GaoJianFang ·Hunan Normal University ·2012 ·Master's thesis
  12. Automatic Platform for Parameterized Design of ASIP
  13. The design of embedded SRAM compiler
  14. Design and Implementation of Memory Compiler for Embedded SOC
    GongZhanLi ·Anhui University ·2012 ·Master's thesis
  15. A Study on Preface of Selections of Novels in the Great Series of the New Literature 1917-1927
    ZhuZhiXiu ·Lanzhou University ·2008 ·Doctoral dissertation
  16. Study on Virtual Instrumentation Development Environment Based on Dataflow Visual Programming Language
    SuiYangZuo ·Jilin University ·2008 ·Doctoral dissertation
  17. Compiler Design for VLIW DSP with Performance and Power Consumption Optimizations
  18. Low-Power Techniques for Architecture and Compiler Optimization
  19. FPGA evaluation system layout module design
    ChenYuanFeng ·Fudan University ·2006 ·Doctoral dissertation
  20. The task scheduler Research multicore, multithreaded processors
    WuJiaJun ·Institute of Computing Technology ·2006 ·Doctoral dissertation