Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <01b501c2d608$743889e0$78d96f83@pomello> From: "Max Bowsher" To: "Charles D. Russell" , "cygwin cygwin" References: <000701c2d602$8dab7d20$60c84cd8 AT oemcomputer> Subject: Re: size limit for static arrays in cygwin/gcc Date: Sun, 16 Feb 2003 22:12:11 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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/