[Soot-list] Different Jimple output from command line and Eclipse

Wu Xiaoquan wuxiaoquan07 at otcaix.iscas.ac.cn
Sun Sep 26 01:14:56 EDT 2010


I wrote a simple program using soot to dump the jimple IR of a test program.
When I run the program from the command line with command “java -cp soot-2.
4.0.jar soot.Main -cp .; -pp HelloWorld -f J”.

The outputs are different from the outputs when running from Eclipse. 

I am using the same soot code base. And the JDK version are the same, too.

The experiment code (TestSoot.java) and outputs from command line and
Eclipse are attached. 

I wonder why could this happen? Is it because that the Eclipse would run the
program with different command line option?

 

===================================================

Wu, Xiaoquan 伍晓泉

Technology Center for Software Engineering

Institute of Software, Chinese Academy of Sciences

P.O.Box 8718, Beijing 100190, China 

Email: wuxiaoquan07 at otcaix.iscas.ac.cn

===================================================

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100926/083c3078/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorld-from eclipse.jimple
Type: application/octet-stream
Size: 1379 bytes
Desc: not available
Url : http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100926/083c3078/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorld-from cmd.jimple
Type: application/octet-stream
Size: 1518 bytes
Desc: not available
Url : http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100926/083c3078/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestSoot.java
Type: java/*
Size: 404 bytes
Desc: not available
Url : http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100926/083c3078/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorld.java
Type: java/*
Size: 588 bytes
Desc: not available
Url : http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100926/083c3078/attachment-0003.bin 


More information about the Soot-list mailing list