Jvm会将编译后的字节码制作成可执行文件 [英] Will Jvm make compiled byte code into executable file
问题描述
我阅读了以下文章:
http://searchcio-midmarket.techtarget.com/definition/即时编译器
http://javarevisited. blogspot.in/2011/12/jre-jvm-jdk-jit-in-java-programming.html
我现在真的很想知道当我上课时会发生什么. JIT再次编译字节码,然后???
I am now really interested in knowing what will happen when I run a class. JIT compiles the byte code again and then ???
JVM会将这些编译后的代码转换为.exe吗?
Will this compiled code be converted into an .exe by the JVM?
推荐答案
就像其他人所说的那样:JIT并不意味着代码已编译为二进制可执行文件(.exe).但是,您可能会考虑的一个有趣的应用程序是 Excelsior JET .
Like the others said: JIT does not mean the code is compiled to a binary executable (.exe). However, an interesting application that you may consider is Excelsior JET.
我还没有读过太多关于它的书,也没有使用过它,所以我还不知道它是如何工作的.但是根据其网页,它是一个AOT(提前)编译器.这意味着它将把您的.class文件编译成一个与系统有关的二进制文件.
I haven't read too much about it and haven't used it, so I don't know exactly how it works... yet. But according to its webpage, it's an AOT (Ahead-Of-Time) compiler. This means that it will compile your .class files to a system-dependent binary file.
您应该尝试一下,看看它的性能如何.根据该网站,如果您的项目属于非商业性质,您将获得免费许可证.
You should give it a try, see how it performs. According to the website, you get a free license if your project is non-comercial in nature.
这篇关于Jvm会将编译后的字节码制作成可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!