[Soot-list] process-dir, main-class, entry points and call graph

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Sat Feb 26 02:37:44 EST 2011


Hi Jiangfan.

-main-class and -process-dir are completely different things.

-mail-class is only meaningful when whole-program mode (-w) is
enabled. In this case, -main-class denotes the main class that is used
as the starting point of the call graph. Soot will construct a call
graph for all methods reachable from the main method of this main
class, and will load all bodies of those methods.

-app, on the other hand, is really just meaningful when *not* running
in -w mode. In this case, -app has an impact on which methods Soot
loads bodies for and therefore passes to the registered
BodyTransformers. Without -app, Soot only loads bodies for classes
explicitly mentioned on the command line (and in -process-dir), with
-app Soot also loads bodies for all classes transitively referenced by
the former.

-process-dir is just a quick way of making all classes in a directory
"application classes", i.e. load and process their bodies. Again, this
is only useful when not in -w mode.

Eric
-- 
Dr. Eric Bodden, http://bodden.de/
Principal Investigator in Secure Services at CASED
Coordinator of the CASED Advisory Board of Study Affairs
PostDoc at Software Technology Group, Technische Universität Darmstadt
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt


More information about the Soot-list mailing list