Columbus Schema for C/C++ Preprocessing

  • Authors:
  • László Vidács;Árpád Beszédes;Rudolf Ference

  • Affiliations:
  • -;-;-

  • Venue:
  • CSMR '04 Proceedings of the Eighth Euromicro Working Conference on Software Maintenance and Reengineering (CSMR'04)
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

File inclusion, conditional compilation and macro processinghas made the C/C++ preprocessor a powerful toolfor programmers. However, program code with lots of directivesoften causes difficulties in program understandingand maintenance. The main source of the problem is the differencebetween the code that the programmer sees and thepreprocessed code that the compiler gets. To aid programcomprehension we designed a C/C++ preprocessor schema(supplementing the Columbus Schema for C++) and implementeda preprocessor which produces both preprocessedfiles and schema instances. The instances of the schemamay be used to model: (1) preprocessor constructs in theoriginal source code, (2) the preprocessed compilation unit,and (3) the transformations made by the preprocessor.