[Soot-list] Jimple local to source expression

Patrick Lam plam at sable.mcgill.ca
Sun Aug 26 11:17:23 EDT 2012


On 08/26/2012 03:53 AM, Saswat Anand wrote:
>> I don't know what happens if you don't transform the Jimple at all. I
>> think there's a switch to do that, but I can't remember what it is.
>
> I would be curious to know what happens and what is that flag. It
> would be nice to be able to configure soot not to worry about
> efficient bytecode generation, but preserve the mapping from jimple
> elements to the .class or .java file.

Well, give it a try:

java soot.Main -f j -cp 
.:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/rt.jar -p jb enabled:false ...

That's for Jimple from bytecode.

> It might be nice to use Eclipse's ASTParser to parse Java code and
> build jimple from the AST. Did anybody explore this route?

Soot also has a Java parser, but not Eclipse's. If you want to disable 
cleanup for that parser, try -p jj enabled:false.

Warning: the blowup in the code size may make it impossible to analyze 
the code in a reasonable amount of time and space, though. The code is 
also going to get a bunch of nops, etc.

pat



More information about the Soot-list mailing list