Font Size: a A A

Design And Implementation Of A Porting Assistant System For Retargetable Compiler

Posted on:2007-09-26Degree:MasterType:Thesis
Country:ChinaCandidate:N CengFull Text:PDF
GTID:2178360212478274Subject:Computer applications
Abstract/Summary:PDF Full Text Request
With the rapid development of information technology, we are witnessing a time when embedded products are being widely used in more and more fields of the society. Embedded hardware and software development has become a hot research subject. Software systems, including operating systems and applications, are used in most modern embedded systems to support complex functions. Compiler plays a very important role in the process of software system generation.Embedded software development mostly requires a host machine, which is usually a generic computer, and a cross compiler, which runs on the host and generates code for the target system. Compilers that are retargetable and generate optimized code are required. GCC is an outstanding compiler that supports multi-language and multi-target. With its retargetable back end, GCC has been ported to more than 30 kinds of processors and over 100 different platforms. This profits from GCC's highly-synthetized abstract machine, flexible and powerful machine description, as well as its copyright under GPL license.Despite great advantages of retargetability above, porting GCC is still a complex work that costs lots of time on writing machine description files. The main part of machine description files is written in RTL representation, a language which is easy for computer to understand, while hard for people to read and write. These disadvantages make porting GCC a time consuming work.This thesis presents compiler back end theory and GCC back end porting techniques, especially internals of RTL representation and GCC machine description. In this work techniques have been developed for implementing a visual GCC porting assistant system. It reads target machine information and mapping between target machine and GCC abstract machine that users input through GUI. These informations are then analized and transformed into GCC machine description files automatically. The tool we implemented is a successful experiment on GCC automatical porting system, and it helps to increase efficiency of porting. This tool can also be an...
Keywords/Search Tags:GCC, porting, compiler backend
PDF Full Text Request
Related items