Extending Programming Language to Support Object Orientation in Legacy Systems
Computer Science and Information Systems, Tome 10 (2013) no. 4.

Voir la notice de l'article provenant de la source Computer Science and Information Systems website

The contemporary software systems written in C face maintainability issues because of tight coupling. Introducing object orientation can address these problems by raising the abstraction to objects, thereby providing better programmability and understandability. However, compiling a C software with a C++ compiler is difficult because of the incompatibilities between C and C++. Some of the incompatibilities such as designated initializers are nontrivial in nature and hence are very difficult to handle by automation such as scripting or by manual efforts. Moreover, runtime support for features such as global constructors, exception handling, runtime type inference, etc. is also required in the target system. Clearly, the traditional procedural language compiler cannot provide these features. In this paper, we propose extending programming language such as C++ to support object orientation in legacy systems instead of completely redesigning them. With a case study of Linux kernel, we report major issues in providing the compile and runtime support for C++ in legacy systems, and provide a solution to these issues. Our approach paves the way for converting a large C based software into C++. The experiments demonstrate that the proposed extension saves significant manual efforts with very little change in the g++ compiler. In addition, the performance study considers other legacy systems written in C and shows that the overhead resulting from the modifications in the compiler is negligible in comparison to the functionality achieved.
Keywords: g++, programming language, Linux kernel, legacy systems, object orientation
@article{CSIS_2013_10_4_a8,
     author = {Hemang Mehta and S J Balaji and Dharanipragada Janakiram},
     title = {Extending {Programming} {Language} to {Support} {Object} {Orientation} in {Legacy} {Systems}},
     journal = {Computer Science and Information Systems},
     publisher = {mathdoc},
     volume = {10},
     number = {4},
     year = {2013},
     url = {http://geodesic.mathdoc.fr/item/CSIS_2013_10_4_a8/}
}
TY  - JOUR
AU  - Hemang Mehta
AU  - S J Balaji
AU  - Dharanipragada Janakiram
TI  - Extending Programming Language to Support Object Orientation in Legacy Systems
JO  - Computer Science and Information Systems
PY  - 2013
VL  - 10
IS  - 4
PB  - mathdoc
UR  - http://geodesic.mathdoc.fr/item/CSIS_2013_10_4_a8/
ID  - CSIS_2013_10_4_a8
ER  - 
%0 Journal Article
%A Hemang Mehta
%A S J Balaji
%A Dharanipragada Janakiram
%T Extending Programming Language to Support Object Orientation in Legacy Systems
%J Computer Science and Information Systems
%D 2013
%V 10
%N 4
%I mathdoc
%U http://geodesic.mathdoc.fr/item/CSIS_2013_10_4_a8/
%F CSIS_2013_10_4_a8
Hemang Mehta; S J Balaji; Dharanipragada Janakiram. Extending Programming Language to Support Object Orientation in Legacy Systems. Computer Science and Information Systems, Tome 10 (2013) no. 4. http://geodesic.mathdoc.fr/item/CSIS_2013_10_4_a8/