473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Automatic generation of function's uses and dependences (graph representation)

Greetings!

Is there a program that looks at your C project
and automagically generates a graph indicanting which functions
are used by each other function in the project?

I´ve seen such program available for the Sun Solaris C
programming environment. Any program for Microsoft Windows or
Linux?

Thank you very much, Humberto.

Nov 14 '05 #1
5 1472
hj******@mat.puc-rio.br wrote:

Is there a program that looks at your C project and automagically
generates a graph indicanting which functions are used by each
other function in the project?

I´ve seen such program available for the Sun Solaris C programming
environment. Any program for Microsoft Windows or Linux?


Try Cscope.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Nov 14 '05 #2
hj******@mat.puc-rio.br wrote:
Greetings!

Is there a program that looks at your C project
and automagically generates a graph indicanting which functions
are used by each other function in the project?

I´ve seen such program available for the Sun Solaris C
programming environment. Any program for Microsoft Windows or
Linux?

Thank you very much, Humberto.

The IDE of lcc-win32 does it.

Load all your programs in the IDE.
Then choose Analysis in the main menu,
then Audit in the opening drop down.

In the opening dialog box check "Called by"

The resulting file will contain each function in the project
specifying which function calls it.

Alternatively if you just want to know who calls a specific function
just put the cursor in the identifier and press Ctrl+F8

lcc-win32: a C compiler system for windows.
http://www.cs.virginia.edu/~lcc-win32
Nov 14 '05 #3
hj******@mat.puc-rio.br wrote:
Greetings!

Is there a program that looks at your C project
and automagically generates a graph indicanting which functions
are used by each other function in the project?

I´ve seen such program available for the Sun Solaris C
programming environment. Any program for Microsoft Windows or
Linux?

Thank you very much, Humberto.


Try Doxygen.
http://www.doxygen.org/
http://www.stack.nl/~dimitri/doxygen/

It has a bit of a learning curve, but (when instructed) will produce
call graphs, dependency graphs, etc using GraphViz.
http://www.graphviz.org/

-Charlie

Nov 14 '05 #4
Check out www.scitools.com

Understand for C++ and SourcePublisher C++

I use both and highly recommentd them.

gm

Nov 14 '05 #5
GMM50 wrote:

Check out www.scitools.com

Understand for C++ and SourcePublisher C++

I use both and highly recommentd them.


Why should I (or anyone else) check it out. C++ is off-topic
here. Read my sig.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rasmus Fogh | last post by:
Someone raised the question of automatic code generation a few weeks back. And yes, we (CCPN) are using automatic Python code generation in a major way. Basically we are making data models in...
7
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc....
15
by: Kannan Goundan | last post by:
Maintaining a C++ header file can be painful. I want a way to automatically generate header files from the implementation file. Does anybody know of a program that does this? If not, I'd like...
1
by: Gregor Rot | last post by:
Hi, i am interested in the fastest possible representation of an undirected graph G=(V,E) (vertex, edge representation) in connection with the Kruskal's algorithm (finding a minimal spanning...
17
by: Jef Driesen | last post by:
Suppose I have a datastructure (actually it's a graph) with one template parameter (the property P for each edge and vertex): struct graph<P>; struct vertex<P>; struct edge<P>; I also have...
2
by: tmuldner | last post by:
Hi, I am looking for existing software/description of a directed graph representation of an XML Schema. Any help will be appreciated.
3
by: Alfonso Acosta | last post by:
Hi all, I'm developing a System Description Language (which could be used as an HDL in particular) called ForSyDe: http://www.ict.kth.se/info/FOFU/ForSyDe/ I'm planning to add a backend to my...
25
by: sidd | last post by:
In the following code: int i = 5; ---it goes to .data segment int j; ---it goes to bss segment int main() { int c; int i = 5; ---stack
49
by: Davy | last post by:
Hi all, I am writing a function, which return the pointer of the int. But it seems to be wrong. Any suggestion? int * get_p_t(int t) { return &t; } int main()
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.