摘要
针对现有的Forth自生成器都与目标环境密切关联、缺少抽象层次、难以在异构新平台上有效生成新的Forth系统等问题,通过采用抽象code算法库、描述异构目标,并重构Forth虚拟机的方法,构建完成了一个面向嵌入式环境、具有多目标特性的Forth自生成器。该生成器简化了传统编译器复杂的前端和后端设计,依托Forth特有的解释执行状态和字典结构,可快速生成新的目标系统。实验结果表明,该自生成器代码生成质量和效率都较高,尤其适合资源有限的嵌入式环境。
Since the available Forth self-generating systems lacked common features for multi-operating environments, they were totally dependent on specific target environments and couldn ' t efficiently form new Forth system in a new operating envi- ronment. Therefore, it was important to design a novel Forth self-generating system that could be easily applied to multiple ob- ject-oriented target environments. This study proposed a new model of multi-objective self-generating system with common fea- tures for embedding-oriented multi-environments by using common code algorithm library, describing heterogeneous target, and refactoring Forth virtual machine. The model solved the problem of the traditional compiler with complex front-end and back- end design. Based on Forth has unique implementation of interpretation and the dictionary structure, the multi-objective Forth self-generator quickly generated a new target system. The results revealed that this self-generator sufficiently significantly im- proves quality and efficiency in code generation, especially suitable for embedded environments with limited resources.
出处
《计算机应用研究》
CSCD
北大核心
2014年第4期1109-1114,共6页
Application Research of Computers
基金
国家自然科学基金地区科学基金项目(61063010)
关键词
多目标
Forth自生成器
嵌入式环境
multi-objective
Forth self-generating system
embedded environment