期刊文献+

基于抽象解释的嵌入式软件模块化Cache行为分析框架 被引量:5

Abstract-Interpretation-Based Framework of Modular Cache Behavior Analysis for Embedded Software
在线阅读 下载PDF
导出
摘要 程序最坏执行时间(Worst Case Execution Time,WCET)是嵌入式实时系统时间属性验证的基础,在采用静态分析技术的WCET估算中需要分阶段对不同的执行环境约束条件进行分析,并整合所有约束信息、结合程序控制流结构估算全局最坏路径,因此各阶段分析的中间结果对最终的WCET估算性能具有较大影响.在现代嵌入式系统中,硬件平台中的Cache机制成为对执行时间影响较大的硬件体系结构,对其进行精确的行为分析在WCET估算中具有重要的现实意义.采用抽象解释理论对Cache行为进行分析已有较为成熟的技术成果和相关工具,但由于静态分析技术具有较难理解和使用的特点,对于技术没有覆盖、工具没有支持的硬件架构,针对这类硬件架构进行相关研究和验证工具开发都具有较大难度和挑战.该文以抽象解释为理论基础,以复用Cache分析过程为目标,提出了基于抽象解释的模块化Cache行为分析框架,对Cache行为分析过程进行了层次划分,提出了易于复用的Cache行为分析方法设计,能够针对不同架构的Cache机制分析方法进行建模,并以统一的分析框架对分析过程进行复用.案例实验表明,该框架可支持采用抽象解释对使用LRU策略的Cache行为进行建模分析,并能够得到Cache命中情况标记信息以支持后续WCET的估算过程. The Worst-Case Execution Time(WCET)estimation is the basis of timing validation for embedded real-time system.In WCET estimation research which use static analysis techniques,it will separate into different stages for different execution environments like cache and pipeline to analyze the constraints which will affect the execution time of the program.Then it integrates all these constraints from different analysis stages and combines them with the control flow structure of the program to explore the global worst-case execution path and calculate the worst-case execution time based on the worst-case path.Therefore,the intermediate results of each stage analysis such as cache behavior analysis,have a great influence on the performance of final WCET estimation.In modern embedded system,the cache mechanism in the processor is an execution environment that affects the execution time very prominently.So,it has a practical significance for an accurate and safe cache behavior analysis in WCET estimation process which will be applied in embedded system especially in safety-critical system.Using abstract interpretation to analyze cache behavior is a very mature technology and there are some related tools for industrial WCET estimation like aiT,OTAWA and so on.However,because static analysis is difficult to understand and use,if there exist any hardware architecture which will not supported by existing analysis techniques or verification tools,it is very difficult to study the analysis method and develop related tool to deal with these architectures.In this paper,it takes the abstract interpretation as the theoretical basis and takes the reuse of the cache behavior analysis process as the goal,proposes an abstract-interpretation-based framework for modular cache behavior analysis.This framework divides the cache behavior analysis process hierarchically,formalize the design method of the cache behavior analysis which is easily reusable.The design can be used to model the cache analysis methods for different architectures and reuse the analysis process in a unified framework.In case study,it shows that the framework can support the use of abstract interpretation to model and analyze the cache behavior using LRU replacements strategy,and the analysis result is the cache hit category of memory access which can be used in subsequent WCET estimation.
作者 喻垚慎 黄志球 沈国华 王飞 崔少轩 YU Yao-Shen;HUANG Zhi-Qiu;SHEN Guo-Hua;WANG Fei;CUI Shao-Xuan(College of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 211106;Key Laboratory of Safety-Critical Software(Nanjing University of Aeronautics and Astronautics),Ministry of Industry and Information Technology,Nanjing 211106;Collaborative Innovation Center of Novel Software Technology and Industrialization,Nanjing 210093)
出处 《计算机学报》 EI CSCD 北大核心 2019年第10期2251-2266,共16页 Chinese Journal of Computers
基金 国家“八六三”高技术研究发展计划基金项目(2015AA105303) 国家重点研发计划(2016YFB1000802) 国家自然科学基金(61502231)资助~~
关键词 嵌入式软件 Cache行为分析 静态代码分析 模块化分析 抽象解释 embedded software Cache behavior analysis static code analysis modular analysis abstract interpretation
作者简介 喻垚慎,男,1989年生,博士研究生,中国计算机学会(CCF)学生会员(34581G),主要研究方向为软件工程、形式化方法、静态程序分析和嵌入式软件建模与分析.E-mail:yaoshen.yu@outlook.com;通信作者:黄志球,男,1965年生,博士,教授,中国计算机学会(CCF)理事,主要研究领域为软件工程、形式化方法和云计算.E-mail:zqhuang@nuaa.edu.cn;沈国华,男,1976年生,博士,副教授,中国计算机学会(CCF)高级会员(E200018171S),主要研究方向为需求工程、软件安全性分析、语义Web;王飞,男,1990年生,博士研究生,中国计算机学会(CCF)学生会员(40569G),主要研究方向为软件工程、需求工程、形式化方法和嵌入式软件建模与分析;崔少轩,女,1992年,硕士研究生,中国计算机学会(CCF)学生会员(54496G),主要研究方向为软件工程、形式化方法.
  • 相关文献

参考文献5

二级参考文献70

  • 1蒋严冰,邵维忠,张路,麻志毅.UML中衍型的精确定义与分析[J].电子学报,2003,31(z1):2101-2105. 被引量:3
  • 2胡军,于笑丰,张岩,李宣东,郑国梁.基于场景构件式实时软件设计的一致性检验[J].软件学报,2006,17(1):48-58. 被引量:13
  • 3Cousot P,Cousot R.Abstract Interpretation:A Unified Model for Static Analysis of Programs by Construction or Approximation of Fixpoints[C].Proceedings of the 4^th ACM Symposium on Principles of Programming Languages,Los Angeles,1977:238-252.
  • 4Arnold R D,Mueller F,Whalley D,et al.Bounding Worst-case Instruction Cache Performance[C].Proceedings of the 15th Real-time Systems Symposium,Massachusetts,1994:172-181.
  • 5Healy C A,Arnold R D,Mueller F,et al.Bounding Pipeline and Instruction Cache Performance[J].IEEE Transactions on Computers,1999,48(1):53-70.
  • 6Nielson F,Nielson H R,Hankin C.Principles of Program Analysis[M].Berlin:Springer-Verlag,1999.
  • 7Cousot P, Cousot R. Systematic design of program analysis frameworks. In: Proc. of the 6th POPL. San Antonio: ACM Press, 1979. 69-282. http://www.di.ens.fr/-cousot/COUSOTpapers/POPL79.shtml
  • 8Cousot P, Cousot R. Abstract interpretation frameworks. Journal of Logic and Computer, 1992,2(4):511-547.
  • 9Cousot P, Cousot R. Comparing the Galois connection and widening/narrowing approaches to abstract interpretation. In: Bruynooghe M, Wirsing M, eds. Proc. of the PLILP'92. LNCS 631, Springer-Verlag, 1992. 269-295.
  • 10Cousot P. Abstract interpretation based formal methods and future chanllenges. In: Wilhelm R, ed. Informatics——10 Years Back, 10 Years Ahead. Berlin, Heidelberg: Springer-Verlag, 2000. 138-156.

共引文献116

同被引文献44

引证文献5

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部