Dominique, The reason why I want(ed) to use cscout, and for which I also posted to this group, is that gcc -M is very slow compared to cscout. I have to extract the complete header dependencies for a project of 10-20 million lines of code (this not counting the included standard headers...) If I run gcc -M, it takes about the same time (order of magnitude) as when compiling the project, which is 5..10 hours. cscout on the contrary scans the entire project more than 10 times faster. That's why I considered it.
Alex On Aug 23, 5:22 pm, "Dominique Pelle" <[EMAIL PROTECTED]> wrote: > On 8/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I want to use cscope to extract all the dependencies between the > > header files used in a large (10 MLOC) project. The project parses ok > > and creates a correct database. However, I don't seem to have an > > option in cscope to say "give me all the headers included directly, > > or > > indirectly, by a given file". > > A bit off-topic. I don't think cscope does what you want. > But, wouldn't the c-preprocessor do exactly what you need? > > Try: > - gcc -H foo.c > - gcc -M foo.c > - gcc -MM foo.c > > see 'man cpp' for details. > > Make sure you pass the same options to gcc as when > you normally compile so that all #ifdef are identical. > > -- Dominique --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
