3 ms·
You used 'magically' twice, so the definition you just gave is incomplete. The second use was "GC languages are magically slow." Yes, the C language took advan
by eesmith 8y ago
You used 'magically' twice, so the definition you just gave is incomplete. The second use was "GC languages are magically slow."
Yes, the C language took advantage of byte addressing on the PDP-11, and most computers since then support byte addressing because of C.
That's hardly the same as "C maps closely to a PDP-11", which is the claim you made that I am arguing is a myth.
The link I gave to http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.138.35&rep=rep1&type=pdf http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.138... describes "THE MACHINE MODEL OF UNIX". Nothing about that model is closely tied to the PDP-11 hardware, that I can tell.
C-with-intrinsics does a decent job of matching the machine's instruction set, with a fallback to be able to support machines which don't support specific instructions.
FWIW, no programming language, not even assembly, is able to handle "cache hiearchies, cache lines, memory prefetching, out-of-order execution, etc".