for x86 and x86-64, using Asmjit
- Install xmake.
- Clone the repo
$ git clone https://github.com/nomi-san/brainfuck_jit.git
- Build
$ cd brainfuck_jit
$ git submodule update --init --recursive
$ xmake
- Test
$ ./brainfuck_jit hello.bf
> mandelbrot.bf
Implementation | Time |
---|---|
brainfuck (C interpreter) | 9.3s |
bff | 6.5s |
bf2c | 1.5s |
brainfuck_jit (our JIT) | 2.0s |