Skip to main content
7 votes
Accepted

Why do we oppose AOT and JIT compilation. Can they be complementary?

You're talking about profile-guided optimization. The Scala native AOT compilers I've seen employ PGO do so in two stages. Basically, the first pass instruments the code to generate a profile file ...
Karl Bielefeldt's user avatar
2 votes

Why do we oppose AOT and JIT compilation. Can they be complementary?

You seem to be missing a critical aspect of JIT: platform independence. As soon as you compile down to machine code AOT, your program isn't platform-independent anymore. That said, the .NET ...
Robert Harvey's user avatar
1 vote

Why do we oppose AOT and JIT compilation. Can they be complementary?

Yes. It's possible and quite common for a program to be recompiled three times: At the developer's machine, the code is compiled to an intermediate language code. This is a form of the code that's ...
Lie Ryan's user avatar
  • 12.4k

Only top scored, non community-wiki answers of a minimum length are eligible