| 1 |
.. _jit: |
| 2 |
|
| 3 |
JIT documentation |
| 4 |
================= |
| 5 |
|
| 6 |
:abstract: |
| 7 |
|
| 8 |
When a interpreter written in RPython is translated into an executable, the |
| 9 |
executable contains a full virtual machine that can optionally |
| 10 |
include a Just-In-Time compiler. This JIT compiler is **generated |
| 11 |
automatically from the interpreter** that we wrote in RPython. |
| 12 |
|
| 13 |
This JIT Compiler Generator can be applied on interpreters for any |
| 14 |
language, as long as the interpreter itself is written in RPython |
| 15 |
and contains a few hints to guide the JIT Compiler Generator. |
| 16 |
|
| 17 |
|
| 18 |
Content |
| 19 |
------- |
| 20 |
|
| 21 |
.. toctree:: |
| 22 |
:hidden: |
| 23 |
|
| 24 |
overview |
| 25 |
pyjitpl5 |
| 26 |
optimizer |
| 27 |
ruleopt |
| 28 |
virtualizable |
| 29 |
vectorization |
| 30 |
backend |
| 31 |
|
| 32 |
- :doc:`Overview <overview>`: motivating our approach |
| 33 |
|
| 34 |
- :doc:`Notes <pyjitpl5>` about the current work in PyPy |
| 35 |
|
| 36 |
- :doc:`Optimizer <optimizer>`: the step between tracing and writing |
| 37 |
machine code, including the :doc:`Ruleopt <ruleopt>`, which is a DSL for |
| 38 |
specifying peephole optimization rules for integers. |
| 39 |
|
| 40 |
- :doc:`Virtualizable <virtualizable>`: how virtualizables work and what |
| 41 |
they are (in other words how to make frames more efficient). |
| 42 |
|
| 43 |
- :doc:`Assembler backend <backend>`: draft notes about the organization |
| 44 |
of the assembler backends |