Mail Archives: cygwin/1996/12/03/15:42:56
Hi Pascal, you wrote:
: #define ARRAY_SIZE 2038010
:
: int
: main (void)
: {
: char A [ARRAY_SIZE];
: }
: (bug.exe 1000) exception is: STATUS_STACK_OVERFLOW
The problem is not b16, but that automatic arrays are allocated on the stack.
If you make it static or use malloc/calloc, it should work.
I don't know how to increase the stack limit under Win*, but I do know
that on several unix systems the maximum stack limit is much smaller than
what you can alloc!
Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de)
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -