简体   繁体   English

Antlr - 控制流图

[英]Antlr - Control Flow Graph

Is it possible to build a control flow graph for a Java program using Antlr?是否可以使用 Antlr 为 Java 程序构建控制流图? Are there 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?有没有比使用 Antlr 更好的方法,或者是否有任何可能有帮助的 eclipse 工具?

I haven't worked with Antlr, but I used for a similar purpose the ASM bytecode manipulation framework .我没有使用过 Antlr,但出于类似目的,我使用了ASM 字节码操作框架 There are probably more straightforward ways, but if you want to have a really tailored solution, ASM is worth a look, Moreover.可能有更直接的方法,但如果你想要一个真正量身定制的解决方案,ASM 值得一看,此外。 the documentation of ASM is comprehensive. ASM 的文档很全面。

I'm going to use to Soot framework.我将使用 to Soot 框架。 That contains all of the provisions I need to perform control flow graph analysis.这包含我执行控制流图分析所需的所有规定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM