[Soot-list] build AST
Paritosh Shroff
pari at cs.jhu.edu
Fri Feb 17 11:52:29 EST 2006
Pat, Chris:
My program analysis algorithm is stack-based so I don't want to use
Jimple, as the latter is a 3-address representation. But I can use baf
or probably even Dava (as Chris pointed out). By the way, there doesn't
seem to be any documentation about Dava on Soot's homepage, is there
some place where I can look up some example code employing Dava?
Also, my analysis is a whole program analysis, so I need to have a
collection of AST's of all the class files in either baf or Dava
representation. I can then define visitors to visit the nodes on these
AST's and perform my analysis.
Thanks for all your help!
Cheers,
Pari
Patrick LAM wrote:
>On Thu, 16 Feb 2006, Paritosh Shroff wrote:
>
>
>
>>I want to use Soot to parse the java bytecode and give me the AST
>>(abstract syntax tree), which I can then use to perform my analysis. I
>>have read all the tutorials on the homepage of Soot, but they mostly
>>describe how to use Soot to perform optimizations using the Jimple format.
>>
>>
>
>Chris is mostly right. You can also do analyses on the Dava intermediate
>representation, which is an abstract syntax tree synthesized from the
>class files. But Jimple is probably what you actually want to use. It
>would help if you mentioned what properties you were interested in.
>
>pat
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20060217/749b1754/attachment.htm
More information about the Soot-list
mailing list