size limit for static arrays in cygwin/gcc

Max Bowsher maxb@ukf.net
Mon Feb 17 14:52:00 GMT 2003


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/



More information about the Cygwin mailing list