News for hackers. Stuff that matters.
Re:Why is Rosetta 2 fast? by vips7L on Wednesday November 09, 2022 @12:49PM (#33535243)
Yes, the JIT has more profile guided data as to what your program actually does at runtime, therefore it can optimize better.
Re:Why is Rosetta 2 fast? by gpderetta on Wednesday November 09, 2022 @12:57PM (#33535364)
On the other hand some optimization are so expensive that a JIT just doesn't have the execution budget to perform them.

Probably the optimal system is an hybrid iterative JIT/AOT compiler (which incidentally was the original objective of LLVM).