----- Original Message ----- 
From: "basha_ram_id" 
To: 
Sent: Monday, April 26, 2004 11:42 AM
Subject: [UTTARA] QUERY...in about large programs


> hello all!
> 
>             how to make  code walk through  over large programs where 
> u have  atleast ten (.h) and  .c file.. how  to get  logic  from 
> those programs,
> 
> TIA
> regards
> 
> basha

    `cflow' is a free program which prints the caller and called functions in
a tree format.  Here is a link where you find cflow:
http://www.kilowattsoftware.com/latest/cflowPkg.exe

    I am not sure how to extract the logic by tracing, but I guess it's 
possible.

    If you are a Vim user, then it has facilities to navigate through the source
code.  Here is an extract reproduced from an article written by me on Vim:

[BEGIN]

    5.11 I want to see the declaration/definition of an indentifier.  
         How do I do without a search operation?

    Ans  There are actually four ways to do this task.  I list them
         according to their ease of use:

         + In this method, you create a 'tags' file to be used by Vim.
           This file should be in the current directory.  Bring the
           cursor under the identifier and use following commands:

           # ctrl-]         -   Jump to the tag
           # :ta {ident}    -   Same as ctrl-]
           # ctrl-t         -   Come back to original position
           
           This method works for all C files in the current directory.

         + The second method uses Vim's inbuilt functionality.  Use
           the command: 
           
            # [I    -       Displays all lines that contain the keyword 
                            under the cursor.  Search starts from line 1
            # ]I    -       Same as above, but search starts from cursor
                            position

            This also works for included files.

         + This method consists of following two commands:

            # gd    -       Go to local definition
            # gD    -       Go to global definition (global definition,
                            as if "static" was used.)
                            
            This works only at the file scope.  

         + In the fourth method, one has use external searching commands,
           like 'grep'.

[END]

(I am sure Emacs also has such facilities)

    Source: geocities.com/vijoeyz/faq/c

               ( geocities.com/vijoeyz/faq)                   ( geocities.com/vijoeyz)