General discussion

Locked

c flow graph

By anas ·
what does the cflow command in unix do and how does it do what it is supposed to do? pl. give me an example also

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

c flow graph

by dineshr In reply to c flow graph

Cflow is a handy development tool, which gives a transitive relation of each symbols referenced in a particular program. in the sense, for every function/variable a particular function uses, u get the information like where it is declared and whats the type.

heres, the example from CFLOW man pages :
int i;
main()
{
f();
g();
f();
}
f()
{
i = h();
}

the command:

cflow -ix file.c
produces the output
1 main: int(), <file.c 4>
2 f: int(), <file.c 11>
3 h: <>
4 i: int, <file.c 1>
5 g: <>

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums