This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: size limit for static arrays in cygwin/gcc
- From: "Max Bowsher" <maxb at ukf dot net>
- To: "Charles D. Russell" <worwor at bellsouth dot net>,"cygwin cygwin" <cygwin at cygwin dot com>
- Date: Sun, 16 Feb 2003 22:12:11 -0000
- Subject: Re: size limit for static arrays in cygwin/gcc
- References: <000701c2d602$8dab7d20$60c84cd8@oemcomputer>
Charles D. Russell wrote:
>> Danny Smith wrote
> By default stack reserve is set to 2MB by ld.exe. Try setting stack
> reserve higher, eg,
> -Wl,--stack=0x2000000
> will get you 32MB stack reserve
> -------------------------------------
>
> Thanks. That was a revelation. I thought stack was for pointers and
> automatic variables,
^^^^^^^^^^^^^^^^^^^
Yes, and that's what those massive arrays in your example code are.
Max.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/