Can someone explain to me in laymen terms how each language determines which address to use for the memory stack?
I've got bad news for you: this isn't a language issue, it's a compiler/OS issue. To give you an idea: Linux and Windows handle memory management completely differently. To make matters worse, you have languages like C++ which can be compiled on Linux, Windows, x86 machines, TI-89 calculators, and even on embedded chips that have nothing to do with an OS. With all the different types of memory and environments, it isn't reasonable to expect that you can easily answer that question.
So, according to what WingedPanther said, it would be very hard to know how the stack works...... I guess for one language and one OS it may not be that hard, correct?
Basicly, the stack is a pool of memory that the program can get access to. Worry about how to issue commands to acquire memory in your language. Each language does it differently.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks