简体   繁体   English

Java的中间码生成器

[英]Intermediate code generator for Java

is there a tool for generating intermediate code for java files?Or are there any resources that could help in generating one?Thanks.是否有为 java 文件生成中间代码的工具?或者是否有任何资源可以帮助生成中间代码?谢谢。

Java source is normally compiled to an intermediate representation known as Java bytecode. Java 源代码通常被编译为称为 Java 字节码的中间表示形式。 If that's what you want, then you just need a Java compiler.如果那是你想要的,那么你只需要一个 Java 编译器。 If you want the JVM assembler code, the you can run the disassembler, javap, over the.class file.如果您想要 JVM 汇编代码,您可以在 .class 文件上运行反汇编程序 javap。

If it isn't either of those, then you'll have to be more specific about which intermediate code you want.如果不是其中任何一个,那么您必须更具体地说明您想要的中间代码。

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

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