INTERPRETING BRAINF*#K ON AN AVR

author
0 minutes, 52 seconds Read

We won’t call it useless, but we will ask why [Dan] wrote a brainfuck interpreter for the AVR

It’s not generating code for the AVR; think of it much more as a bootloader. To run a brainfuck program, [Dan] uploads it to the EEPROM inside his ATMega32, after which the microcontroller takes over and starts performing whatever instruction the brainfuck program tells it to do. because the whole thing runs off the EEPROM, the code size is limited to 1022 bytes. enough for any brainfuck program written by a human, we think.

As for why [Dan] would want an AVR to build an interpreter for a language that is nearly unreadable by humans, we honestly have no idea other than the common, ‘because it’s there’ sentiment. There are some pretty amazing projects out there that use brainfuck, including this genetic algorithm software developer. best now, though, blinkey LEDs are enough to keep us happy, so you can see a video of brainfuck doing its thing on a LED bar display after the break.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *