摘要
随着嵌入式处理器性能的不断提高,处理器性能已经不是影响弹载计算机系统整体性能的主要因素。系统升级越来越多地注重程序的执行效率、编译器优化能力、程序并行设计等方向。本文从一般性的程序运行切入,分析了影响程序执行效率的因素、编译器优化的局限性,从程序定义、减少函数调用、提高循环效率、减少不必要内存访问等角度介绍了一些提高程序执行效率的程序设计方法。
With the tremendous progress of MPU design and manufacture, the performance of a MPU is already not the main factor in a missile-borne computer system.Attentions are focused on program effi-ciency, capabilities of optimizing compilers and parallel programming.In this paper, from the angle of a program execution, the factors influencing program efficiency and limitations of optimizing compiler are discussed.On this basis, some program design methods improving program operation efficiency are intro-duced from program defining, reducing function call, improving circulation efficiency and reducing unnec-essary memory access.
出处
《航空兵器》
2014年第5期37-40,共4页
Aero Weaponry
关键词
弹载计算机
程序优化
编译器
代码移动
missile-borne computer
program optimization
compiler
code motion