Basic Brainfuck Code Optimization by twobit

p;main(i,s){for(;gets(s);puts(s))for(;i++%90;)if(p=strstr(s,"+-\x00-+\x00<>\x00><"+i%4*3))bcopy(p+2,p,256);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page