2 ms·
Right! Coming up with standalone C means coming up with your own versions of hard-to-write simple "system calls" like memove. I debugged a memcopy (taken from
by JoeAltmaier 16y ago
Right! Coming up with standalone C means coming up with your own versions of hard-to-write simple "system calls" like memove.
I debugged a memcopy (taken from Linux! 10 years ago) on a RISC processor - it had 12 bugs in a dozen lines of code. Not designed to run on RISC but shows how hard it can be to get this stuff right.
- sigil 16y ago> simple "system calls" like memove Minor, pet-peevy point: memmove(3) and memcpy(3) are not system calls. (http://en.wikipedia.org/wiki/System_call http://en.wikipedia.org/wiki/System_call)
- JoeAltmaier 16y agoRight; runtime library. Often they are not even that; they appear to be but compilers can replace them bodily with super-optimized code so they get better benchmarks.