A dedicated coprocessor that performs a just-in-time (JIT) compilation for a method of a Java virtual machine executing in a host processor, to generate, from Java bytecodes of the method, native instructions of the host processor corresponding to the Java bytecodes, the coprocessor comprising:
- constants pool receiving circuitry configured to receive a pointer to a constants pool, of a class to which the method belongs, in a memory unit shared between the host processor and the coprocessor;
- bytecodes pointer receiving circuitry configured to receive a pointer to the bytecodes of the method in the memory unit;
- and
- instructions generating circuitry configured to generate the native instructions corresponding to the Java bytecodes and to store the native instructions into the memory unit.