From: dahms@ifk20.mach.uni-karlsruhe.de
Subject: RE: serious bug with CYGNUS GCC b16
3 Dec 1996 15:42:56 -0800
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <009AC4FC.C37EA2A0.5525.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de>
Original-To: pascal.obry@der.edfgdf.fr
Original-CC: gnu-win32@cygnus.com, dahms@ifk20.mach.uni-karlsruhe.de
Original-Sender: owner-gnu-win32@cygnus.com

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@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
