this post was submitted on 25 Jan 2024
827 points (98.4% liked)
Programmer Humor
32467 readers
1107 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Anything that's turning complete, has enough ram, and has a c compiler can run Linux. Theoretically, you could program a CPLD to run brainfuck and you could still run Linux.
The mainline part is key.
Yes. Any turing complete processor can perfectly emulate any other turing complete processor, whether it is x86, arm, or riscv. Mainline Linux can then run on this emulated processor without modification.
Damn that's gonna be slow.
But I guess speed was not a criterion.
It's technically correct, the best kind of correct.
I guess it's the difference of can today vs could if this emulator existed...
"boot" is the next important part. Have you tried reading it in full?
Emulated processors can do the same things as physical processors, including booting from disk.
Boot = Bootstrap
If you've loaded up a virtual CPU first that's not a boot of mainline Linux on the CPU.
I respectfully disagree. The turning machine is not doing any set-up before the emulated CPU begins execution, and all of the actual BIOS is done by the emulated CPU.