000 02908naa a2200265 a 4500
003 AR-LpUFIB
005 20240131183011.0
007 ta
008 230201s2002 xx do 000 0 eng d
024 8 _aDIF002455
040 _aAR-LpUFIB
_bspa
_cAR-LpUFIB
100 1 _aGarrido, Alejandra
_9251648
245 1 0 _aChallenges of refactoring C programs
260 _aref_localidad@37940 :
_b,
_c2002
490 0 _a^p Datos electrónicos (1 archivo : 126 KB)
500 _aFormato de archivo: PDF. -- Este documento es producción intelectual de la Facultad de Informática-UNLP (Colección BIPA / Biblioteca.) -- Disponible también en línea (Cons. 22/12/2008)
520 _aRefactoring has become a well-known technique for transforming code in a way that preserves behavior. Refactorings may be applied manually, although manual code manipulation is error prone and cumbersome, so maintainers need tools to make automatic refactorings. There is currently extensive literature on refactoring object-oriented programs and some very good tools for refactoring Smalltalk and Java code. Although there is more code written in C or C++ than in any other language, refactoring tools for C with full support for preprocessor directives have not yet appeared. The C programming language, especially the preprocessor directives that coexist with it, complicates refactorings in different ways as directives are not legal C code and may violate otherwise correct refactorings. Refactoring C poses two major research challenges. On the one hand, as preprocessor directives may violate correctness, new precondition and execution rules must be defined for existing refactorings to preserve behavior. On the other hand, the automated execution of refactorings requires specialized program analysis tools to represent and manipulate preprocessor directives. After studying the area we have found some results to overcome these challenges and make a correct tool for the C language attainable. This paper first discusses the difficulties in refactoring C code with preprocessor directives. It then defines preconditions and execution rules to maintain correctness of refactoring in the presence of macros and conditional directives. Moreover, new refactorings are proposed for macro definitions and conditionals. Lastly, the paper suggests enhancements to program analysis and program representation tools to correctly manipulate preprocessor directives. -- Keywords: Refactoring. C programming. Preprocessor directives.
534 _aProceedings of the International Conference on the Principles of Software Evolution (IWPSE༾).
650 4 _aDIAGNÓSTICO MÉDICO
_9252428
650 4 _aPREPROCESADORES
_9253683
650 4 _aMULTIPROCESADORES
_9247609
856 4 0 _uwww.lifia.info.unlp.edu.ar/papers/2002/Garrido2002.pdf
856 4 0 _u http://catalogo.info.unlp.edu.ar/meran/getDocument.pl?id=86
942 _cCP
999 _c844584
_d844584