Font Size: a A A

Research And Development Of The Cross Compiler Based On GCC For Embedded System

Posted on:2005-09-29Degree:MasterType:Thesis
Country:ChinaCandidate:G FengFull Text:PDF
GTID:2168360122470014Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the rapid development of computer technology and Internet technology, the development of new embedded system is aimed to Infermation Appliance and combination of computer, communication and consumer. It' widely applied in fileds of industrial control, communication, apparatus, and appliance consumption and so on. For the rapid development of the embedded, handheld and wireless devices, the embedded software is becoming a hot spot of the information industry.Without bootstrapping on themself, embedded systems always request a cross development tool chain. And for the special feature including compact code and fast run speed, the tool chain should be capable of optimization. It seems to be a popular solution for embedded equipements to compile software on another system, which use Linux as an operating system with a cross-compiler built on. And GCC, the most portable and optimized one of current open source compilers, which had been developed many years, can supports nearly all famous processors and become an appropriate cross-compiler for the development of embedded software.With the background of developing a renovated cross-compiler named ZLTCC supporting processor MIPS-X, this thesis analyzes the architecture of GCC, deeply studies the back-end, optimization technologies, the intermediate representation and machine description which the portability of GCC are based on, and realizes porting of GCC cross-compiler system to a target processor MIPS-X. By making use of instruction split, delay-slot scheduling, register allocation and peephole optimization in porting, the code ZLTCC outputs get much optimized.At First, this thesis describes the special features embedded system" constrains on the cross-compiler system and code optimizaion. Then it introduces the developing background of the cross-compiler system, ZLTCC. In chapter 2. it introduces the automatically generation of compiler and optimization technologies. In chapter 3, it analyses GCC on designatioin, architecture, back-end generators, intermediate language, machine description, back-end generation and optimization technologies. In chapter 4, it illustrates the architecture and ABI of MIPS-X and how to porting GCC for MIPS-X. In chapter 5, some difficult problems and optimization issues been discussed in detail. It then presents the successful porting result. At last, it gives some conclusions and foresight.
Keywords/Search Tags:embedded system, cross compiler, back-end automatical generation, code optimization, intermediate language, machine description, GCC, MIPS-X, RTL
PDF Full Text Request
Related items