[Soot-list] CFG graph preduce and view

Eric Bodden eric.bodden at mail.mcgill.ca
Mon May 7 01:19:18 EDT 2007


A CFG can be created on a per-method basis. So you create a
BodyTransformer and hook that into Soot (see tutorials). In this
transformer, you have access to a method Body "b". Call the following
to get your CFG:

UnitGraph cfg = new ExceptionalUnitGraph(b);

Eric

On 07/05/07, Shahpoor Rahmani <sh_raha at yahoo.com> wrote:
>
> Dear All
>
> Hi, My name is Shahpoor Rahmani, MSc Student in software engineering at IUST
> University (www.iust.ac.ir). in the current semester we have Advanced
> Compiler Course and we have research on
> compiling source in Java. at seem the SOOT project is pretty good choice to
> examine optimizing code and task graph. i study the guide and tutorial of
> this project but i can't
> do first step as creating CFG graph for code, may you help me that how to i
> can create CFG for code for example on "Hello World." program. that is your
> kind.
>
> Yours,
> Shahpoor Rahmani
> MSc Student
> SE Faculty, IUST
> shr at iust.ac.ir
>
>  ________________________________
> Ahhh...imagining that irresistible "new car" smell?
>  Check out new cars at Yahoo! Autos.
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>


--
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


More information about the Soot-list mailing list