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] Fwd: Re: Caller-callee relationship from source file


  • Subject: [Frama-c-discuss] Fwd: Re: Caller-callee relationship from source file
  • From: Julien.Signoles at cea.fr (Julien Signoles)
  • Date: Tue, 17 Jan 2012 13:26:37 +0100
  • In-reply-to: <4F153438.6000806@cea.fr>
  • References: <4F153438.6000806@cea.fr>

Message sent this morning but seems to be lost somewhere in the net...

-------- Original Message --------
Subject: Re: [Frama-c-discuss] Caller-callee relationship from source file
Date: Tue, 17 Jan 2012 09:41:28 +0100
From: Julien Signoles <Julien.Signoles at cea.fr>
To: frama-c-discuss at lists.gforge.inria.fr

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