By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,226 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,226 IT Pros & Developers. It's quick & easy.

Function Call tree program - un compiled code

P: n/a
Ham
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?

Sep 25 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.
Sep 25 '06 #2

P: n/a
Ham

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.

Sep 25 '06 #3

P: n/a

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

Sep 25 '06 #4

P: n/a
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.
Sep 25 '06 #5

P: n/a
On 25 Sep 2006 00:08:16 -0700, "Ham" <ha********@gmail.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.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Sep 26 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.