Subject: RE: serious bug with CYGNUS GCC b16
From: [email-masked]

3 Dec 1996 15:42:56 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: [email-masked]
Original-CC: [email-masked], [email-masked]
Original-Sender: [email-masked]

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 ([email-masked])
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".