Skip to content

My fast Brainfuck JIT compiler for x86 and x86-64 using Asmjit.

Notifications You must be signed in to change notification settings

nomi-san/brainfuck_jit

Repository files navigation

My fast Brainfuck JIT compiler

for x86 and x86-64, using Asmjit

Getting started

  • 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

Benchmark

> mandelbrot.bf
Implementation Time
brainfuck (C interpreter) 9.3s
bff 6.5s
bf2c 1.5s
brainfuck_jit (our JIT) 2.0s