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 To: cygwin AT cygwin DOT com From: Mark Hadfield Subject: Re: Memory for large arrays in cygwin/g77 Date: Tue, 11 Jan 2005 10:17:53 +1300 Lines: 40 Message-ID: References: <41E1A1C0 DOT 10101 AT niwa DOT co DOT nz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 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 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/