期刊文献+

编译器前端自动构造的研究与实现 被引量:3

Research and Implementation of Auto-Constructed Front-End Compiler
下载PDF
导出
摘要 编译器是高级语言的工作基础,它本身是一种复杂的程序。文中研究并实现了编译器前端的自动构造技术,能大大提高编译类软件的开发效率。重点讨论了如何合理设置接口,以便综合运用词法、语法分析器的自动构造工具LEX和YACC。提出了预置三级错误陷阱来分别俘获源程序词法、语法、语义错误的思想,能减少错误级联,并能更准确地报告错误的性质。作者已应用该技术编写出一个面向C语言的并行语言编译器前端,验证了该技术是可行的和高效的。 A complier is the basis of an advanced language and a complicated program. This paper mainly discusses the technology on auto-construction of a front-end complier,which can greatly improve the developing efficiency of compiler software.How to set up the interface appropriately for using LEX and YACC is discussed as an emphasis. The idea is brought forward that the complier can capture the lexical, syntax and semantic errors from source codes by seting up three classes of error traps in advance.So it can reduce the ascending series errors,and more exactly report the sort of the errors. With this technology,have finished a front-end compiler of C -oriented parallel language, and this practice have proved the technology feasible and highly effective.
机构地区 西安理工大学
出处 《微机发展》 2004年第4期82-83,88,共3页 Microcomputer Development
基金 西安理工大学在职研究生科研基金资助项目(105-210288)
关键词 编译器前端 自动构造 编译程序 高级语言 中间代码 目标代码 compiler auto-construct LEX YACC error trap
  • 相关文献

参考文献3

二级参考文献9

同被引文献19

  • 1陈东,张承瑞,李剑峰.运动控制器控制语言及编译系统研究[J].机床电器,2005,32(4):33-36. 被引量:3
  • 2王双庆,邢建春,王平,方中华.基于IEC61131-3的控制器组态软件开发[J].微计算机信息,2007,23(05S):56-58. 被引量:3
  • 3[美]Kenneth C.Louden.编译原理及实践[M].机械工业出版社,2000
  • 4Levine J R,Mason T,Brown D,杨作梅,张旭东等译.lex与yace(第2版)[M].机械工业出版社,2003
  • 5John Levine. Linkers and Loaders [DB/OL]. http://www.iecc. com/linker
  • 6Maosco Ltd. Multos developers guide[DB/OL]. http://www.MULTOS. com, 2004
  • 7Alfred,Monica S.Lam,RaviSethi(美),赵建华,郑滔,戴新宇,译.编译原理[M].第2版.北京:机械工业出版社,2009.
  • 8John Levine著,陆军,译.flex与bison[M].济南:东南大学出版社,2011.
  • 9P Marwedel,R Leupers.Retargetable Compiler Technology for Em- bedded Systems:Tools and Applications[M].Kluwer Academic,2001.
  • 10马琼雄,吴向磊,李琳,张铁.基于IPC的开放式工业机器人控制系统研究[J].机电产品开发与创新,2008,21(1):15-17. 被引量:15

引证文献3

二级引证文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部