WCET optimization strategy based on source code refactoring

被引:0
|
作者
Fanqi Meng
Xiaohong Su
机构
[1] Harbin Institute of Technology,School of Computer Science and Technology
[2] Northeast Electric Power University,School of Information Engineering
来源
Cluster Computing | 2019年 / 22卷
关键词
Cyber-physical system; Software safety; Code refactoring; Performance optimization; Optimization strategy;
D O I
暂无
中图分类号
学科分类号
摘要
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.
引用
收藏
页码:5563 / 5572
页数:9
相关论文
共 50 条
  • [31] Recommending Refactoring Solutions Based on Traceability and Code Metrics
    Nyamawe, Ally S.
    Liu, Hui
    Niu, Zhendong
    Wang, Wentao
    Niu, Nan
    IEEE ACCESS, 2018, 6 : 49460 - 49475
  • [32] Multilingual code refactoring detection based on deep learning
    Li, Tao
    Zhang, Yang
    Expert Systems with Applications, 258
  • [33] Practical experiences of applying source-level WCET flow analysis to industrial code
    Lisper B.
    Ermedahl A.
    Schreiner D.
    Knoop J.
    Gliwa P.
    International Journal on Software Tools for Technology Transfer, 2013, 15 (1) : 53 - 63
  • [34] Multilingual code refactoring detection based on deep learning
    Li, Tao
    Zhang, Yang
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 258
  • [35] On refactoring support based on code clone dependency relation
    Yoshida, N
    Higo, Y
    Kamiya, T
    Kusumoto, S
    Inoue, K
    2005 11TH INTERNATIONAL SYMPOSIUM ON SOFTWARE METRICS (METRICS), 2005, : 133 - 142
  • [36] A Polyhedral Modeling Based Source-to-Source Code Optimization Framework for GPGPU
    Wang, Chenxi
    Kang, Kang
    Zhu, Maohua
    Deng, Yangdong
    2012 IEEE 26TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS & PHD FORUM (IPDPSW), 2012, : 1964 - 1970
  • [37] WCET analysis of reusable portable code
    Puschner, P
    Bernat, G
    13TH EUROMICRO CONFERENCE ON REAL-TIME SYSTEMS, PROCEEDINGS, 2001, : 45 - 52
  • [38] Reducing Code Complexity through Code Refactoring and Model-Based Rejuvenation
    Mooij, Arjan J.
    Ketema, Jeroen
    Klusener, Steven
    Schuts, Mathijs
    PROCEEDINGS OF THE 2020 IEEE 27TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER '20), 2020, : 617 - 621
  • [39] Model to identify refactoring effort during maintenance by mining source code repositories
    Moser, Raimund
    Pedrycz, Witold
    Sillitti, Alberto
    Succi, Giancarlo
    PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROCEEDINGS, 2008, 5089 : 360 - +
  • [40] Refactoring Object-Oriented Applications for a Deployment in the Cloud Workflow Generation based on Static Analysis of Source Code
    Selmadji, Anfel
    Seriai, Abdelhak-Djamel
    Bouziane, Hinde Lilia
    Dony, Christophe
    Tibermacine, Chouki
    PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, 2018, : 111 - 123