arrow
Return

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
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Cyber-physical system
Software safety
Code refactoring
Performance optimization
Optimization strategy

Journal

C
Cluster Computing-The Journal of Networks Software Tools and Applications
IF:
4.1
Papers:
5.1K
Citations:
7.5K

Organization

H
harbin institute of technology
Scholars:
8.0W
Papers: 6.6W
Citations: 66
Cited Papers

Cited Papers

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
errShare
errSave
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.
errShare
errSave
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
errShare
errSave
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
errShare
errSave
no more