This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to generate control flow graph from AST
- From: Pop Sébastian <pop at gauvain dot u-strasbg dot fr>
- To: ?????? <luda_s at sina dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 26 Sep 2002 11:03:52 +0200
- Subject: Re: How to generate control flow graph from AST
- References: <200209260626.g8Q6Pxq1008228@ns1.u-strasbg.fr>
Hi,
On Thu, Sep 26, 2002 at 02:26:35PM +0800, ?????? wrote:
> Dear gcc fellows:
> I am working on program slicing of c++,now I need to get the control flow graph of any function or memeber function from AST generated by g++,first I think this is very easy,but when I works on it ,I find there are a lots of things
> to solve,I think someone maybe has done it,can you give me some advice and some document about it ?
Have a look at the tree-ssa branch: the file you look for is gcc/tree-cfg.c
For more information on this branch and how to get it see
http://gcc.gnu.org/projects/tree-ssa/index.html