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
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
Impermanent identifiers: Enhanced source code comprehension and refactoring
err2024-10-01
err1
errOAAI
errGuerra, Eduardo Martins; Ivo, Andre A. S.; Pereira, Fernando O.; Robbes, Romain; Janes, Andrea; Silveira, Fabio Fagundes
errShare
errSave
Why Developers Refactor Source Code: A Mining-based Study
err2020-09-26
err34
errOAAI
errPantiuchina, Jevgenija; Zampetti, Fiorella; Scalabrino, Simone; Piantadosi, Valentina; Oliveto, Rocco; Bavota, Gabriele; Di Penta, Massimiliano
errShare
errSave
Refactoring Android Source Code Smells From Android Applications
err2025-01-01
err0
errOAAI
errFawad, Muhammad; Rasool, Ghulam; Riaz, Muhammad Bilal
errShare
errSave
Monitor-Based Instant Software Refactoring
err2013-08-01
err40
PREAI
errLiu, Hui; Guo, Xue; Shao, Weizhong
errShare
errSave
Multi-Criteria Code Refactoring Using Search-Based Software Engineering: An Industrial Case Study
err2016-06-30
err107
PREAI
errOuni, Ali; Kessentini, Marouane; Sahraoui, Houari; Inoue, Katsuro; Deb, Kalyanmoy
errShare
errSave
Data augmentation of Python code refactoring datasets based on LLMs
err2026-06-18
err0
errOAAI
errVasilica-Andreea Moldovan; Rareş Pătcaş; Simona Motogna
errShare
errSave

Journal

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

Organization

Harbin Institute of Technology cover
Harbin Institute of Technology
Scholars:
1.1W
Papers: 3.1K
Citations: 5.7W
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