计算机与现代化

• 算法设计与分析 • 上一篇    下一篇

主流代码生成方法的分析与比较

  

  1. (河海大学物联网工程学院,江苏常州213022)
  • 收稿日期:2015-06-08 出版日期:2015-11-12 发布日期:2015-11-16
  • 作者简介:张艳伟(1987-),女,山东青州人,河海大学物联网工程学院硕士研究生,研究方向:软件工程,信息化处理; 陈正鸣(1965-),男,浙江东阳人,教授,研究方向:数字化建模,三维打印; 吕嘉(1977),男,江苏常州人,讲师,研究方向:软件工程与程序方法学; 张霞(1990),女,安徽合肥人,硕士研究生,研究方向:计算机图形学,三维打印。
  • 基金资助:
    江苏省科技支撑计划项目(BE2014048)

Analysis and Comparison of Mainstream Code Generation Method

  1. (College of IOT Engineering, Hohai University, Changzhou 213022, China)
  • Received:2015-06-08 Online:2015-11-12 Published:2015-11-16

摘要: 代码生成技术是解决软件开发周期长、软件成本日益增长、代码的重复书写等问题现实可行的途径。首先,对代码生成的原理和特点进行介绍,总结和分析国内外提出的代码生成方法;其次,以一个游戏场景为例,使用3种主流的代码生成方法分别进行实现,分析这3种代码生成方法的优缺点;最后,对代码生成技术的发展趋势进行展望,为以后代码生成技术研究提供参考和借鉴。

关键词: 代码生成, 模型驱动, 模板引擎, 可扩展样式表语言变换, 可扩展标记语言

Abstract:  For the problems, such as the long cycle of software development, the gradual increasement of software cost and rewriting code, code generation technology is a feasible approach. This paper not only exposited the basic principle and characteristics of code generation, but also analyzed and summarized domestic and foreign code generation methods. Taking a game scene as an example, three mainstream methods were implemented respectively, their advantages and disadvantages were analyzed sequentially. The future trends of the code generation technology were prospected at the end of the paper. All of these would provide some reference for the future work.

Key words: code generation, model driven architecture, template engine, extensible stylesheet language transformation, extensible markup language

中图分类号: