Just-in-time in No Time? “Use the Source!”

By Erlang Central | Published: May 28, 2012

Every cool VM-based language today seems to have a just-in-time (JIT) compiler. With the availability of a powerful compiler infrastructure in the form of LLVM, Erlang is close to get a just-in-time compiler of its own. Using LLVM together with its C-frontend, Clang, and automated source-to-source transformations it is possible to generate a JIT-capable Erlang VM which automatically stays in sync with the basic VM.
This talk will provide a brief overview of different just-in-time compilation strategies and a short introduction to the Erlang VM. The main part of the talk is an in-depth tour of the current JIT prototype and the techniques used to build it.
Talk objectives: Explain the basics of just-in-time compilation and describe how automated source-to-source transformations are used to generate a JIT compiler from the VM sources.
Target audience: Developers interested in how a just-in-time compiler works and how JIT support is implemented in the current prototype VM.
Download Presentation Download


  • Frej Drejhammar

    Researcher at SICS
    Swedish Institute of Computer Science

    Frej Drejhammar received his M.Sc. degree in Computer Science from the Royal Institute of Technology (KTH), Sweden in 2001 followed by a Ph.Lic. from the same institution in 2005. He is currently a senior researcher at the Swedish Institute of Computer Science (SICS) in Kista, Sweden. His research interests are programming languages, protocols and tools for reliable and distributed computer systems.

    Frej Drejhammar

Follow Erlang Central:

Have an Erlang Question?

Reach out to the Erlang community