
How many instructions do you need to successfully compile C code? Let’s see, you’d need some jump instructions, some arithmetic functions, and — of course — move instructions, right? Turns out you only need the move instruction, which — on x86, at least — is Turing complete.
While the effort is a bit tongue-in-cheek, we have to admit that if you were trying to create your own CPU, this would make for a simple architecture and might have power or complexity advantages, so maybe someone will find a practical use for it after all. If you wanted a C compiler for a simple CPU, this wouldn’t require much to emulate at a byte-code level, either.How does it…
External feed Read More at the Source: https://hackaday.com/2021/05/21/one-instruction-to-rule-them-all-c-compiler-emits-only-mov/
CHICAGO—Excited about his final opportunity to make friends as an adult before surrendering to a life of solitude, local man Josh Kelly reported Friday that the adult kickball he joined would be a great way to meet other people who are entirely out of options. “It feels good to do something different and meet some…
From: Instagram <no-reply@mail.instagram.com>

