计算机工程与应用 ›› 2010, Vol. 46 ›› Issue (21): 69-71.DOI: 10.3778/j.issn.1002-8331.2010.21.019

• 研发、设计、测试 • 上一篇    下一篇

一种快速程序最坏执行时间分析方法研究

吴国伟,姚 琳,岳 峰   

  1. 大连理工大学 软件学院,辽宁 大连 116023

  • 收稿日期:2009-06-18 修回日期:2009-09-16 出版日期:2010-07-21 发布日期:2010-07-21
  • 通讯作者: 吴国伟

Study on fast program worst-case execution time estimation

WU Guo-wei,YAO Lin,YUE Feng   

  1. Software College,Dalian University of Technology,Dalian,Liaoning 116023,China

  • Received:2009-06-18 Revised:2009-09-16 Online:2010-07-21 Published:2010-07-21
  • Contact: WU Guo-wei,YAO Lin,YUE Feng

摘要: 给出一种带有路径冲突检测的程序最坏情况执行时间估计方法,这种方法首先检测程序中存在的分支约束,然后将程序中存在的分支约束信息转化为程序流程控制图(CFG图)中结点之间的语义冲突,并按照结点对的形式保存在相应的冲突数组里,在接下来的WCET计算阶段通过边搜索程序执行路径边检测冲突数组里保存的已有的冲突关系以便在搜索路径的同时排除非可行执行路径,最终在可行执行路径集中选择具有最大执行时间的执行路径。与以往的方法相比,在保持估计精度的前提下,本文的方法避免了穷举所有执行路径带来的复杂度,提高了搜索的效率。实验结果表明本文方法对于语句间语义依赖关系比较强的实时程序能够快速且有效地给出估计结果。

关键词: 最坏情况执行时间, 冲突检测, 实时软件

Abstract: A new program worst-case execution time estimation method with path conflict detection is proposed.Firstly,the method pre-computes program branch constraints,then converts these branch constraints to semantic conflicts between node-pair of Control Flow Graph(CFG) and saves these semantic conflicts into conflicts array of corresponding program in order to exclude impossible paths when searching path and improve searching path efficiency.The method finally selects path which has the maximum execution time from possible paths collection.Compared with some other former methods,this method can avoid high cost of all path enumeration and improve search efficiency while holding the same estimation precision.The experimental results show that the proposed method can efficiently and quickly give WCET estimation for high semantic dependency real-time programs.

Key words: Worst-Case Execution Time(WCET), conflict detection, real-time software

中图分类号: