期刊文献+

GiNaC编译器设计中双向循环的归一化处理

Unified disposal for two-way loop in design of GiNaC compiler
下载PDF
导出
摘要 文中提出一种判定归一化的处理方法,这种方法把编译器在语法分析过程中遇到的递增和递减循环统一成一种模式处理,而循环的递增和递减交由目标生成模块来判断。通过这种方法,使得编译过程中的各模块的功能能进一步趋于均衡和简化,同时也为代码优化提供更多的优化条件。G iNaC是基于Linux的开放源码符号计算平台,这种方法应用在G iNaC编译器的设计中取得了很好的效果。 A new method to dispose the two-way loop in syntax analysis was introduced. In this method, both increased and decreased loops were treated as one pattern. The recognition and distinction between them would be dealt with until the object codes was generated. Using this method, the weight of each part in compiler will be more equitable. At the same time, this method provides more information for code optimizing. GiNaC is an open-source symbolic computing package based on Linux, and the method implemented in GiNaC compiler achieves a satisfactory result.
作者 覃安 符红光
出处 《计算机应用》 CSCD 北大核心 2005年第9期2041-2043,2046,共4页 journal of Computer Applications
基金 国家973规划资助项目(2004CB318003)
关键词 归一化处理 循环语句 GiNaC 编译 unified disposal loop statement GiNaC compile
  • 相关文献

参考文献7

  • 1BROKKEN FB. C + + Annotations Version 6.1.3-pre [ EB/OL].ftp:∥ftp.rug. nl/contrib/frank/ documents/ cplusplus. Annotations, 2004.
  • 2RITCHIE DM. C Reference Manual [EB/OL]. http:∥cm. belllabs. com/cm/cs/who/dmr/cman. ps, 1979.
  • 3ECKEL B. Thinking in java ( Second Edition) [M]. Prentice Hall.2002.122 - 124.
  • 4POLETTO M, HSIEH WC, ENGLER DR, et al. C and tcc: a language and compiler for dynamic code generation[J]. ACM Transactions on Programming Languages and Systems, 1999, 21 (2): 324 -369.
  • 5AHO AV, SETHI T, ULLMAN JD. Compilers: Principle, Techniques, and Tools[M]. Addison-wesley, 1986.326-329.
  • 6AHO AV, SETHI T, ULLMAN JD. Compilers: Principle, Techniques, and Tools[M]. Addison-wesley, 1986.381-405.
  • 7BAUER C, FRINK A, KRECKEL R. Introduction to the GiNaC framework for symbolic computation within the C + + programming language[J]. Journal of Symbolic Computation, 2002, 33 ( 1 ): 1 -12.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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