How to get list of global data and function definition.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abuamit
    New Member
    • Sep 2007
    • 7

    How to get list of global data and function definition.

    Hello Everybody,

    i want list of global data and function definition from a C source code( ie source code contain multiple C files)


    Thanks
    abuamit
  • Cucumber
    New Member
    • Sep 2007
    • 90

    #2
    You will need a C parser.
    People actually make money creating parsers because they are very hard to create.

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Do some research on how to make a symbol table. That will be your database as you scan the various C source files.

      I assume this is a class assignment since most IDE tools have a view that does this.

      Comment

      • abuamit
        New Member
        • Sep 2007
        • 7

        #4
        Which language is efficient and easy to create cparser?
        Currently I am working on cparser developed using perl, the parser link is given below,
        http://search.cpan.org/src/DCONWAY/Parse-RecDescent-v1.95.1/demo/demo_another_Cg rammar.pl

        This parser is too much slow for big C files.

        So let me know any useful ideas using which I can start working on c parser.


        Thanks.

        Comment

        Working...