This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
printing cfg
- From: Bob Rossi <bob_rossi at cox dot net>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 1 Aug 2007 15:03:04 -0400
- Subject: printing cfg
Hi,
I'm trying to print the cfg so that I can visualize it. I have a simple
file,
$ cat foo.c
int
foo (int param)
{
param++;
if (param)
param++;
return param;
}
I run the command,
$ gcc -fdump-tree-vcg-blocks -c foo.c
and then I run,
xvcg *.vcg
which displays a picture of the cfg. It appears for some reason, that
the expressions in the basic blocks just show things like,
modify_expr (4)
cond_expr (5)
Is there a way to make it show the actual expressions in the code
instead? Also, is there a native way to display this information using
dot instead?
Thanks,
Bob Rossi