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
- Host: GitHub
- URL: https://github.com/jacadzaca/brainfuck-asm
- Owner: jacadzaca
- License: epl-1.0
- Created: 2020-03-17T19:26:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T20:47:12.000Z (over 6 years ago)
- Last Synced: 2025-10-25T02:02:18.775Z (8 months ago)
- Topics: assembly, compiler
- Language: Clojure
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```