Function Call tree program - un compiled code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ham

    #1

    Function Call tree program - un compiled code

    Hi

    I am looking for a function call tree program to map the function calls
    of my project. I however do not want to compile my project. All the
    programs I have found for this require you to compile the project which
    may span over 20 files or so.

    I would prefer the output probably to be in text so I can create a perl
    script to analyse the results.

    Any ideas?

  • Ian Collins

    #2
    Re: Function Call tree program - un compiled code

    Ham wrote:
    Hi
    >
    I am looking for a function call tree program to map the function calls
    of my project. I however do not want to compile my project. All the
    programs I have found for this require you to compile the project which
    may span over 20 files or so.
    >
    So? For the few seconds that would take, just do it.

    --
    Ian Collins.

    Comment

    • Ham

      #3
      Re: Function Call tree program - un compiled code


      Ian Collins wrote:
      So? For the few seconds that would take, just do it.
      >
      --
      Ian Collins.
      I don't have access to all of the options for compilation and the
      compiler used. It is an embedded system. I just have the code.

      Comment

      • kondal

        #4
        Re: Function Call tree program - un compiled code


        Ham wrote:
        Hi
        >
        I am looking for a function call tree program to map the function calls
        of my project. I however do not want to compile my project. All the
        programs I have found for this require you to compile the project which
        may span over 20 files or so.
        >
        I would prefer the output probably to be in text so I can create a perl
        script to analyse the results.
        >
        Any ideas?
        You need special tools/IDE that parse through the entire project to
        generate the function call tree. I'm trying to find an open source /
        free tool to do this.

        I ended up in using ctags, cscope and source navigator to help to solve
        the problem to some extent. They will not generate a function call tree
        but will help me to traverse through the program.

        Best of luck in writing the perl script.

        -kondal

        Comment

        • Ian Collins

          #5
          Re: Function Call tree program - un compiled code

          Ham wrote:
          Ian Collins wrote:
          >
          >
          >>So? For the few seconds that would take, just do it.
          >>
          >
          I don't have access to all of the options for compilation and the
          compiler used. It is an embedded system. I just have the code.
          >
          Well any tool will have to be able to parse the code, so you may as well
          compile it with an compiler/IDE that gives you the output you require.
          Those I have used have had options to skip code generation and just
          produce code data.

          All of these tools fail in the presence of functions called through
          function pointers.

          --
          Ian Collins.

          Comment

          • Jack Klein

            #6
            Re: Function Call tree program - un compiled code

            On 25 Sep 2006 00:08:16 -0700, "Ham" <hamishmacg@gma il.comwrote in
            comp.lang.c:
            Hi
            >
            I am looking for a function call tree program to map the function calls
            of my project. I however do not want to compile my project. All the
            programs I have found for this require you to compile the project which
            may span over 20 files or so.
            >
            I would prefer the output probably to be in text so I can create a perl
            script to analyse the results.
            >
            Any ideas?
            This is off-topic, of course, but have you looked at Doxygen?

            --
            Jack Klein
            Home: http://JK-Technology.Com
            FAQs for
            comp.lang.c http://c-faq.com/
            comp.lang.c++ http://www.parashift.com/c++-faq-lite/
            alt.comp.lang.l earn.c-c++

            Comment

            Working...