期刊文献+

编译器前端乘幂运算的实现与优化

The Implementation and Optimization of Power Exponentiation in the Front End of Compiler
下载PDF
导出
摘要 乘幂运算是最基本的数学表达式之一,并且被大多数编译器支持,在高性能计算和密码算法中应用十分频繁。为了实现和优化乘幂运算人们提出了许多算法,比如加法链算法。该文描述了在编译器前端一个具体的新的算法,它实现了乘幂运算并且进行了优化,优化方法结合了静态最优加法链算法和Window算法。这个新的算法已经应用于GNUFortran95编译器(Gfortran),并取得良好效果。 The power operator is one of the most important math expressions and is supported by most compilers.It is widely and frequently used in HPC and modern cryptography fields.Many algorithms are developed to implement and optimize the operator.This paper presents a new concrete process combined static optimal addition chain table method and Window method.The new algorithm introduced in the paper has been applied in the GNU Fortran 95 Compiler Project(Gfortran) and fully tested.
作者 王锋 杨灿群
出处 《计算机工程与应用》 CSCD 北大核心 2004年第36期47-49,80,共4页 Computer Engineering and Applications
基金 国家863高技术研究发展计划软件重大专项资助:高性能微处理器优化编译器(编号:2002AA1Z2105) 服务器操作系统内核(编号:2002AA1Z2101)
关键词 乘幂运算 加法链 Window算法 编译器优化 前端 power exponentiation,addition chain,Window method,compiler optimization,front end
  • 相关文献

参考文献7

  • 1陈火旺等.程序设计语言编译原理[M].北京:国防工业出版社,1999:17~19
  • 2http://gcc .gnu.org/fortran
  • 3http://cf95.cosoft.org.cn
  • 4Donald E Knuth.section 4.6.3 ,Evaluation of Powers.Seminumerical Algorithms, Vol 2 ,The Art of Computer Programming[M].3rd Edition,Addison Wesley, 1998
  • 5Noboru Kunihiro. Study on fast algorithms for exponentiation[D].M E Thesis. Dept of Math Eng and Inform Physics,Univ of Tokyo, 1996
  • 6Noboru Kunihiro,Hirosuke Yamamoto. IEICE TRANS.Fundamentals,2000;E83-A(1 )
  • 7Richard Stallman. Using and Porting GNU Compiler Collection[M].Published by the Free Software Foundation,USA,2002-12

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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