04 Compilation Strategies
04 Compilation Strategies
e Compilation Strategies E
An interpretor reads code and immediately executes that code. It works by fetching,
analyzing, and executing one instruction at a time.
Programs are compiled (translated) into native code during a compilation process.
Ahead-of-the-time (AOT) compilation: produce a binary file that can be run in the
targeted architecture.
Just-in-time (JIT) compilation: involves compilation during execution of a program
(at runtime) rather than before execution.
Bytecode is a portable low level code. Contrary the assembly language, there is no existing
physical machine that understand this language.
Transpile the input language into an existing language. Then use the existing compiler for
this language.
AOT JIT
Bytecode VM
Interpretors