Libjit is a GNU library which can be used to generate machine code on the fly. You can use this library to add Just-in-Time compilation to your interpreter.

This is the commands that is needed to get latest source and compile this library.

[bash]

sudo apt-get install git

sudo apt-get install flex

sudo apt-get install bison

sudo apt-get install make

sudo apt-get install autotools-dev

sudo apt-get install autoconf

sudo apt-get install libtool

sudo apt-get install gcc

sudo apt-get install texinfo

git clone git://git.savannah.gnu.org/libjit.git

cd libjit

./auto_gen.sh

./configure

make

make install

[/bash]

The whole process is tested on a bare Ubuntu 15.10 x64 and takes ~5 minutes.