|
|
|
|
|
by rswail
1403 days ago
|
|
Because C was originally for PDP/DEC equipment and the instruction set had standard register access modes including both pre and post increment. So the (for example) strcmp "while (s++ == d++);" made sense as efficient code, because the pointer access and the post increment effectively compiled down to almost a single instruction. https://en.wikipedia.org/wiki/PDP-11_architecture#General_re... |
|