/llbf

A Just-In-Time compiler for the Brainf* language (emits LLVM assembly)

Primary LanguageC++MIT LicenseMIT

llbf

Overview

llbf is a Brainfuck compiler with JIT support based on LLVM.

Usage

llbf [options] <input file>

Options

-S Write output in LLVM intermediate language (instead of bitcode)
-f Enable binary output on terminals
-help Display available options
-o <filename> Specify output filename
-run Run the program

Examples

Run a program:

llbf -run program.bf

Compile a program to native assembly language (you can create an executable by running your usual compiler on the .s file):

llbf program.bf | llc -o program.s