This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]