[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building a CallGraph
On Mon, Jun 30, 2003 at 06:41:34PM -0400, Ankush Varma wrote:
> Is it possible to specify a given method as an entry point and build out a call
> graph from it, instead of building one for the entire scene?
This is what Soot currently does, using a default set of entry points.
You can override this default set by calling Scene.v().setEntryPoints()
with a List of SootMethod(s) before the call graph gets built. The
default entry points are listed in
soot.jimple.toolkits.callgraph.EntryPoints.
To build a call graph which includes all methods of all application
classes, use the switch: -p cg all-reachable.
Ondrej
> A case where this is useful is if there is a large scene, but the application
> program is very simple, then a small call-graph ought to do the trick, rather
> than building a huge one out from every method of application/library classes in
> the scene.
>
> Any ideas on how this might be done?
>
> Ankush
>
> "No trees were killed in the creation of this email :
> however, a vast number of electrons were incredibly inconvenienced."
>
> -------------------------------------------------
> Ankush Varma
> Ph.D. Student / Graduate Research Assistant
> DSP-CAD Research Group
> Department of Electrical and Computer Engineering
> University of Maryland, College Park.
>
> email:
> ankush@eng.umd.edu
> not_ankush@yahoo.com
>
> Home: 301-439-0438 Office: 301-405-3089
> --------------------------------------------------
>