计算机应用 ›› 2005, Vol. 25 ›› Issue (02): 367-369.DOI: 10.3724/SP.J.1087.2005.0367

• 软件技术 • 上一篇    下一篇

一种基于ADL的编译器自动生成方法研究

任小西,李仁发,张克环   

  1. 湖南大学计算机与通信学院
  • 出版日期:2005-02-01 发布日期:2005-02-01
  • 基金资助:

    湖南省科技厅制造业信息化示范工程项目 (HNMIE A 026)

Study on ADL-Based automatic generation of compiler in embedded system

REN Xiao-xi, LI Ren-fa, ZHANG Ke-huan   

  1. ollege of Computer and Communication, Hunan University
  • Online:2005-02-01 Published:2005-02-01

摘要: 编译器是嵌入式系统软件中的重要组成部分,它对嵌入式系统的软件开发有重要影响。本文在将体系结构描述语言(ADL)与传统可移植编译器相结合,自动生成嵌入式系统编译器的思想基础上,对自动生成工具genmd的结构进行了分析。重点对其指令识别和机器描述生成部分进行了抽象和建模。同时,针对genmd不支持分支跳转类指令的问题提出了改进方案。

关键词: 编译器, 体系结构描述语言, 自动生成, genmd, 嵌入式系统

Abstract: Compiler is an important part of embedded system software, it has great impact on software development of embedded system. This paper analyzed the structure of an compiler automatic generation tool genmd, based on the idea of combining ADL with retargetable compilers, and put emphasis on abstracting and modeling of instruction recognition and machine description generation. Meanwhile, a method was provided and implemented to solve the limitation of genmd that was unable to support instructions of branch and jump.

Key words: compiler, ADL(Architecture Description Language), automatic generation, genmd, embedded system

中图分类号: