arrow
返回

WCET optimization strategy based on source code refactoring

delete2017-11-22
delete1
PRE
AI
M
Meng, Fanqi
苏
苏小红 (Xiaohong Su) *
DOI:10.1007/s10586-017-1369-3delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
For safety-critical real-time software, if worst-case execution time (WCET) violates a time constraint, it is considered having a timeliness defect. To fix the defect early with lower cost, a WCET optimization strategy is proposed based on source code refactoring. The strategy guides programmers to search refactoring opportunities in the correct positions and perform refactorings by a reasonable sequence. To this end, the worst-case execution path (WCEP) of a target program is firstly extracted from its control flow graph. Then the WCEP is mapped onto source code by the back-annotation technique. An abstract syntax tree-based invariant path identification algorithm is developed for recognizing the invariant paths from the source-level WCEP. According to the invariant paths and loop statements, the source code is divided into four optimization regions with different priorities. Thus the searching scopes are reduced, and invalid refactorings are avoided. On the basis, the refactoring which has the lowest cost in the same region is performed first. To support the strategy, a cost model of source code refactoring is designed. It mainly considers adverse effects of refactorings on the maintainability of source code. The experimental results showed that the optimization strategy reduced WCET effectively and maximally kept the maintainability. Therefore it is more suitable for WCET optimization in an early programming phase. It is helpful to fix the defects early and then guarantee the timeliness safety of the software.
Keyword:
Cyber-physical system
Software safety
Code refactoring
Performance optimization
Optimization strategy

期刊

C
Cluster Computing-The Journal of Networks Software Tools and Applications
IF:
4.1
论文数:
5.1K
被引数:
7.5K

机构

H
harbin institute of technology
学者数:
8.0W
论文数: 6.6W
被引数: 66
引用论文

引用论文

Mixed Electronic-Oxide Ionic Conductivity and Oxygen Permeating Property in Ni Doped LaGaO3 Perovskite Oxide
err2003-12-01
err0
PREAI
errHiroshi Arikawa; Takashi Yamada; Tatsumi Ishihara; Hiroyasu Nishiguchi; Yusaku Takita
err分享
err收藏
Fast, Interactive Worst-Case Execution Time Analysis With Back-Annotation
err2012-05-01
err14
errOAAI
errHarmon, Trevor; Schoeberl, Martin; Kirner, Raimund; Klefstad, Raymond; Kim, Kwang H.; Lowry, Michael R.
err分享
err收藏
Evidence of Leaky Protection Following COVID-19 Vaccination and SARS-CoV-2 Infection in an Incarcerated Population
err
IF0
err2023-02-23
err0
errOAAI
errMargaret L Lind; Murilo Dorion; Amy J Houde; Mary Lansing; Sarah Lapidus; Russell Thomas; Inci Yildirim; Saad B. Omer; Wade L. Schulz; Jason R. Andrews; Matt DT Hitchings; Byron S. Kennedy; Robert P. Richeson; Derek AT Cummings; Albert I Ko
err分享
err收藏
Optimizing Intracochlear Electrical Stimulation to Suppress Tinnitus
err2015-01-01
err0
PREAI
errRemo A. G. J. Arts; Erwin L. J. George; Michelene N. Chenault; Robert J. Stokroos
err分享
err收藏
没有更多内容