https://github.com/saecki/brainfuck
A somewhat optimizing brainfuck interpreter and compiler
https://github.com/saecki/brainfuck
brainfuck compiler
Last synced: over 1 year ago
JSON representation
A somewhat optimizing brainfuck interpreter and compiler
- Host: GitHub
- URL: https://github.com/saecki/brainfuck
- Owner: saecki
- Created: 2024-07-07T10:15:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T18:27:02.000Z (about 2 years ago)
- Last Synced: 2025-03-16T15:15:37.283Z (over 1 year ago)
- Topics: brainfuck, compiler
- Language: Rust
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# brainfuck
A somewhat optimizing brainfuck interpreter and compiler
## Usage
```
brainfuck []
modes
format pretty print brainfuck code
ir print the intermediate representation
run interpret the ir
compile generate an ELF64 x86-64 system-v executable
help print this help message
options
-v,--verbose change verbosity level via number of occurences [0..=3]
-u,--print-unoptimized-ir print the ir before optimizations are applied
-d,--debug disable all optimizations
--no-optimize-zeros disable zeroing optimization
--no-optimize-arithmetic disable arithmetic optimizations
--no-optimize-jumps disable redundant jump elmination
--no-optimize-dead-code disable dead code elmination
--no-optimize-init disable state initialization optimization
--no-optimize-simplify disable code simplification
```