| 摘要: |
| 软件时间性能分析与评估技术是实时软件开发中的一个重要课题.提出了一种基于控制流程图的程序执行时间的可视化分析框架,研究了中间代码段与源程序中语句的对应关系的自动分析、源程序语句行的CPU周期数的提取和计算方法、基于控制流程图的点到点最大时间分析算法和CPU周期的绝对时间估计方法.设计并实现了一个实用的基于控制流程图的程序执行时间静态分析与评估工具.最后,对研究工作进行了相关比较和总结. |
| 关键词: 程序执行时间预估 最大执行时间 程序控制流程图 实时软件 软件测试 软件工程 |
| DOI: |
| 分类号: |
| 基金项目:(Supported by the National Natural Science Foundation of China under Grant No.60073005 (国家自然科学基金); the National High-Tech Research and Development Plan of China under Grant No.2001AA110244 (国家高技术研究发展计划) |
|
| An Approach to Static Prediction and Visual Analysis of Program Execution Time |
|
SUN Chang-Ai,JIN Mao-Zhong,LIU Chao,LIU Chao
|
| Abstract: |
| An important issue of real-time software development is to analyze and predict the execution time of real-time software. A kind of visual prediction and analysis framework of the execution time of real-time software based on program flowchart is proposed in the paper. The key issues of implementing the framework are discussed in detail, including creating the mapping between intermediate code segment and statement line of source code, retrieving the time of any given program segment from the perspective of CPU cycles of goal machine instruct, calculating CPU cycles of statement lines of source code, point-to-point WCETC (worst case execution time calculated) analysis algorithm based on program flowchart, and transforming CPU cycle into physical time. Based on the framework, a practical tool has been developed to predicate and analyze visually the program execution time. Finally, conclusion and comparison between the work in this paper and others is given. |
| Key words: program execution time evaluation worst case execution time program flowchart real-time software software testing software engineering |