Meaning of stackoverflow in c programming
This question already has an answer here:
which memory is it?
It is the stack memory, namely that which the program uses to store information during a function call about where to return to. Each time you call a function, the CPU saves the location of what's currently executing onto the stack, then jumps to the new function. When the function is done, it pops that location off the stack and returns there. This is what makes recursion possible.
What is the size of stack that is overflowing?
The actual size of the stack is completely platform-dependent. Many operating systems tend to limit the size of the stack to a few megabytes, but allow that size to be changed. If the system runs out of virtual memory, this can also limit the stack size. Some (much) older CPUs have a fixed-size stack (the Intel 8008 only has 7 stack entries).
链接地址: http://www.djcxy.com/p/2260.html上一篇: 在内存中组织一个C ++程序