Re:Everything I wish I knew when learning C
by steveklabnik on Monday November 28, 2022 @12:50PM
(#33776848)
The C standard does not use the term "stack," it uses the term "automatic storage duration."
The idea is to separate implementation from semantics. If C required that things with automatic storage duration were stored on the stack, those values couldn't be canonically stored in a register, for example.
The idea is to separate implementation from semantics. If C required that things with automatic storage duration were stored on the stack, those values couldn't be canonically stored in a register, for example.