作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (16): 83-85,9. doi: 10.3969/j.issn.1000-3428.2006.16.031

• 软件技术与数据库 • 上一篇    下一篇

一种新型计算机代数系统编译器的设计与实现

覃 安;符红光   

  1. 中国科学院成都计算机应用研究所,成都 610041
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-08-20 发布日期:2006-08-20

Design and Implementation of a Novel CAS Compiler

QIN An;FU Hongguang

  

  1. Chengdu Institute of Computer Applications, Chinese Academy of Sciences, Chengdu 610041
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-08-20 Published:2006-08-20

摘要: 计算机代数系统(Computer Algebra System,CAS)是集大整数运算和符号运算于一体的计算平台,这方面的代表软件有Maple和Mathematica。然而,在计算机代数系统的设计中,编译器的设计与实现始终是一个关键和难点。GiNaC是Linux平台上开放源码的符号计算包,该文以它为基础提出了一种新型CAS编译器的设计方法,并在Linux平台上实现。新的CAS编译器兼容Maple编程语言, 对比测试结果显示它的效率并不逊色于Maple。

关键词: 计算机代数系统, 虚拟机, 编译器

Abstract: A computer algebra system (CAS) is a software platform that facilitates the symbolic computation and the big number computation. The typical software includes Maple and Mathematica. However, in building CAS, one of difficult problems is the design and implementation of its compiler. GiNaC is a symbolic computation package running on the Linux platform. Based on the package, this paper presents a new design method to implement the CAS compiler, and implements a new CAS compiler on Linux platform. The novel CAS compiler is compatible with Maple’s program language. The testing results show its efficiency is not inferior to Maple.

Key words: Computer algebra system (CAS), Virtual machine(VM), Compiler

中图分类号: