﻿ 信号级实时仿真软件的效率优化方法 Efficiency Optimization Methods of the Signal Level Real-Time Simulation Software

Hans Journal of Data Mining
Vol.06 No.01(2016), Article ID:16758,6 pages
10.12677/HJDM.2016.61002

Efficiency Optimization Methods of the Signal Level Real-Time Simulation Software

Haijun Peng, Yugang Wang, Sichen Wang

Naval Aeronautical Engineering Academy Qingdao Branch, Qingdao Shandong

Received: Dec. 26th, 2015; accepted: Jan. 10th, 2016; published: Jan. 14th, 2016

ABSTRACT

Signal level simulation software to calculate needs great amount, under present conditions should try to optimize hardware program code, in order to obtain the best efficiency. Compile layer, determinants of program optimization algorithm gradually shift from layer to layer, grammar, and then from the programmer to the compiler. According to the radar signal level simulation engineering practice, presented at the algorithm level optimization mathematical model, the software model and loop optimization algorithm optimization methods presented in the syntax layer optimization pointers and embedded functions, etc., with strong problem targeted signal level simulation of other areas also have reference value.

Keywords:Software Engineering, Real-Time Simulation, Efficiency Optimization

1. 引言

2. 程序效率的含义

3. 提高程序效率的方法

3.1. 改进程序算法

3.1.1. 改进数学模型

(1)

(2)

3.1.2. 改进软件模型

Figure 1. Original simulation model of accumulation module

Figure 2. Improved simulation model of accumulation module

3.1.3. 改进循环算法

(1) 减少循环次数

(2) 减轻循环内部工作量

for(int i=0;i<10;i++)

nArray[i]=a+b;

temp=a+b;

for(int i=0;i<10;i++)

nArray[i]=temp;

3.2. 改进语句效率

3.2.1. 指针的运用

(1) 作为函数参数

(2) 作为数组名的指针

for(int i=0;i<10;i++)

nArray[i]=4*i;

for(int i=0, p=nArray; i<10;i++)

*p++=4*i;

3.2.2. 嵌入函数的使用

3.2.3. 其它提高程序效率的途径

4. 结束语

Efficiency Optimization Methods of the Signal Level Real-Time Simulation Software[J]. 数据挖掘, 2016, 06(01): 9-14. http://dx.doi.org/10.12677/HJDM.2016.61002

1. 1. 党婧. 软件工程的开发及应用分析[J]. 电子技术与软件工程, 2015(2): 66-67.

2. 2. 沈非一, 张延园, 林奕. 嵌入式实时系统中动态内存管理算法的设计与实现[J]. 计算机与现代化, 2015(7): 103- 107.

3. 3. 姜军, 王超, 尉红梅. 一种局部寄存器分配的优化策略[J]. 计算机应用与软件, 2013(12): 215-217.

4. 4. 何炎祥, 陈勇等. 绿色编译优化策略: 研究综述[J]. 计算机科学与探索, 2013, 7(8): 673-690.

5. 5. 翟京, 孙海波, 王鹏, 冷军强. 基于vissim仿真的交叉口左转车流交通组织[J]. 科学技术与工程, 2012, 12(7): 1687-1690.

6. 6. 祁宏生, 王殿海, 陈松. 基于综合饱和度的单点信号控制方法[J]. 哈尔滨工业大学学报, 2012, 44(2): 134-137.

7. 7. 包敬海, 韦美兰. 汇编和C混合编程的研究[J]. 电脑与电信, 2011(1): 30-31.