4 ms·
Well, it uses the libc runtime [This is actually mostly incorrect, see comment below by dbaupp], which obliges me to invoke the old quote, "the greatest trick C
by eric_bullington 12y ago
Well, it uses the libc runtime [This is actually mostly incorrect, see comment below by dbaupp], which obliges me to invoke the old quote, "the greatest trick C ever played was to convince the world it has no runtime".
I wish I could track down the originator of that quote, but I have no idea. I'm sure someone here will know.
- dbaupp 12y agoLibcore doesn't use the (entire) libc runtime; IIRC, it essentially just needs the memcpy and memset symbols to be defined.
- heinrich5991 12y agoCouldn't it use librlibc then?
- dbaupp 12y agoYes, that's exactly what librlibc is for and what is used.
- andrewflnr 12y agoWhy not just implement those in Rust too? It seems like you could break the dependency entirely.
- pjmlp 12y agoYes, now we have to make the world understand what a lie it was.
- pjc50 12y agoThe runtime really isn't mandatory, though. It's entirely feasible to have an embedded system where the only code that runs is your own. I'll agree that glibc is a much larger iceberg than people think, though.