Disassemble Java JIT compiled native bytecode

前端 未结 5 2095
眼角桃花
眼角桃花 2020-12-15 04:06

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

And a related question: Is there any way to use the JIT compi

5条回答
  •  有刺的猬
    2020-12-15 04:11

    You can't use the JIT to produce a standalone executable, you'd need some other system like GCJ. As far as seeing the JIT generated code, check out the OpenJDK source to look for debugging options. You can build your own copy with those enabled and see what the JIT is doing, or add your own enhancements to output whatever you like.

提交回复
热议问题