Mail Archives: djgpp/1996/11/06/14:19:38
Ronen Friedman wrote:
> Can anyone hint on what the 'stack overflow' mean here?
"Stack Underflow" means that you popped too much. Stack Overflow means
that you pushed too much.
Often, stack overflow just means that you just had too many functions
called at once, or recursed too deeply. One solution is to increase the
stack size; or you could make the function calls shallower.
But you wanted to know about stack underflow. Have you been using any
assembly code? If so, you need to eliminate some extra POPs. If not, I
don't know how you could get this error with plain C code. It's really
not a very common error, because it's hard to get without using assembly
code. Take a look at the assembly code that GCC generates. You might
find the problem there (just look for excessive POPs).
Of course, you might just have a wild pointer somewhere, too...
-- Yamaha / XYZZ
mailto:scriven AT CS DOT ColoState DOT edu
mailto:scriven AT VIS DOT ColoState DOT edu
http://www.vis.colostate.edu/~scriven/
- Raw text -