C preprocessor that include column information

Ben War <benwar@gmx.net>
6 Feb 2002 23:45:48 -0500

          From comp.compilers

Related articles
C preprocessor that include column information benwar@gmx.net (Ben War) (2002-02-06)
Re: C preprocessor that include column information zackw@panix.com (Zack Weinberg) (2002-02-16)
Re: C preprocessor that include column information schnetter@uni-tuebingen.de (Erik Schnetter) (2002-02-16)
Re: C preprocessor that include column information idbaxter@semdesigns.com (Ira D. Baxter) (2002-02-16)
| List of all articles for this month |

From: Ben War <benwar@gmx.net>
Newsgroups: comp.compilers
Date: 6 Feb 2002 23:45:48 -0500
Organization: Compilers Central
Keywords: C, question
Posted-Date: 06 Feb 2002 23:45:48 EST

Hi,


In A Research Project We Are Using Already Preprocessed C Code, Where We
Have To Map Source Code Positions Back Onto The Original Sources. Until
Gcc-3 Came Out, We Have Used The Gcc Preprocessor And Reconstructed The
Column Position From The Preprocessed Code. This only works as long as
there was no macro in that line. Now in gcc-3, the preprocessor doesn't
preserve whitespace any longer and we have to use a different
preprocessor. This raised the question, if there is a c preprocessor
that not only annotates the preprocessed code with line number
information but also includes column information?


Regards,
Ben


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.