ethanavatar / bf-native

A brainf*ck compiler that can output native executables using LLVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bf-native

A brainf*ck compiler written using llvm-lite as a compiler backend

Example

run.sh

#!/bin/bash

set -xe
python "bf-native" hello.bf hello.ll && clang hello.ll -o hello.exe && ./hello.exe
$ ./run.sh 
+ python bf-native hello.bf hello.ll
+ clang hello.ll -o hello.exe
+ ./hello.exe
Hello World!

About

A brainf*ck compiler that can output native executables using LLVM


Languages

Language:Python 82.5%Language:Brainfuck 15.6%Language:Shell 1.9%