Keil C51环境下64位浮点库的设计  被引量:1

Design of 64bits floating-point library in Keil C51

在线阅读下载全文

作  者:李文昭[1] 王虹[2] 李庆[1] 

机构地区:[1]河北大学静电研究所,河北保定071002 [2]河北大学电子信息工程学院,河北保定071002

出  处:《河北大学学报(自然科学版)》2014年第1期78-82,共5页Journal of Hebei University(Natural Science Edition)

基  金:国家自然科学基金资助项目(51077035);河北省自然科学基金资助项目(A2010000182);河北省科技支撑项目(09276712D);河北大学博士基金资助项目(2009-178)

摘  要:为解决Keil C51环境下无法进行64位双精度计算的问题,采用分部存储和分部计算的方法,设计了在Keil C51环境下符合IEEE-754标准的64位浮点库.程序用C51语言实现,具有很强的可移植性.在浮点库设计完成后编写了测试代码进行耗时测试,测试中加法运算耗时低于5ms,乘除法运算耗时低于40ms,结果表明,可以满足绝大多数实时性要求不高的工程需要,降低了工程的设计门槛和开发成本,为8051核系列单片机提供了更广泛的应用空间.The Keil C51 can't provide the 64bits floating-point calculation. In order to solve this prob- lem, using the method of branch store and division calculation, a 64bits floating-point library is designed which is conform to the IEEE-754 standard. The library is programmed by C51 language, which has very strong portability. After the programming of the floating-point library, a time-consuming test had execu- ted. In the test, the addition operation time-consuming is less than 5 milliseconds, multiplication operation and division operation time-consuming is less than 40 milliseconds. The results show that the floating- point library can be used in a vast majority of engineering development while the real-time requirement is not very strong. The library can reduce the design threshold and the development cost in the engineering development, and it provides a broader space for the application of the MCUs based on 8051 kernel.

关 键 词:C51 算法 双精度计算 数值计算 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象