Font Size: a A A

Design And Implementation Of ASIP Special C Language Compiler

Posted on:2015-06-24Degree:MasterType:Thesis
Country:ChinaCandidate:M LiFull Text:PDF
GTID:2308330464466590Subject:Electronics and Communications Engineering
Abstract/Summary:PDF Full Text Request
As a new processor design method, ASIP(Application Specific Instruction Processor)not only has the programmable features of general purpose processor, but also has the advantages of high-performance ASIC. ASIP has been widely used in modern digital signal processing system design in recent years. ASIP design has become a key task of embedded projects, and ASIP development technology has become the industry’s hot topic. ASIP design procedure includes the design of both hardware circuit and software which includes the assembler and compiler design. In this paper, we develop a C language compiler based on the ASIP architecture and its assembler which developed by our research team. The development of this ASIP C language compiler makes ASIP application programs could be programmed by C language, changes the inefficient,inadequate and difficult checking status of assembly language programming, so improves the accuracy and efficiency of the project development. In this paper, some research on the structure of compiler has been done, and the implementation process of ASIP C language compiler is described. The main work of this paper is as follows.1. theoretical aspects of the compiler were studied, and the compiler workflow and the data structure in compiling was learned.The construction method in various stage of compiling was detailed researched. Based on this study, GCC, a compiler now widely used in the UNIX platform was researched carefully. It has some outstanding characteristics of its front-end can support multi-language and its back-end can support multi-objective. All of these researches give such a strong theoretical foundation for ASIP C compiler design.2. the design of the ASIP C compiler was introduced. Based on the theoretical research above, and combine with ASIP specific hardware architecture, instruction set and its assembler, the C complier could be designed. Specifically, the entire work includes program selection, detailed design, test and validation. Firstly, a program which has higher accuracy and shorter development cycle was selected, and that program is by transplanting a mature portable compiler to achieve ASIP compiler. Secondly, according to the design details, the compiler was designed to translate C language program to assembler code. Finally, the compiler was embeded in Dev-C++ developmentenvironment and an interface-oriented environment could be provided.3. some functional and performance test for ASIP compiler was performed. The functional test was performed in two ways, on the one hand according to the classification of ASIP instruction set, some test for the basic function of the compiler was done, on the other hand a typical C program which could achieve a full functionality was written to do a further test. The discussion on performance of the ASIP compiler focused on the GCC code optimization. By means of GCC optimization,assembly code which produced by ASIP compiler was superior in performance,compared to the hand-written assembly code.
Keywords/Search Tags:ASIP, GCC, compiler
PDF Full Text Request
Related items