Jump to content

  • Log In with Google      Sign In   
  • Create Account


Goto and Loops - NOT a goto discussion


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
20 replies to this topic

#21 Álvaro   Crossbones+   -  Reputation: 12385

Like
0Likes
Like

Posted 10 January 2013 - 09:51 AM

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.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS