Using GCC as a Front-End

P

pingu219

Hi I've been looking for a lexer/parser which can handle C's
preprocessor directives for a refactoring tool I'm building but have
so far come up empty. I was wondering if anyone here has any
experience or advice about using GCC as a front-end for the purpose of
C code analysis or code transformations. To just use preprocessed code
for refactoring would really limit the utility of the tool somewhat,
not to mention it may result in some refactorings breaking the
external behaviour of the code which wouldn't be kosher.
 
N

Noob

pingu219 said:
I've been looking for a lexer/parser which can handle C's
preprocessor directives for a refactoring tool I'm building but have
so far come up empty. I was wondering if anyone here has any
experience or advice about using GCC as a front-end for the purpose of
C code analysis or code transformations.

You should try the gcc mailing list.
http://gcc.gnu.org/lists.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,268
Latest member
AshliMacin

Latest Threads

Top