Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maplant/x64-brainfuck-compiler
A very simple and slightly optimized compiler for the brainfuck programming language.
https://github.com/maplant/x64-brainfuck-compiler
Last synced: 27 days ago
JSON representation
A very simple and slightly optimized compiler for the brainfuck programming language.
- Host: GitHub
- URL: https://github.com/maplant/x64-brainfuck-compiler
- Owner: maplant
- Created: 2012-01-05T02:47:35.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-05T02:49:58.000Z (about 13 years ago)
- Last Synced: 2023-03-18T02:45:42.423Z (almost 2 years ago)
- Language: Python
- Homepage: x64BF
- Size: 89.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
bf.py
A very simple, slightly optimized brainfuck compiler for x64.
Reads from standard input and writes to standard output.By default, the stack size is set to 60000, which is twice the
size used by the original implementation. This is because, unlike
in the original implementation, the data pointer starts in the
middle, rather than the beginning.Data is stored in the stack and initialized to 0 at runtime.
Register assignments:
%rdi - the data pointer.
%rsp and %rbp - stack and base pointers respectively, as per usual.Commands for assembling and linking output (may vary):
as --64 -o prog.o prog.s
ld -o prog prog.oIssues:
I suck at assembler of all kinds, so this is all terrible. Joy!(C) 2011 Matthew Plant