News for hackers. Stuff that matters.
Re:JEP 295: Ahead-of-Time Compilation by mason55 on Thursday October 27, 2016 @02:58PM (#12808409)
It is compiled to intermediate byte code but not machine code. You still need the JVM to JIT the byte code to something the CPU can deal with.
Re:JEP 295: Ahead-of-Time Compilation by jsprogrammer on Thursday October 27, 2016 @03:20PM (#12808749)
Not necessarily. Java byte code can be run directly on a JPM (Java Physical Machine).
Re:JEP 295: Ahead-of-Time Compilation by jerven on Friday October 28, 2016 @01:55AM (#12813453)
Are there any that support the current class file format? ARM jazelle is no longer being worked on. So I would be surprised if there is anything that can do Java SE directly. JavaCard of course being quite different than standard Java.
Re:JEP 295: Ahead-of-Time Compilation by imtringued on Friday October 28, 2016 @05:20AM (#12814256)
Java bytecode is too highlevel for it to be suitable to run directly on hardware. Each instruction can map to multiple machine instructions. A JIT or AOT compiler can optimize the code on a lower level. A hardware implementation cannot do inlining, loop unrolling, hoist array length checks out of a loop, etc...