The Development and Research on Register Allocation and Gode Generation of Compilers for Media Processor

Author
GaoLei
Advisor
ShiCe
School
Zhejiang University
Major
Communication and Information System
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Master's thesis
Year
2005
Downloads
99
Citations
2

Request the full text

Abstract

Compiler is an important part of computer system. By translating programs from high-level languages to assemblies of target machines, it can help the development of application programs. DSPs and media-processors have been widely used in areas like digital signal processing, media processing and embedded system. Comparing with general purpose processors, they have complex and specialized instructions to make the applications of these peculiar areas getting higher performance. But there are some difficulties occur when designing compilers for these processors, such like instructions being difficult to be generated from high level languages and the heterogeneous of register file and instruction set.Register allocation and code generation are key parts of generating high performance assembly code. For the gap of target machines, register allocation and code generation of compilers for media processors can’t directly adopt the corresponding mes of general processor’s compilers. Designs and modifies by demands are needed.Mainly facing digital signal processing and media processing, MD160x and MD320x are two series of processors designed by Information and Communication Institute Zhejiang University. Targeting them, two compilers named MD16CC and MD32CC are implemented, which have their special features in register allocation and code generation.MD160x is a type of 16-bit DSP with pipeline. The instruction set and register file are heterogeneous, so that the general approaches like register allocation via graph coloring and code generation via pattern matching would lead bad performance of target code. So, an improved direct code generator called IDCG is designed and implemented in MD16CC.MD320x is a type of 32-bit media processor by combining RISC and DSP structures. It provides general purpose registers (GPR), and multiple addressing modes by using some GPRs as index registers and auxiliary registers. Further more, parallel instructions and SIMD instructions are provided to give the processor strong capability of media processing. But at the same time, these features decrease the amount of registers that can be used in register allocation, and so challenge the register allocation algorithm in MD32CC. The author designed and implemented an improved approach of register allocation via graph coloring, improved the performance of register allocation effectively.

Related dissertations

  1. Research and practice -based the GCC development of C compilers
    ZhuShaoBo ·Zhejiang University ·2003 ·Master's thesis
  2. Optimizing compiled code generation
    YangHongBo ·Institute of Computing Technology ·1997 ·Master's thesis
  3. Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
  4. Research on Key Techniques for DSP Compiler
    RenKun ·Zhejiang University ·2007 ·Doctoral dissertation
  5. Research on Some Key Compiler Techniques for Embedded Processors
  6. The Development and Research on SIMD Compilation Optimization of Compilers for Media Processor
    ZhouJianPeng ·Zhejiang University ·2007 ·Master's thesis
  7. Machine-dependent optimization
    ZhangRuiHao ·Institute of Computing Technology ·1998 ·Master's thesis
  8. Compiler-based Improvements to Register Allocation Strategies
  9. TTCN-3 compiler technology Research and Implementation
    QianXiangHong ·Southwest Jiaotong University ·2004 ·Master's thesis
  10. The Design and Implementation of a Complier for SCADA Based on C
  11. Backend Porting for CSKY Based on LLVM Compiler Infrastructure
    HuMin ·Zhejiang University ·2014 ·Master's thesis
  12. Research and Implementation of Model Machine Based on Combinational Logic Controller
    WangXiaoDong ·Hebei University of Technology ·2012 ·Master's thesis
  13. Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
    GongCai ·Anhui University ·2014 ·Master's thesis
  14. The Embedded SRAM Compiler Design and IP Verification
    LiuXiaoQing ·Anhui University ·2014 ·Master's thesis
  15. Research on Wireless Signal Processing Methods Based on General-Purpose Processor
    DongYanLei ·Beijing Jiaotong University ·2014 ·Master's thesis
  16. Optimization of Opus Decoders in Arm Cortex-A8
  17. The Studies of Classical Research and Practice in High School Language (Compulsory) of Person Teaching Edition
    DengZuo ·Central China Normal University ·2014 ·Master's thesis
  18. Electric Vehicle Charging and Discharging Machine Development Based on Embedded Code Generation System
    YaoWenDao ·Zhongyuan Institute of Technology ·2013 ·Master's thesis
  19. Simulation Software Development and Experimental Research of Active Vibration Control Based on LMSAdaptive Filter Algorithm
    QiHaiChao ·Harbin Engineering University ·2012 ·Master's thesis
  20. Study and practice of working hours system
    ChenYunFeng ·Inner Mongolia University ·2011 ·Master's thesis