A Commentary on the Sixth Edition Unix Operating System
warsus.github.io
warsus.github.io
Looks like it's at line 2238 if anyone is interested in taking a look at it and the code that we are so famously not required to understand.
The crucial thing to note here is that the second comment (the famous one) has nothing to do with the text above about the savu. So we don't even understand 'You're not expected to understand this'.
As dmr explained there was a problem with stack switching when they ported UNIX to the Interdata because stacks of different functions weren't necessarily compatible, and switching out the stack of a function was a bad idea. For this reason you see dummy variables declared in the Interdata port so the stack layout of different functions would match. On the PDP-11 all stack frames were compatible so this was less of a problem. As dmr said, this was cleaned up in v7.
The comment above it is a different matter. The stack is normally saved in u_rsav (iirc) but this is overwritten when a process is swapped out. In that case the stack to restore is saved in u_ssav. This same behaviour is still in v7 and yet the 'not expected' comment is gone. This is what Lions explains somewhere in his book.
https://systemswe.love/archive/san-francisco-2016/you-are-no...
I think Harvard got the first official copy outside of Bell Labs in about 1973 or 4. Memory vague.
It was first used on an 11/45 to run the Intro to Programming course for the hoi polloi, running an interpreter for the PPL language, a local higher level language invented by Chuck Prenner as assisted by Al Spector, who was in my class and who ended up as IBM’s chief scientist of some stripe.
It was also used by Peter Langston to write one of the first (the first?) Empire games. It was so engrossed by that I think Peter and others eventually dropped out after getting lost in it.
There’s something very special about those early C listings. We already used Bliss-10 and -11 from CMU, but C was clearly a different take on low level systems programming.
Had he waited another year, he would have had access to TeX...
Only 13 signals.