by rollcat · 3y ago · 0 comments
> What is this useful for?
Hard disagree with "nothing"! This could be a stage 1 compiler for running an entire OS from source. Tcc already demonstrated this running Linux, but it takes significantly more than 512 bytes.
Other than "look at really cool thing I made", I'm thinking it might have some nice Chain-of-Trust use cases. A 512-byte binary isn't hard to verify by hand. Vs. nobody can hope to verify that a modern multi-MB `cc` binary doesn't contain a back-door-maker for someone less trustworthy than Ken Thompson.
I suggest you reconsider [1] & [2], but apply the thought process in the context of a physical CPU. The problem is not source access or patents, the problem is you don't have an electron microscope to look at these nanometers-wide elements; even if you did, it's still an insanely difficult process.
[1]: https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_Ref...
Considering how much denser RISC-V is, it wouldn't even be a feat.
Obviously, if you want to read from a file, you have all the overhead of understanding a filesystem.
No need. Read & write cluster/sector or block/page directly; BIOS already does that.
I don't really get your objection. 512bytes is rather arbitrary, yes. But I don't see why it becomes less relevant when it's ram.