logoalt Hacker News

JamesTRexxyesterday at 8:44 PM1 replyview on HN

Would and how much would it shrink when if, while, and for were replaced by the simple goto routine? (after all, in assembly there is only jmp and no other fancy jump instruction (I assume) ).

And PS, it's "chose your own adventure". :-) I love minimalism.


Replies

SAI_Peregrinusyesterday at 9:29 PM

What fancy jumps are present in assembly depends on the CPU architecture. But there are always conditional jumps, like JNZ that jumps if the Zero flag isn't set.