3 ms·
Minor quibble: The section on local variables assumes a stack. This is completely fair, because the introduction specifies that the articles deal with an x86 w
by Someone 6y ago
Minor quibble:
The section on local variables assumes a stack. This is completely fair, because the introduction specifies that the articles deal with an x86 world and ABI. What gets missed out is the fact that the C standard doesn’t even prescribe (edited) the existence of a stack.
(Just checked the final draft of ISO C2011. As far as I can tell, it doesn’t contain the word stack, and only uses push in the description of (w)ungetc. I also don’t think there’s wording about performance or ordering of addresses of local variables across frames that effectively enforces the use of a stack. I think it is still perfectly fine to use a linked list of environments for local variables)
This is not really a complaint ... it just seemed to me like a missed opportunity to mention something interesting.
:-)
- mangamadaiyan 6y agoPerhaps you meant "prescribe" instead of "proscribe"? :)
- Someone 6y agoYos :). Fixed. Thanks.