[Soot-list] how to optimize with soot

Eric Bodden eric at bodden.de
Thu Oct 20 13:44:41 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Szasz Pal wrote:
> Hi!
> 
> I was searching the internet for some java bytecode optimizer
> program, when I found soot. I tried it with the attached (compiled)
> class file using the following command line:  
> 
> $ java -classpath
> jasminclasses-2.2.2.jar:sootclasses-2.2.2.jar:polyglotclasses-1.3.2.jar
> soot.Main -d out -process-dir in -cp
> in:/usr/java/j2sdk1.4.2/jre/lib/rt.jar -O

Inlining is usually something which is not done on the bytecode level but
ratehr by the just in time compiler, because this can decide far better at
runtime what would be efficient to inline. So I am not sure, if there is a
builtin transformation that would allow you to inline the code as you
suggested. Actually I don't think so, because when doing so you may change
the program semantics (some third party may rely on setField(..) getting
called and for instance subclass A to add functionality etc.).

Hope that helps,
Eric

- -- 
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2424)

iQA/AwUBQ1fXi8wiFCm7RlWCEQIeRwCeK/gmCNEt+cPoorgwFctrvYUfgDMAn1ji
gadXSEy7kPj1fgiYAnK318rk
=wjig
-----END PGP SIGNATURE-----



More information about the Soot-list mailing list