arrow
Return

Automatically propagating changes from reference implementations to code generation templates

delete2015-11-01
delete10
PRE
AI
M
Marcos Antonio Possatto
D
Daniel Lucrédio *
DOI:10.1016/j.infsof.2015.06.009delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Context: Code generators can automatically perform some tedious and error-prone implementation tasks, increasing productivity and quality in the software development process. Most code generators are based on templates, which are fundamentally composed of text expansion statements. To build templates, the code of an existing, tested and validated implementation may serve as reference, in a process known as templatization. With the dynamics of software evolution/maintenance and the need for performing changes in the code generation templates, there is a loss of synchronism between the templates and this reference code. Additional effort is required to keep them synchronized. Objective: This paper proposes automation as a way to reduce the extra effort needed to keep templates and reference code synchronized. Method: A mechanism was developed to semi-automatically detect and propagate changes from reference code to templates, keeping them synchronized with less effort. The mechanism was also submitted to an empirical evaluation to analyze its effects in terms of effort reduction during maintenance/evolution templatization. Results: It was observed that the developed mechanism can lead to a 50% reduction in the effort needed to perform maintenance/evolution templatization, when compared to a manual approach. It was also observed that this effect depends on the nature of the evolution/maintenance task, since for one of the tasks there was no observable advantage in using the mechanism. However, further studies are needed to better characterize these tasks. Conclusion: Although there is still room for improvement, the results indicate that automation can be used to reduce effort and cost in the maintenance and evolution of a template-based code generation infrastructure. (C) 2015 Elsevier B.V. All rights reserved.
Keywords:
Template-based code generation
Reference implementation
Code migration
Templatization
Round-trip engineering
Template-based AADL automatic code generation
err2019-06-18
err13
PREAI
errHu, Kai; Duan, Zhangbo; Wang, Jiye; Ga, Lingchao; Shang, Lihong
errShare
errSave
ExploitGen: Template-augmented exploit code generation based on CodeBERT
err2023-03-01
err31
PREAI
errYang, Guang; Zhou, Yu; Chen, Xiang; Zhang, Xiangyu; Han, Tingting; Chen, Taolue
errShare
errSave
API usage templates via structural generalization
err2024-04-01
err0
errOAAI
errMahmoud, May; Walker, Robert J.; Denzinger, Joerg
errShare
errSave
Automatic Generation of High-Performance FFT Kernels on Arm and X86 CPUs
err2020-08-01
err13
errOAAI
errLi, Zhihao; Jia, Haipeng; Zhang, Yunquan; Chen, Tun; Yuan, Liang; Vuduc, Richard
errShare
errSave
Mode-Dependent Templates and Scan Order for H.264/AVC-Based Intra Lossless Coding
err2012-09-01
err7
PREAI
errGu, Zhouye; Lin, Weisi; Lee, Bu-Sung; Lau, Chiew Tong; Sun, Ming-Ting
errShare
errSave
errShare
errSave
Automatically Generating SystemC Code from HCSP Formal Models
err2020-01-30
err10
PREAI
errYan, Gaogao; Jiao, Li; Wang, Shuling; Wang, Lingtai; Zhan, Naijun
errShare
errSave

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.8K
Citations:
9.5K

Organization

U
Universidade Federal de Sao Carlos
Scholars:
392
Papers: 145
Citations: 3.8K
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave