[Soot-list] 回复: call graph

Cheng Zhang cheng.zhang.stap at gmail.com
Thu Sep 20 08:01:46 EDT 2012


Hi,

As indicated by the error message, please set the -Xmx option (e.g.
-Xmx1000m) to allocate larger heap space.

Best,
Cheng

On Thu, Sep 20, 2012 at 7:39 PM, 水言子 <1241635403 at qq.com> wrote:

> Hi:
>   I am very glad to your replay!But when I put:" java CallGraphs -w
> CallExampleGraph"
> Soot started on Thu Sep 20 19:22:55 CST 2012
> [Call Graph] For information on where the call graph may be incomplete,
> verbose option to the cg phase.
> Soot has run out of the memory allocated to it by the Java VM.
> To allocate more memory to Soot, use the -Xmx switch to Java.
> For example (for 400MB): java -Xmx400m soot.Main ...
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Cheng Zhang"**;
> *发送时间:* 2012年9月20日(星期四) 晚上6:17
> *收件人:* "水言子"<1241635403 at qq.com>;
> *抄送:* "soot-list"**;
> *主题:* Re: [Soot-list] call graph
>
> Hi,
>
> Sorry, I am not familiar with the example "callGraphs" you mentioned.
> But if your purpose is to obtain the call graph in Soot, here are some
> general steps:
> 1. Enable the -w option on the command line fed to soot.Main
> 2. Extend the class soot.SceneTransformer and implement the
> method internalTransform
> 3. In the method internalTransform, use Scene.v().getCallGraph() to obtain
> the call graph.
>
> For more details, you may refer to the survivor guide, especially chapters
> 4 and 7.
> http://www.brics.dk/SootGuide/sootsurvivorsguide.pdf
>
> Best,
> Cheng
>
> On Thu, Sep 20, 2012 at 5:05 PM, 水言子 <1241635403 at qq.com> wrote:
>
>> hello:
>>    I am a new to Soot.I want to know how to run the example "callGraphs"
>> in Soot's examples
>> file ,using common line!
>>    Can you help me!
>>    I need you help!!!
>>    Thanks!
>>
>>
>> _______________________________________________
>> Soot-list mailing list
>> Soot-list at sable.mcgill.ca
>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20120920/5d7e698c/attachment-0001.html 


More information about the Soot-list mailing list