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
- register allocation
- Media Processor
- Compiler
- Code Generation
- Target machine
- General-Purpose Processor
- Auxiliary register
- research and practice
- High-level language
- Instruction Set
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
- Research and practice -based the GCC development of C compilers
- Optimizing compiled code generation
- Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
- Research on Key Techniques for DSP Compiler
- Research on Some Key Compiler Techniques for Embedded Processors
- The Development and Research on SIMD Compilation Optimization of Compilers for Media Processor
- Machine-dependent optimization
- Compiler-based Improvements to Register Allocation Strategies
- TTCN-3 compiler technology Research and Implementation
- The Design and Implementation of a Complier for SCADA Based on C
- Backend Porting for CSKY Based on LLVM Compiler Infrastructure
- Research and Implementation of Model Machine Based on Combinational Logic Controller
- Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
- The Embedded SRAM Compiler Design and IP Verification
- Research on Wireless Signal Processing Methods Based on General-Purpose Processor
- Optimization of Opus Decoders in Arm Cortex-A8
- The Studies of Classical Research and Practice in High School Language (Compulsory) of Person Teaching Edition
- Electric Vehicle Charging and Discharging Machine Development Based on Embedded Code Generation System
- Simulation Software Development and Experimental Research of Active Vibration Control Based on LMSAdaptive Filter Algorithm
- Study and practice of working hours system