节点文献

C语言程序中循环结构的性能优化

Performance Optimization of Cyclic Structure in C Language Programs

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 王舒心贺细平

【Author】 WANG Shu-xin;HE Xi-ping;Information Science and Technology College of Hunan Agricultural University;

【通讯作者】 贺细平;

【机构】 湖南农业大学信息科学技术学院

【摘要】 循环结构是C语言程序的基本结构之一。程序运行时,在循环中的时间开销往往占据了总时间开销的大部分。利用C语言程序编译后的存储特性和处理器的局部性原理,适当地调整程序中循环结构的代码,充分释放处理器的潜力,可以大大提高程序的执行效率。文章的对比实验验证以上结论。

【Abstract】 Loop structure is one of the basic structures of C language programs. When the program is running, the time overhead in the loop tends to account for most of the total time overhead. Take use of the storage characteristics of the C language program and the locality principle of the processor, proper adjustment on the code of the loop structure in the program will completely unlock the potential of the processor, therefore, greatly improve the efficiency of program execution. The comparative experiment in this paper verifies the above conclusions.

【关键词】 C语言循环结构优化缓存并行
【Key words】 C languageoptimization of loop structurecacheparallel
  • 【文献出处】 电脑与信息技术 ,Computer and Information Technology , 编辑部邮箱 ,2019年05期
  • 【分类号】TP312.1
  • 【被引频次】3
  • 【下载频次】184
节点文献中: 

本文链接的文献网络图示:

本文的引文网络