A slightly optimizing brainf*ck interpreter in approx. 500 lines of x86-64 assembly (AT&T/GAS). Tested on Arch, Debian 9 & Windows LXSS Ubuntu. Obviously not portable.
$ gcc bf.s -o bf -no-pie If the command above doesn't work, try it without the no-pie flag.
$ ./bf path_to_bf_programNote: No errors will be printed. The interpreter will simply exit with code
1if something goes wrong (e.g., unbalaced brackets). You can check the exit code usingecho $?.