delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/06/16:57:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
To: cygwin AT cygwin DOT com
From: Mark Hadfield <m DOT hadfield AT niwa DOT co DOT nz>
Subject: Re: Memory for large arrays in cygwin/g77
Date: Fri, 07 Jan 2005 10:56:40 +1300
Lines: 26
Message-ID: <crkc6q$lov$1@sea.gmane.org>
References: <cri2e3$mmo$1 AT sea DOT gmane DOT org> <NUTMEG8GhLxaYAeNbGC00000cd3 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: clam.niwa.cri.nz
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
In-Reply-To: <NUTMEG8GhLxaYAeNbGC00000cd3@NUTMEG.CAM.ARTIMI.COM>
X-IsSubscribed: yes

Dave Korn wrote:
>   It may also be possible to workaround the problem by fooling around with the
> default stack allocation size; this can have knock-on effects which clear up the
> reserved area of the process' memory map that error message is complaining
> about.  
> 
> See 
> http://www.cygwin.com/ml/cygwin/2004-10/msg01188.html
> or 
> http://www.cygwin.com/ml/cygwin/2004-07/msg00646.html for the full gory details,
> and look up the "-Wl,--stack=XXXX" option.  You might need to play around with
> values for the stack size until you find one that helps!

Thanks for the "full gory details" links. They're a bit beyond me at 
first glance, but I will read them more carefully later. In the 
meantime, I can report that mucking about with the stack size via
"-Wl,--stack=XXXX" doesn't do anything useful to increase the 
maximum-array size supported by Cygwin g77 and gfc. Increasing it by, 
say, a factor of 2 over the default (2 MiB IIRC) causes the program to 
exit with no error message but no output. Smaller increases might allow 
a few extra bytes, but no more than that.

-- 
Mark Hadfield            "Ka puwaha te tai nei, Hoea tatou"
m DOT hadfield AT niwa DOT co DOT nz
National Institute for Water and Atmospheric Research (NIWA)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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