2 ms·
I wrote a simple compiler for brainfuck too: https://github.com/skx/bfcc https://github.com/skx/bfcc Compiling to assembly language was pretty fast, but foldi
by stevekemp 5y ago
I wrote a simple compiler for brainfuck too:
https://github.com/skx/bfcc https://github.com/skx/bfcc
Compiling to assembly language was pretty fast, but folding in repeated characters definitely made it faster still. Optimizing the assembly wasn't a particular goal, I guess recognizing loops that zero addresses, and similar, would be a good way to start.