Font Size: a A A

Porting Compiler Of Arca3 Based On Gcc

Posted on:2011-07-07Degree:MasterType:Thesis
Country:ChinaCandidate:Z T MengFull Text:PDF
GTID:2198330338989516Subject:Microelectronics and Solid State Electronics
Abstract/Summary:PDF Full Text Request
When we give the software and hardware development platform of micro-processer to the user, we must develop the complier tool chains of the micro-processor. Compiler theory is complex, the period of development is long, So it costs too much to design a new complier from scratch.It does not satisfy the market requirement, which changes quickly for embedded system. As a result, we usually take mature, retargetable compiler framework; port it for the target processor, building a compiler which is required. GCC is widely used in embedded system. Its source code is open and its framework is clear. It supports plenty of platforms, the retargetable character is better, which is the first chosen compiler for embedded system development.This paper is based on the open-source GCC compiler infrastructure developed by GNU and ARCA3 micro-processor with independent intellectual property rights of China, take use of retargetable character of GCC, explore the porting theory and method, and build a compiler of the ARCA3 micro-processor. The entire porting process can be divided into three stages: GCC compiler system framework analysis, ARCA3 architecture analysis, GCC back-end porting and system testing. First, we analyze the GCC compiler framework as a whole, and then introduce different components of GCC, especially the backend porting mechanism and the contents need to be modified. Secondly, we introduce the ARCA3 architecture from the point of view of compiler porting, define a set of application binary interface for the compiler, and summarize the information of ARCA3 architecture for the back-end porting. Then, combined with GCC backend porting mechanism and ARCA3 architecture, pick up 35 instructions from the instruction set, which is maturity, gradually complete the porting in level based on the function of instructions picked up. Finally, complete the system testing and validating, realized the compiler of ARCA3 based on GCC basically. The result of porting is correct, realizes the goal that is expected.The method and result are also value for compiler porting of other architechture.
Keywords/Search Tags:complier porting, GCC, ARCA3
PDF Full Text Request
Related items