Font Size: a A A

Analyze And Transplant Of GCC Compiler Based On The Platform Of SPARC

Posted on:2013-04-11Degree:MasterType:Thesis
Country:ChinaCandidate:D L DengFull Text:PDF
GTID:2248330374464771Subject:Computer system architecture
Abstract/Summary:PDF Full Text Request
As one of the basic computer software, compiler is very important. Nowadays there are lots of compilers what have relatively mature development. Compilers can be divided into two kinds:local compilers and cross compilers, in accordance with the target platform where generates the codes. Usually cross compilers is in need to develop software in embedded system because it doesn’t have a software development environment.GCC is a powerful and well-performed cross compiler from GNU which is one of the most important compiler tools in LINUX. The greatest features of GCC are software reusability and scalability. People can download the open source codes of GCC from the official website of GNU and use them in work or for research. GCC compiler supports lots of languages in front and lots of platforms in back. The key of GCC supporting lots of platforms is that it divides the description and algorithm of the platform feature information which is implemented in the algorithms. In this way, it shares the algorithm, and deals with the platform feature information. This topic analyses the structure and characteristics of GCC compiler, and induces the key multi-platform technology of GCC. In addition, this topic analyses the stack protection technology in the compiler.One of the supported platforms in back of GCC is SPARC, scalable processor architecture. SPARC is a RISC micro-cpu which is already implemented in kinds of chips and systems of science, construction, design, real-time and commercial. This article describes the system characteristics, register, addressing mode and instruction set of SPARC V8. Scalability is the greatest characteristic of SPARC. You can implement the coprocessor freely in SPARC where provides with the coprocessor instruction set. This topic constructs cross compiler chain (sparc-elf) based on SPARC structure in LINUX, and adds the custom coprocessor instructions in the compiler.
Keywords/Search Tags:GCC, SPARC, cross-compiler, stack protection, adding instructions
PDF Full Text Request
Related items