Questions about code compilation in runtime. Alternatively, "Just-in-time compilation", "dynamic translation" or "runtime compilation". Used mostly by the runtime environment of tokenizing or interpreted languages.
Questions about code compilation in runtime.
Advantages
- Compilation can be optimized for the current runtime system. This information is normally unavailable in compilation time.
- Compilation to binary code is possible even independently from the CPU architecture.
- Compilation can happen into memory, resulting platform-independent code combined with nearly binary code performance.
Disadvantages
- Compiler must be part of the runtime environment.
- Slow startup time.
- Compile-time errors might appear only in runtime.