• <small id='sGat9'></small><noframes id='sGat9'>

      <i id='sGat9'><tr id='sGat9'><dt id='sGat9'><q id='sGat9'><span id='sGat9'><b id='sGat9'><form id='sGat9'><ins id='sGat9'></ins><ul id='sGat9'></ul><sub id='sGat9'></sub></form><legend id='sGat9'></legend><bdo id='sGat9'><pre id='sGat9'><center id='sGat9'></center></pre></bdo></b><th id='sGat9'></th></span></q></dt></tr></i><div id='sGat9'><tfoot id='sGat9'></tfoot><dl id='sGat9'><fieldset id='sGat9'></fieldset></dl></div>

        <tfoot id='sGat9'></tfoot>
          <bdo id='sGat9'></bdo><ul id='sGat9'></ul>

        <legend id='sGat9'><style id='sGat9'><dir id='sGat9'><q id='sGat9'></q></dir></style></legend>

        反汇编 Java JIT 编译的原生字节码

        Disassemble Java JIT compiled native bytecode(反汇编 Java JIT 编译的原生字节码)

        <legend id='Jc6n7'><style id='Jc6n7'><dir id='Jc6n7'><q id='Jc6n7'></q></dir></style></legend><tfoot id='Jc6n7'></tfoot>

          • <i id='Jc6n7'><tr id='Jc6n7'><dt id='Jc6n7'><q id='Jc6n7'><span id='Jc6n7'><b id='Jc6n7'><form id='Jc6n7'><ins id='Jc6n7'></ins><ul id='Jc6n7'></ul><sub id='Jc6n7'></sub></form><legend id='Jc6n7'></legend><bdo id='Jc6n7'><pre id='Jc6n7'><center id='Jc6n7'></center></pre></bdo></b><th id='Jc6n7'></th></span></q></dt></tr></i><div id='Jc6n7'><tfoot id='Jc6n7'></tfoot><dl id='Jc6n7'><fieldset id='Jc6n7'></fieldset></dl></div>
            • <bdo id='Jc6n7'></bdo><ul id='Jc6n7'></ul>

                <small id='Jc6n7'></small><noframes id='Jc6n7'>

                    <tbody id='Jc6n7'></tbody>
                1. 本文介绍了反汇编 Java JIT 编译的原生字节码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法对 Java 即时编译器生成的本机代码进行汇编转储?

                  Is there any way to do an assembly dump of the native code generated by the Java just-in-time compiler?

                  还有一个相关的问题:有没有什么方法可以在不运行 JVM 的情况下使用 JIT 编译器将我的代码编译为本机代码?

                  And a related question: Is there any way to use the JIT compiler without running the JVM to compile my code into native machine code?

                  推荐答案

                  是的,有一种打印生成的本机代码的方法(需要 OpenJDK 7).

                  Yes, there is a way to print the generated native code (requires OpenJDK 7).

                  不,没有办法使用 JDK 的 JIT 将 Java 字节码编译为本机代码并将其保存为本机可执行文件.

                  No, there is no way to compile your Java bytecode to native code using the JDK's JIT and save it as a native executable.

                  即使这是可能的,它也可能没有你想象的那么有用.JVM 做了一些非常复杂的优化,如果需要,它甚至可以动态地去优化代码.换句话说,它并不像 JIT 将您的代码编译为本地机器语言那么简单,然后在程序运行时该本地机器语言将保持不变.此外,这不会让您制作独立于 JVM 和运行时库的本机可执行文件.

                  Even if this were possible, it would probably not as useful as you think. The JVM does some very sophisticated optimizations, and it can even de-optimize code on the fly if necessary. In other words, it's not as simple as the JIT compiles your code to native machine language, and then that native machine language will remain unchanged while the program is running. Also, this would not let you make a native executable that is independent of the JVM and runtime library.

                  这篇关于反汇编 Java JIT 编译的原生字节码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                  ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                  How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                  Why a sawtooth shaped graph?(为什么是锯齿形图形?)

                      • <bdo id='eHvie'></bdo><ul id='eHvie'></ul>

                        <legend id='eHvie'><style id='eHvie'><dir id='eHvie'><q id='eHvie'></q></dir></style></legend>
                        <i id='eHvie'><tr id='eHvie'><dt id='eHvie'><q id='eHvie'><span id='eHvie'><b id='eHvie'><form id='eHvie'><ins id='eHvie'></ins><ul id='eHvie'></ul><sub id='eHvie'></sub></form><legend id='eHvie'></legend><bdo id='eHvie'><pre id='eHvie'><center id='eHvie'></center></pre></bdo></b><th id='eHvie'></th></span></q></dt></tr></i><div id='eHvie'><tfoot id='eHvie'></tfoot><dl id='eHvie'><fieldset id='eHvie'></fieldset></dl></div>
                          <tbody id='eHvie'></tbody>
                          <tfoot id='eHvie'></tfoot>
                          • <small id='eHvie'></small><noframes id='eHvie'>