delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/16/14:56:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <20030216195610.12201.qmail@web21404.mail.yahoo.com>
Date: Mon, 17 Feb 2003 06:56:10 +1100 (EST)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: RE:size limit for static arrays in cygwin/gcc
To: cygwin AT cygwin DOT com
Cc: worwor AT bellsouth DOT net
MIME-Version: 1.0

"Charles D. Russell" <worwor at bellsouth dot net> wrote:

>    Meanwhile, I am trying to find an equivalent problem in C so that it will
> get more attention.  Unfortunately, I don't know much C.  The subsequent
> program fails with a segmentation violation if one tries to allocate more
> than a few Mb of memory on either my old or my new system.  Why?  What limit
> am I bumping into?
> 
>

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

Danny

http://mobile.yahoo.com.au - Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019