An open API service indexing awesome lists of open source software.

https://github.com/jacadzaca/brainfuck-asm

A Brainfuck compiler in Clojure
https://github.com/jacadzaca/brainfuck-asm

assembly compiler

Last synced: about 1 month ago
JSON representation

A Brainfuck compiler in Clojure

Awesome Lists containing this project

README

          

# About

A simple brainfuck to NASM assembly compiler, written in Clojure

## Prerequisites
[Make sure you have NASM assembler installed](https://www.nasm.us/)

[Make sure you have lein installed](https://leiningen.org/#install)

## Creating an executable
```bash
lein run INPUT_FILE > output.asm && nasm -g -f elf32 output.asm && ld -m elf_i386 -o runme output.o
```
#### Example
```bash
lein run example.bf > output.asm && nasm -g -f elf32 output.asm && ld -m elf_i386 -o runme output.o
```