首页 | 本学科首页   官方微博 | 高级检索  
     检索      

C程序代码优化的探讨
引用本文:程永恒.C程序代码优化的探讨[J].武汉船舶职业技术学院学报,2008,7(2):39-41.
作者姓名:程永恒
作者单位:武汉软件工程职业学院,湖北武汉,430205
摘    要:不同的层面的程序代码,可以有不同的模块组合方式,把各个模块平均运行次数与模块平均运行时间的卷积做得尽量小是优化的目标,这在数学上是一项复杂的工作。本文通过减少上下文依赖关系,分析静态变量、数据的组织和消除除法等方面探讨了代码的优化。

关 键 词:C语言  代码优化
文章编号:1671-8100(2008)02-0039-03
修稿时间:2007年12月26

Optimization of C code
CHENG Yong-heng.Optimization of C code[J].Journal of Wuhan Institute of Shipbuilding Technology,2008,7(2):39-41.
Authors:CHENG Yong-heng
Institution:CHENG Yong-heng (Wuhan Software Vocational College, Wuhan 430205,China)
Abstract:We can have different combinations of modules for the code at different levels. To make the average numbers of running various modules and module average running time of convolution as small as possible is the goal of optimization. This is a complex mathematical work. This talks about the optimization of code from the aspects of reducing dependence context, static variables, data organization and elimination division.
Keywords:C program language  optimization of code
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号