Re:Should you learn C to “learn how the computer works”?
by jpindar on Tuesday October 02, 2018 @02:45PM
(#18124480)
For your definition of 'computer', perhaps. Many microcontrollers have the stack defined by the hardware.
[ Parent
| on HN ]
Re:Should you learn C to “learn how the computer works”?
by geofft on Tuesday October 02, 2018 @02:54PM
(#18124571)
And some, such as RISC-V, have no predefined stack pointer at all. (Push and pop are implemented by doing them manually; call is implemented by the jump instruction optionally taking an argument for a register to use as the stack.) C, at best, teaches you the C abstract machine, which supports both of these concrete implementations equally well.