Font Size: a A A

C Compiler Based On Gcc Development Research And Practice

Posted on:2004-07-10Degree:MasterType:Thesis
Country:ChinaCandidate:S B ZhuFull Text:PDF
GTID:2208360092470590Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
Compilation system is a necessary part in any computer system,However,compilation system costs a lot of manpower and material resources,and its development period is too long because of its complicated techniques and high difficulty. In the past,compilation system was developed for a special kind of program language and a certain target machine. As the computer progresses fast,this kind of traditional method could hardly meet the demands. On the later period of 80's,many software companies and variety of processors appeared. It became more and more important to develop a compilation system supporting multi target machines. The compilation system supporting both multi languages and multi target machines is more competitive.The GNU Compiler Collection (GCC) is the most important piece of open source software in the world. It has been ported to many platforms. A platform is a combination of a specific computer chip and the operating system running on it. GCC compiles several languages including C,C++ Objective-C,FORTRAN and ADA,but there is a fundamental relationship among them all. The GCC compiler scales very well-from simple batch utility programs to multimillion-line systems. It is the clear syntax tree front end,the highly recapitulative intermediate language and the concise machine description back end that help GCC port to kinds of platforms.Currently,the hardware/software codesign of a 32bit mulitmedia DSP named MD-32 is under way in the Institute of Information & Communication Engineering of Zhejiang University. Because GCC has so many advantages mentioned above,we choose it to develop a new compiler for the target machine. In this paper,we build a RISC machine model with the name subDLX and port GCC to it by modifying the machine description file. This success will be the base on which we can port GCC to MD-32 soon. From practice we discover that GCC seems huge and complex but it has clear inner structures and mature techniques. It can be applied to either new machine compiler development or high performance compiler research.In another way,we develop a compiler in virtue of GCC's intermediate language,RTL(Register Transfer Language),but we must rewrite the program of code generation and code optimization. We get benefits of easier realization and shorter development period and we can produce a more effective compiler in theory.
Keywords/Search Tags:Development
PDF Full Text Request
Related items