Skip to content

simonwuelker/BrainfuckLLVM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is a brainfuck frontend for LLVM.

Running it

Place the brainfuck program of your choice in program.bf, then run

clang++ -std=c++14 -g -O3 codegen.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core` -o codegen

to build the compiler and

./codegen | clang -x ir -

to compile your program (the codegen binary emits optimized LLVM IR which is then compiled by clang).

That's it, really (: I made this as a weekend project, so please excuse the interface being a bit clunky.

About

Brainfuck frontend for LLVM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published