Why undefined behavior may call a never-called function (kristerw.blogspot.com) 2 points by fallenhitokiri 8y ago ↗ HN
[–] Bino 8y ago ↗ I think this case shows one of the pitfalls of compiled languages. If it can’t be optimized at compile time we’re out of luck so we aim too far. [–] Bino 8y ago ↗ I once wrote an optimizing brainfuck compiler, it ended up running the bf code (if no input) and just printing the output in a single instruction :P
[–] Bino 8y ago ↗ I once wrote an optimizing brainfuck compiler, it ended up running the bf code (if no input) and just printing the output in a single instruction :P
2 comments
[ 2.8 ms ] story [ 10.6 ms ] thread