Compiler to translate Java bytecode to platform-independent C code before runtime?

后端 未结 7 2033
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 10:40

I\'m looking for a compiler to translate Java bytecode to platform-independent C code before runtime (Ahead-of-Time compilation).

I should then be able to use a sta

7条回答
  •  清酒与你
    2020-12-28 11:28

    Why do that? The Java virtual machine includes a runtime Java-to-assembly compiler.

    Compilation at runtime can yield better performance, since all information about runtime values is available. While ahead-of-time compilation has to take assumptions about runtime values and thus may emits less fast code. Please refer to Java vs C performance by Cliff Click for more details.

提交回复
热议问题