20 December 2001 Efficient RTL-based code generation for specified DSP C-compiler
Author Affiliations +
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.
© (2001) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Qiaohai Pan, Qiaohai Pan, Peng Liu, Peng Liu, Ce Shi, Ce Shi, Qingdong Yao, Qingdong Yao, Shaobo Zhu, Shaobo Zhu, Li Yan, Li Yan, Ying Zhou, Ying Zhou, Weibing Huang, Weibing Huang, } "Efficient RTL-based code generation for specified DSP C-compiler", Proc. SPIE 4674, Media Processors 2002, (20 December 2001); doi: 10.1117/12.451069; https://doi.org/10.1117/12.451069
PROCEEDINGS
9 PAGES


SHARE
Back to Top