Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Mark Hadfield <m.hadfield@niwa.co.nz>
Subject: Re: Memory for large arrays in cygwin/g77
Date: Tue, 11 Jan 2005 10:17:53 +1300
Lines: 40
Message-ID: <crurea$eg8$1@sea.gmane.org>
References: <41E1A1C0.10101@niwa.co.nz> <NUTMEGTwp9T4pRFSbNp00000e35@NUTMEG.CAM.ARTIMI.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: clam.niwa.cri.nz
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
In-Reply-To: <NUTMEGTwp9T4pRFSbNp00000e35@NUTMEG.CAM.ARTIMI.COM>
X-IsSubscribed: yes

Dave Korn wrote:
>>From: cygwin-owner On Behalf Of Mark Hadfield
> 
>>Dante R. Chialvo wrote:
>>
>>>2) Use g77 using the Wl option, ie,
>>>
>>> g77 -O2 -o mybigprogram -Wl,--stack,100000000  mybigprogram.f 
>>
>>That's odd. Increasing the stack size definitely does not 
>>work for me. 
>>It just causes the program to terminate silently, with no output.
> 
>   It's more random than that.  The size of the stack isn't the critical issue
> here, since the array isn't on the stack, it's in the .bss section.  The issue
> is the knock-on effects that specifying different initial stack sizes have at
> the time the executable image is mapped into memory, and the subsequent
> allocation or availability of the memory area for the cygheap.

Woooaaa (not "whoa" meaning "stop" but "woooaaa" as in the word used ca 
1995 in movies like "Wayne's World" to indicate a combination of 
surprise and puzzlement).

So, Dave, we've established that Cygwin g77 is not reliable for large 
data arrays. In an earlier message in this thread you cited a couple of 
messages that gave some gory details:

   http://www.cygwin.com/ml/cygwin/2004-10/msg01188.html
   http://www.cygwin.com/ml/cygwin/2004-07/msg00646.html

I must say they're a bit too gory for me to understand.

Is there a cure that would allow a simple-minded, grey-haired Fortran 
programmer like me to rely on Cygwin g77 (or gfortran) for 
moderate-sized computational tasks?

-- 
Mark Hadfield            "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.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/

