News for hackers. Stuff that matters.
Re:Link-Time Optimisation (LTO) by foobazgt on Friday November 10, 2023 @09:36PM (#38227134)
This is incorrect. The JVM has an explicitly separate link phase [0]. The difference with AOT compilers is that linking is deferred until runtime. Rather than saying there's no link phase, you should think of it like as if your favorite AOT compiled language could support LTO on dlopen.

0) https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-5.ht...

Re:Link-Time Optimisation (LTO) by twic on Saturday November 11, 2023 @01:54PM (#38233306)
The linking mentioned there has nothing to do with the linking in LTO. It happens before JITting, and is neither a barrier to nor an opportunity for optimisation.