GCC compiler system architecture analysis and back-end transplant practice

Author
CaiJie
Advisor
LiGanSheng , LiYing
School
Zhejiang University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2004
Downloads
608
Citations
8

Request the full text

Abstract

Development Environment of Embedded System has its own requirements. Some characteristic of Embedded System such as ROM based, aggressive demand of performance, etc. make those usually used compilers can’t act as this role perfectly. GCC is a successful compiling system with optimization, which supports many high-level language and many platforms. It can be a good choice of compiler of Embedded System IDE.After listing some requirements of Embedded System Development Toolschain, this paper gives the advantage of using GNU based tools, and some information about GCC architecture. Through those analyses, we expected to know how we can do something to have the GCC compiler to fit our project.GCC has architecture as follow:1. Its Frontend interface is based on the tree structure. Additionally, the hook mechanism connects the language-specific front end and the GCC main body.2. All GCC optimization is performed on the RTL expressions. Its local optimization mechanism is its advantage, while its lake of architecture-specific optimization and weakness of global optimization has degradation its total generated code performance.3. Its backend interface is based on the RTL language. Developer can get the machine-specific backend just through define some machine information in three files. As practice, we have finished a GCC porting to MPC555. But it’s a hard job, through it seems so easy.At last, this paper gives some information about the following work. It focuses on a developer friendly used GCC backend interface and some improvement on GCC optimization mechanism.

Table of contents

Abstract 2-3 Abstract 3-4 directory 4-6 1 Introduction 6-11 1.1 Project background 1.2 embedded systems development environment requirements 6-8 1.3 GNU tool chain advantage 8-9 1.4 major work , as well as intent 9-11 GCC introduced 11-14 2.1 the GCC history and development 11 2.2 the GCC to support the front - end 11 2.3 GCC support back-end 11-12 2.4 the GCC support for host systems 12 2.5 the GCC so the reason 12 2.6 GCC composition of 12-14 3 GCC compiler structure and process 14-31 3.1 GNU toolchain GCC 14 - 17 3.2 GCC structure 17-18 3.3 GCC main compilation process with the related modules 18-31 4 GCC compiler front-end interface 31-46 4.1 tree format 31-39 4.2 function call interface 39-42 4.3 callback mechanism 42-44 <br / > 4.4 on the front of a section 44-45 4.5 compiler 's integrated 45-46 GCC compiler back-end interface 46-59 <br / > 5.1 the RTL language 46-48 5.2 the GCC back-end overview 48-49 5.3 target description macro file machine.h 49 5.4 machine description file machine.md 49-52 5.5 file machine.c 52-53 5.6 code generation mechanism 53-57 5.7 integration 57-59 GCC back-end portable implementation of example 59-71 6.1 Why is selected on MPC555 59-60 6.2 the PowerPC system structure characteristics 60-61 6.3 PowerPC EABI, the definition of the characteristics of 61-67 6.4 on MPC555 transplant process 67-70 6.5 section 70-71 conclusion 71-73 References 73-75 thank 75-76 Appendix reading papers and research 76

Related dissertations

  1. The Research on Data Placement for Multiple Types of Memory Units in Embedded Systems with Scratch-Pad Memories
    ZhangJun ·Hunan University ·2013 ·Master's thesis
  2. Porting and Optimization of G.723.1Algorithm for ARM Platform
  3. Optimization of Opus Decoders in Arm Cortex-A8
  4. The Study and Design of Vehicle Traveling Data Recorder Based on Embedded System
    CaoShiChao ·Jinan University ·2012 ·Master's thesis
  5. Research and Development of the Cross Compiler Based on GCC for Embedded System
    FengGang ·Zhejiang University ·2004 ·Master's thesis
  6. Research and Implementation of Cross-compiler System
    SuZuoZuo ·Zhejiang University ·2003 ·Master's thesis
  7. The Primary Assembler Optimizing of DSP C Compiler Based on GCC
    ZuoFeng ·Suzhou University ·2005 ·Master's thesis
  8. Research and Development of Compiler in Embedded System Based on GCC
    YangChuanLong ·Harbin Engineering University ·2006 ·Master's thesis
  9. Research on Software Pipelining Based on GCC
    Yang ·Harbin Engineering University ·2006 ·Master's thesis
  10. The safety of the C language compiler
  11. Design and Implementation of the Vectorizing Complier of High-Performance DSP Matrix
  12. Research on the Optimization of the System of Urban-rural Integrated Residents Social Pension Insurance of Laiwu City
    HaoXiaoJuan ·Shandong Agricultural University ·2013 ·Master's thesis
  13. Optimization Study of a Insurance Company Ningxia Branch’s Business Structure
    SunZuo ·Ningxia University ·2014 ·Master's thesis
  14. The Optimization of Fund Contract in the Perspective of Governance Structure
    YaoZhuangLong ·Central South University ·2013 ·Master's thesis
  15. The Personal Loans Centre Process Optimization Study of Ccb Shaanxi Branch
    LiuMing ·Northwestern University ·2012 ·Master's thesis
  16. Research on Optimization of commercial bank loans business processes Chinese micro enterprise
    ZhouXiaoDan ·Inner Mongolia University ·2013 ·Master's thesis
  17. Optimization of Commercial Bank Credit Rating Index System for SMEs
  18. An Optimization Study on Proscenium Support Facilities of Commercial Banks on Queuing Theory
    ChenMei ·Harbin Institute of Technology ·2012 ·Master's thesis
  19. The Credit Process Optimization of A Bank
    WangHe ·Liaoning University ·2012 ·Master's thesis
  20. The branches of commercial banks, credit risk management process - a case study of A bank D branch cases
    JinYanXin ·Yunnan University of Finance ·2013 ·Master's thesis