Lably
Skip to content

Tracing just-in-time compilation

Technique used to optimize the execution of a program at runtime

  • 5 min read
  • 4 chapters

Related on Lably

Through Virtual machine, Execution (computing) and Compiler

Overview

Just-in-time compilation is a technique to increase execution speed of programs by compiling parts of a program to machine code at runtime. One way to categorize different JIT compilers is by their compilation scope. Whereas method-based JIT compilers translate one method at a time to machine code, tracing JITs use frequently executed loops as their unit of compilation. Tracing JITs are based on the behavior that many programs spend most of their time in some loops of the program, termed hot loops, and subsequent loop iterations often take similar paths. Virtual machines that have a tracing JIT are often mixed-mode execution environments, meaning that they have either an interpreter, or a method compiler, along with the tracing JIT.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication