printing ddg for each basic block

Ian Lance Taylor iant@google.com
Thu Jul 23 05:25:00 GMT 2009


Wei Li <weili747@gmail.com> writes:

> I need to print ddg for each basic block in CFG. I used  option -dv.
> However, it gives a DAG for CFG where each node is a basic block. I
> see a function "vcg_print_ddg(FILE* file, ddg_ptr)" in the ddg.c file.
> It means that you can have a ddg for each basic block in the CVG
> format. How can I activate this using gcc options like -dv etc.?

I don't think you can.  I think that all you can do with that function
is call it from the debugger.

Ian



More information about the Gcc-help mailing list