Back to results
Bibliographic record · Consultation and access
Tesis

Program refactoring in the presence of preprocessor directives

Garrido, Alejandra · SEDICI UNLP · 2005

Open access available
Quick overview. Review the resource’s basic details, then access the content using the main button. This page shows only the information needed to identify, cite, and open the work.

Resource access

Open the content from the main option or choose another available source.

SEDICI UNLP SEDICI UNLP OAI-PMH
Entrar por SEDICI UNLP
Main access

Open access available

Recurso identificado como acceso abierto, sin confirmar automáticamente si es texto completo directo.
Open resource

Summary

Descripción general del contenido del recurso.

The C preprocessor is heavily used in C programs because it provides useful and even necessary additions to the C language. Since preprocessor directives are not part of C, they are removed before parsing and program analysis take place, during the phase called preprocessing. In the context of refactoring, it is inappropriate to remove preprocessor directives: if changes are applied on the preprocessed version of a program, it may not be possible to recover the un-preprocessed version. This means that after refactoring, all the source code would be contained in a single unit, targeted to a single configuration and without preprocessor macros. This thesis describes a novel approach to preserve preprocessor directives during parsing and program analysis, and integrate them in the program representations. Furthermore, it illustrates how the program representations are used during refactor ing and how transformations preserve preprocessor directives. Additionally, the semantics of the C preprocessor are formally specified, and the results of implementing this approach in a refactoring tool for C, CRefactory, are presented. Doctor of Philosophy in Computer Science University of Illinois

How to cite

Elegí el formato que necesitás y copiá la referencia al portapapeles.

APA 7

Garrido, A. (2005). Program refactoring in the presence of preprocessor directives. SEDICI UNLP. https://doi.org/10.35537/10915/4167

MLA

Garrido, Alejandra. Program refactoring in the presence of preprocessor directives. SEDICI UNLP, 2005. https://doi.org/10.35537/10915/4167.

Chicago

Garrido, Alejandra. 2005. Program refactoring in the presence of preprocessor directives. SEDICI UNLP. https://doi.org/10.35537/10915/4167.

Harvard

Garrido, A. 2005, Program refactoring in the presence of preprocessor directives, SEDICI UNLP, available at: https://doi.org/10.35537/10915/4167 [Accessed 6 Aug. 2026].

Share and print

Save the record, copy its permanent link, or print it as a PDF.

Export reference

You can export the record in common formats for use in a reference manager.

Resource details

Bibliographic information to help confirm that this is the correct material.

Title
Program refactoring in the presence of preprocessor directives
Author / contributors
Garrido, Alejandra
Publisher
SEDICI UNLP
Publication year
2005
Language
English

Subjects

Explore related resources through these subjects.

Copied