Chapter 4 – Graal Just-In-Time Compiler
- Graal JIT compilation can be divided into two phases: frontend and backend.
The frontend phase is platform-independent compilation, where the code is converted to a platform-independent intermediate representation called High-Level Intermediate Representation (HIR), represented via Graal Graphs. This HIR is optimized in three tiers: High, Medium, and Low.
The backend phase is more platform-dependent compilation, where a Low-Level Intermediate Representation (LIR) is created and optimized at the machine code level. These optimizations are platform dependent.
Refer to the Graal JIT compilation pipeline and Tiered Optimization section for more details.
- Intermediate Representations (IRs) are among the most important data structures for compiler design. IRs provide a graph that helps the compiler understand the structure of the code, identify opportunities, and perform optimizations. Refer to the Graal Intermediate Representation section...