Research and Development of Compiler Based on GCC
暂无分享,去创建一个
Open-source GCC compiler has the advantage of high-level optimization ability and portability. Aiming at specific target platform, this paper carried out practical research and development of compiler based on GCC. Through analysis and research, this paper presented a thought: taking the analysis of RTL code as main direction to study RTL generation mechanisms and RTL code matching principles, which helps to understand the overall architecture of GCC and retargeting mechanisms of GCC. Through GCC porting practice, methods to modify the machine description for some typical instructions were presented. In the end, the generated compiler was tested by a basic C program to verify its correctness. This paper has guiding significance and reference value for understanding of compilers, GCC research, porting and optimization.
[1] Richard M. Stallman,et al. GNU Compiler Collection Internals , 2011 .
[2] Richard M. Stallman,et al. Using and Porting the GNU Compiler Collection , 2000 .
[3] Wu Ke. Study and Implementation of Porting GCC to Nios , 2007 .