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

后端 未结 7 1976
佛祖请我去吃肉
佛祖请我去吃肉 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:21

    There used to be a product called TowerJ, which was essentially a "via C" static compiler for Java, but it is long gone.

    I was told that Sun Labs has created something like this as part of the Sun SPOT project, but I am not sure if it is public.

    @BobMcGee: In the benchmarks you refer to, GCJ indeed loses, but Excelsior JET (which is a 32-bit AOT compiler) beats the 32-bit HotSpot on all three test systems, so I am not sure what was your point.

    But, after all, there are lies, damn lies, and benchmarks. :)

提交回复
热议问题