[Soot-list] Soot the classpath library

Eric Bodden eric.bodden at mail.mcgill.ca
Fri Jun 16 09:29:06 EDT 2006


>    but why the gnu.* package could shrink ? Is there really no way to
> shiink the java.*
>    javax.* and org.* ?

Well, sometimes it can be that interprocedural optimizations can achive
something. The Java bytecode verifier only rejects bytecode which are
"obviously dead" (such bytecode is in fact invalid). Soot might
sometimes be able to do a better job with identifying dead code but
without looking across method boundaries this will almost never be the
case IMHO. 

So my guess is just that the java.* etc. packages simply do not contain
much (or maybe no at all) dead code. Any of the contained code *could
potentially* used by people using the APIs. For *each fixed* given
program you can eliminate all unused parts by an interprocedural dead
code elimination.

Cheers,
Eric



More information about the Soot-list mailing list