孙桂玲, 范孟秋, 杨长锐, 毕晓朕. 基于LCC的嵌入式处理器C语言编译器研究[J]. 微电子学与计算机, 2015, 32(1): 80-84.
引用本文: 孙桂玲, 范孟秋, 杨长锐, 毕晓朕. 基于LCC的嵌入式处理器C语言编译器研究[J]. 微电子学与计算机, 2015, 32(1): 80-84.
SUN Gui-ling, FAN Meng-qiu, YANG Chang-rui, BI Xiao-zhen. Research on LCC-based C Compiler for Embedded Processor[J]. Microelectronics & Computer, 2015, 32(1): 80-84.
Citation: SUN Gui-ling, FAN Meng-qiu, YANG Chang-rui, BI Xiao-zhen. Research on LCC-based C Compiler for Embedded Processor[J]. Microelectronics & Computer, 2015, 32(1): 80-84.

基于LCC的嵌入式处理器C语言编译器研究

Research on LCC-based C Compiler for Embedded Processor

  • 摘要: 介绍了一种为TRIC快速开发高级语言编译工具的方法.LCC是一个小型的可变目标C语言编译器,通过扩展LCC后端使其支持硬件中断等嵌入式C语言语法特性,进而实现TRIC的C语言编译器.经测试验证,此方法可大大降低移植LCC的难度和出错的概率,且能快速开发出目标处理器的编译工具.

     

    Abstract: This work introduces a quick method to develop high-level language compiler tools for TRIC.LCC is a small retargetable C compiler.This work makes LCC support embedded C language syntax features such as hardware interrupt by extending the back-end of LCC.Then,implementation of C compiler for TRIC is completed.Test result indicates this method,which is significantly easier and errorless for transplanting LCC,achieves rapid development of compiler tools for target processor.

     

/

返回文章
返回