基于Clang的AST提取结构体数据库插件的实现.docVIP

  • 48
  • 0
  • 约5.8千字
  • 约 9页
  • 2017-10-18 发布于北京
  • 举报

基于Clang的AST提取结构体数据库插件的实现.doc

基于Clang的AST提取结构体数据库插件的实现   摘要:在嵌入式系统调试环境下,需将大量的结构体变量输出到诊断软件,进行解析与呈现,而结构体数量庞大,且容易变化。在软件快速迭代开发阶段,迫切需要使结构体解析过程自动化。最关键的一步,是实现结构体定义数据库的提取。此文主要研究基于Clang编译器,实现从前端编译结构体定义文件生成的抽象语法树中提取结构体定义信息。实验结果表明,该方法能准确的实现从结构体定义文件提取结构体定义XML数据库。   关键词: Clang编译器;抽象语法树;信息提取;结构体定义   中图分类号:TP393 文献标识码:A 文章编号:1009-3044(2017)06-0019-03   Abstract: In the debugging environment of the embedded system, the structure variables which are very large in quantity and mutable, should be output to the diagnostic software to be parsed and presented. In the rapidly iteration development phase, it is an urgent need to make the stru

文档评论(0)

1亿VIP精品文档

相关文档