Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 505 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 505 Bytes

About

A simple brainfuck to NASM assembly compiler, written in Clojure

Prerequisites

Make sure you have NASM assembler installed

Make sure you have lein installed

Creating an executable

    lein run INPUT_FILE > output.asm && nasm -g -f elf32 output.asm && ld -m elf_i386 -o runme output.o

Example

    lein run example.bf > output.asm && nasm -g -f elf32 output.asm && ld -m elf_i386 -o runme output.o