This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: size limit for static arrays in cygwin/gcc


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]