Goto and Loops - NOT a goto discussion

Started by
19 comments, last by alvaro 11 years, 3 months ago
As Hodgman pointed out, "stack" doesn't imply a particular implementation: It just means it's a data structure where you push things ("stack frames", in this case) at the top and you only ever access the top thing. Whether this is implemented by moving a pointer in an array or by using a sliding window of an array of registers (Sparc) or by a linked list, it's still a stack.
As to the phrase 'on the heap' when referring to the free store, there was never a heap in the technical computer-science sense of the word.
"Heap" means more than one thing. They are both technical computer-science definitions. Actually, the Wikipedia disambiguation page on "heap" has both meanings under "Computer Science".

I think the confusion in this thread has nothing to do with the use of the word "stack": This thread is about the futility of studying what compilers do when undefined behavior is invoked.

This topic is closed to new replies.

Advertisement