摘要
乘幂运算是最基本的数学表达式之一,并且被大多数编译器支持,在高性能计算和密码算法中应用十分频繁。为了实现和优化乘幂运算人们提出了许多算法,比如加法链算法。该文描述了在编译器前端一个具体的新的算法,它实现了乘幂运算并且进行了优化,优化方法结合了静态最优加法链算法和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