Hello, > I have to use gcc's C parser and the intermediate representation, so that I > can manipulate the basic blocks and CFG. So I need to plug out the parser > and the intermediate code. I would like to know if it is possible to plug > out the parser and the intermediate representation code.
this sound, as if you do not need the rest of gcc ... so just need a parser and an appropriate intermediate representation. Maybe you should have a look at LLVM (www.llvm.org) in combination with clang (clang.llvm.org). Ciao, Fabian