Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/folkertvanheusden/bf-compiler
"Brainfuck" (programming language) compiler suite
https://github.com/folkertvanheusden/bf-compiler
brainfuck brainfuck-compiler brainfuck-transpiler
Last synced: 2 days ago
JSON representation
"Brainfuck" (programming language) compiler suite
- Host: GitHub
- URL: https://github.com/folkertvanheusden/bf-compiler
- Owner: folkertvanheusden
- License: gpl-3.0
- Created: 2021-07-12T08:10:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T22:02:50.000Z (9 months ago)
- Last Synced: 2024-11-17T14:54:18.517Z (2 months ago)
- Topics: brainfuck, brainfuck-compiler, brainfuck-transpiler
- Language: Python
- Homepage: https://vanheusden.com/compilers/brainfuck/
- Size: 231 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
brainfuck to * compiler
-----------------------Invoke with:
python compile_brainfuck_to.py language myprogram.bf > myprogram.ext
Replace language with the target language and 'ext' by the appropriate extension.
Run:
python compile_brainfuck_to.py
to see a list of target languages.
compiling the result
--------------------ARM / X86
---------
as --64 -g --gstabs+ -o myprogram.o myprogram.asm && ld -o myprogram myprogram.oc++
---
g++ -Ofast -fomit-frame-pointer -march=native myprogram.cppJava
----
javac myprogram.javaThis produces a "BrainfuckProgram.class"-file which can be executed by:
java BrainfuckProgram
PDP11
-----
pdpy11 myprogram.asm -o myprogram.rawPdpy11 (the assembler) can be obtained from https://github.com/pdpy11/pdpy11
Rust
----rustc -C opt-level=3 program.rs
SPARC
-----
In Solaris:as -Q n -b -L myprogram.s
ld a.out -o myprogram
./myprogram(C) 2016-2024 by [email protected]