Research on LCC-based C Compiler for Embedded Processor[J]. 2015, 32(1): 80-84.DOI:
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.