Font Size: a A A

Research And Implementation Of Cross-compiler System

Posted on:2004-03-13Degree:MasterType:Thesis
Country:ChinaCandidate:F Q SuFull Text:PDF
GTID:2168360092970347Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid development of information technology including computer technology and communication technology,and with the Internet widely used,the combination of computer,communication and consumer is inevitable. For the rapid development of the embedded,handheld and wireless devices,the embedded software is becoming a hot spot of the information industry.Since the resource limitation of embedded equipements,developers usually can't compile software on them. 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,one of the open source compiler,which had been developed many years,can support nearly all famous processor and become an appropriate cross-compiler for the development of embedded software.However,GCC can't support all embedded equipements,there are still many platforms need cross-compilers. With the background of developing a renovated cross-compiler named ZLTCG supporting processor MIPSX,this thesis analyzes the architecture of GCC cross-compiler system,deeply studies 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 MIPSX. This thesis makes use of instruction split,delay-slot scheduling and peephole optimization in porting. The new cross-compiler system,ZLTCG,not only supports the new target but also absorbs the old system's advantages on code optimization and portability.At First,this thesis describes the developing history and theories of compiler,especially on its architecture,bootstrapping and porting. Then it introduces the developing background and architecture of the cross-compiler system,ZLTCG. In chapter 2,it analyses GCC in details,especially on its designatioin,architecture,intermediate language and machine description files. In chapter 3,it explains the implementation of ZLTCG,describes its ways and means,the preparation and the porting,resolves some difficult problems and explaines some technologies in detail,offers the test result. In the preparation part,it defines the architecture of MIPSX and its application binary interface. In the porting part,it describe the porting of compiler's backend. Last,it gives some conclusions and foresight.
Keywords/Search Tags:cross-compiler system, cross-compiler, cross-assembler, cross-linker, intermediate language, GCC, GAS, OLD, MIPSX, RTL
PDF Full Text Request
Related items