bc is a small brainfuck compiler I wrote, it's less than 370 lines of code in a single file and translates brainfuck text files into ELF binaries for x86_64 linux. It even optimizes multiple +- and <> operations after each other into add instructions instead of inc and dec instructions!
bc is a small brainfuck compiler I wrote, it's less than 370 lines of code in a single file and translates brainfuck text files into ELF binaries for x86_64 linux. It even optimizes multiple +- and <> operations after each other into add instructions instead of inc and dec instructions!