Share Email Print

Proceedings Paper

Efficient RTL-based code generation for specified DSP C-compiler
Author(s): Qiaohai Pan; Peng Liu; Ce Shi; Qingdong Yao; Shaobo Zhu; Li Yan; Ying Zhou; Weibing Huang
Format Member Price Non-Member Price
PDF $14.40 $18.00
cover GOOD NEWS! Your organization subscribes to the SPIE Digital Library. You may be able to download this paper for free. Check Access

Paper Abstract

A C-compiler is a basic tool for most embedded systems programmers. It is the tool by which the ideas and algorithms in your application (expressed as C source code) are transformed into machine code executable by the target processor. Our research was to develop an optimizing C-compiler for a specified 16-bit DSP. As one of the most important part in the C-compiler, Code Generation's efficiency and performance directly affect to the resultant target assembly code. Thus, in order to improve the performance of the C-compiler, we constructed an efficient code generation based on RTL, an intermediate language used in GNU CC. The code generation accepts RTL as main input, takes good advantage of features specific to RTL and specified DSP's architecture, and generates compact assembly code of the specified DSP. In this paper, firstly, the features of RTL will be briefly introduced. Then, the basic principle of constructing the code generation will be presented in detail. According to the basic principle, this paper will discuss the architecture of the code generation, including: syntax tree construction / reconstruction, basic RTL instruction extraction, behavior description at RTL level, and instruction description at assembly level. The optimization strategies used in the code generation for generating compact assembly code will also be given in this paper. Finally, we will achieve the conclusion that the C-compiler using this special code generation achieved high efficiency we expected.

Paper Details

Date Published: 20 December 2001
PDF: 9 pages
Proc. SPIE 4674, Media Processors 2002, (20 December 2001); doi: 10.1117/12.451069
Show Author Affiliations
Qiaohai Pan, Zhejiang Univ. (China)
Peng Liu, Zhejiang Univ. (China)
Ce Shi, Zhejiang Univ. (China)
Qingdong Yao, Zhejiang Univ. (China)
Shaobo Zhu, Zhejiang Univ. (China)
Li Yan, Zhejiang Univ. (China)
Ying Zhou, Zhejiang Univ. (China)
Weibing Huang, Zhejiang Univ. (China)

Published in SPIE Proceedings Vol. 4674:
Media Processors 2002
Sethuraman Panchanathan; V. Michael Bove; Subramania I. Sudharsanan, Editor(s)

© SPIE. Terms of Use
Back to Top