Thursday, February 11, 2010

Cflow

Just learned that cflow is a C-language cross-referencing tool that can be used to generate the call graph. However, it is not ideal in terms of its adaptation by most modern editors.

Another way to do it is to modify gcc to generate the info needed. Someone has done this before but his source code page is gone and it seems the programmer is no more active on the Internet since 2002.

The Goal: Generate cross-referencing information in the format of cscope such that most modern open source C source code editors can use it. Whilst gcc can be modified to generate the most accurate information, it is nevertheless hard to be a complete one if you want real-time update of any modification and its lack of handling partial finished files (gcc stops parsing once any unacceptable syntax error is found).

It seems like there is no perfect tools for this, yet.

No comments: