Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] Caller-callee relationship from source file
- Subject: [Frama-c-discuss] Caller-callee relationship from source file
- From: Julien.Signoles at cea.fr (Julien Signoles)
- Date: Tue, 17 Jan 2012 09:41:28 +0100
- In-reply-to: <CABG-yt0h_y1t_5DtznZPNMHo_kKGiEqbCg2PdquyuSE8rZJUAw@mail.gmail.com>
- References: <CABG-yt0h_y1t_5DtznZPNMHo_kKGiEqbCg2PdquyuSE8rZJUAw@mail.gmail.com>
Hello, On 01/17/2012 08:28 AM, Shakthi Kannan wrote: > I am using frama-c 1.6 on Fedora 15. When using frama-c-gui with a > hello.c file, I am able to view the call graph from Analysis->Show > callgraph. Is there a way to view/get the caller-callee relationship > for each function in a .c file from the command line? > > Please do let me know. The command 'frama-c -cg hello.dot hello.c' dump the syntactic callgraph in dot format into the file hello.dot. That is the very same graph than the one displayed in the GUI through Analysis -> Show callgraph. For the record, this callgraph is syntactic: it ignores any function pointers. If your input program contains such pointers, you would compute the semantic callgraph which uses the results of the 'Value Analysis' plug-in to take function pointers into account. The command line is the same that the above one, but using option -scg instead of -cg. This semantic callgraph is not yet available through the GUI. Hope this helps, Julien
- Follow-Ups:
- [Frama-c-discuss] Fwd: Re: Caller-callee relationship from source file
- From: Julien.Signoles at cea.fr (Julien Signoles)
- [Frama-c-discuss] Fwd: Re: Caller-callee relationship from source file
- References:
- [Frama-c-discuss] Caller-callee relationship from source file
- From: shakthimaan at gmail.com (Shakthi Kannan)
- [Frama-c-discuss] Caller-callee relationship from source file
- Prev by Date: [Frama-c-discuss] Caller-callee relationship from source file
- Next by Date: [Frama-c-discuss] Caller-callee relationship from source file
- Previous by thread: [Frama-c-discuss] Caller-callee relationship from source file
- Next by thread: [Frama-c-discuss] Fwd: Re: Caller-callee relationship from source file
- Index(es):