←back to thread

173 points todsacerdoti | 1 comments | | HN request time: 0.199s | source
Show context
lubosm ◴[] No.44506640[source]
I'd like to point at CALL, a CPU instruction, and its origins. I'm not familiar with this, but it could reveal more than programming languages. The instruction is present at least since first intel microprocessors and microcontrollers were designed.
replies(3): >>44506670 #>>44506728 #>>44509840 #
1. aitchnyu ◴[] No.44506728[source]
I kept scrolling expecting to see this story:

> Dennis Ritchie encouraged modularity by telling all and sundry that function calls were really, really cheap in C. Everybody started writing small functions and modularizing. Years later we found out that function calls were still expensive on the PDP-11, and VAX code was often spending 50% of its time in the CALLS instruction. Dennis had lied to us! But it was too late; we were all hooked...

https://www.catb.org/~esr/writings/taoup/html/modularitychap...