Antlr - Control Flow Graph
Is it possible to build a control flow graph for a Java program using Antlr? Are th开发者_运维问答ere any resources out there that provide guidelines on doing so? Is there a better approach than using Antlr or are there any kind of eclipse tools that might help?
I haven't worked with Antlr, but I used for a similar purpose the ASM bytecode manipulation framework. There are probably more straightforward ways, but if you want to have a really tailored solution, ASM is worth a look! Moreover, the documentation of ASM is comprehensive.
I'm going to use to Soot framework. That contains all of the provisions I need to perform control flow graph analysis.
精彩评论