ctiedt / cranefuck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A brainfuck compiler using cranelift

This is a compiler for the brainfuck programming language based on the cranelift framework.

Examples

This project includes various examples that should all compile and run (please open an issue if any of them doesn't work for you!).

You can also use the print_bf.py file to generate brainfuck code to print a string.

Linking

This project only provides the compiler. To get an executable for your platform, you will need to link the object file built by the compiler. Scripts are included to link with ld on Linux and link.exe on Windows.

Building on Windows

To compile brainfuck code on windows, you will need MSVC build tools and ucrt.lib. You can install these via the Visual Studio Installer and will need to put the correct path for ucrt.lib into the link.exe invocation in build.ps1.

About


Languages

Language:Rust 82.9%Language:Brainfuck 10.6%Language:Python 3.6%Language:Shell 1.6%Language:PowerShell 1.3%Language:HyPhy 0.0%Language:Befunge 0.0%