Hacking gcc (almost died from recursion) ---------------------------------------- This is a dirty hack to get nccouts for most files in the gcc/ directory. Very incomplete but rather good if you want to get into individual files in gcc. gcc is compiled from an alternative directory 'objdir'. Suppose you have already compiled gcc from this directory. 1- Make a new directory objdir/ncc 2- Get into it. 3- Create a file mydefs.h with contents #define DEFAULT_TARGET_VERSION "foo" #define DEFAULT_TARGET_MACHINE "foo" #define STANDARD_EXEC_PREFIX "foo" #define STANDARD_BINDIR_PREFIX "foo" #define STANDARD_LIBEXEC_PREFIX "foo" #define STANDARD_STARTFILE_PREFIX "foo" #define TOOLDIR_BASE_PREFIX "foo" #define STARTFILE_PREFIX "foo" #define LOCALEDIR "foo" #define PREFIX "foo" #define TARGET_NAME "foo" 4- Run this: for a in $(ls ../../../gcc-4.1-20051112/gcc/*.c) do ncc -DIN_GCC -DHAVE_CONFIG_H -I../gcc -I../../../gcc-4.1-20051112/gcc/ -I../../../gcc-4.1-20051112/include/ -I../../../gcc-4.1-20051112/libcpp/include/ -imacros mydefs.h $a -ncspp -ncfabs -ncoo done But replace '../../../gcc-4.1-20051112' with the relative path from your objdir to the gcc source dir. 5- This manages to compile most files of gcc/. There are some that fail because they need temporary header files from build/. If you want more details run the above commands in 'script' (man script) and search the typescript for 'error'). 6- From your directory, cat ../../../gcc-4.1-20051112/gcc/*.nccout > gcc.nccout 7- Voila 385 Filez 10852 functionz 3499 global variables 820 structs 4689 members 321548 Total links