Hacker News new | ask | show | jobs
by fulafel 15 days ago
JIT vs AOT doesn't really make a difference in this context.
1 comments

It makes a huge difference. JIT has major implications for security. It requires its own distinct mitigation techniques because it necessitates runtime code generation and execution. It's extremely complex.
I won't comment on the rest of what you said here because it doesn't seem like you're a compiler engineer (JITs are vastly different from one another; e.g. HotSpot's C2 is more similar to LLVM than to V8's JIT), but I will just say that AOT compilers and C2 need to rely on intrinsics in exactly the same way, and it matters not a jot for security whether these intrinsics are emitted at runtime or build time (BTW, LLVM can be, and is, used as a JIT, and C2 can be, and is, used AOT).