printing cfg

Diego Novillo dnovillo@google.com
Wed Aug 1 19:18:00 GMT 2007


On 8/1/07 3:03 PM, Bob Rossi wrote:

> Is there a way to make it show the actual expressions in the code
> instead?

Other than changing the code in tree-cfg.c:tree_cfg2vcg(), not really.
Also, this dump is fairly static in that it only happens right after the
CFG is built for the first time (before any optimizations).

> Also, is there a native way to display this information using
> dot instead?

Perhaps it would be easier to post-process the dumps that contain basic
block information (-fdump-tree-all-blocks).  I generally use the
attached script to get the CFG out of an arbitrary pass.  It's very
simplistic, but it could be adapted to do what you want.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dump2dot
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20070801/7be9c56c/attachment.ksh>


More information about the Gcc mailing list