Hacker News new | ask | show | jobs
by jhonsrid 520 days ago
You can write a program that takes BF code as input and outputs valid C source that would execute it in less than 20 lines of well formatted ANSI C using nothing more than putchar, getchar, while, pointer inc/dec and dereference, so I can imagine a full compiler for it would be super simple too.

(Though I bet an optimising compiler would be a _little_ more complicated) ;)