摘要
代码生成技术是解决软件开发周期长、软件成本日益增长、代码的重复书写等问题现实可行的途径。首先,对代码生成的原理和特点进行介绍,总结和分析国内外提出的代码生成方法;其次,以一个游戏场景为例,使用3种主流的代码生成方法分别进行实现,分析这3种代码生成方法的优缺点;最后,对代码生成技术的发展趋势进行展望,为以后代码生成技术研究提供参考和借鉴。
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.
出处
《计算机与现代化》
2015年第11期103-108,共6页
Computer and Modernization
基金
江苏省科技支撑计划项目(BE2014048)
关键词
代码生成
模型驱动
模板引擎
可扩展样式表语言变换
可扩展标记语言
code generation
model driven architecture
template engine
extensible stylesheet language transformation
extensible markup language