Files

README.md

qmbfc

qmbfc is a brainfuck compiler written in the Myrddin programming language.
qmbfc emits QBE intermediate assembly, which is then translated to x86_64 assembly via the qbe
backend executable.

lmbfc

This is a port of qmbfc which emits llvm IR contributed by Quentin Carbonneaux (The author of qbe).
It serves as a good comparison of the minimum essentials of emitting llvm or qbe IR directly as text.

Building

(Only tested on linux)

Install myrddin from source and then run in the project directory:

$ mbld

You should then have two binaries ./qmbfc and ./lmbfc corresponding to the qbe and
llvm versions of the binary.