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: Fri, 11 Feb 2005 11:51:01 +1300 Lines: 36 Message-ID: References: <420BD2B3 DOT 4010405 AT bellsouth DOT net> 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: <420BD2B3.4010405@bellsouth.net> X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: goc-cygwin AT m DOT gmane DOT org X-MailScanner-To: cygwin AT cygwin DOT com X-IsSubscribed: yes Charles D. Russell wrote: > Dante Chialvo wrote: I think the following quote is from a message of mine... > > I have the same problem. I have g77, g95 and >grfortran (gfc) > installed (see below). With >heap_chunk_in_mb set to 1024, on a machine > with >1024 MiB RAM< I can run a simple Fortran >program with an array of > up to ~ 1023 MiB. With >g77 & gfc the limit is 156 MiB and beyond that > >it fails with something like > > > >> gfctest.exe (844): *** MapViewOfFileEx(0x224, in_h 0x224) >> failed, Win32 error 6 > > I was using large fortran arrays with no trouble a year ago using the > -Wl,--stack option to enlarge the stack, but it is no longer working for > me. Same machine, but with cygwin upgrades and with SP2 for the XP > pro. Something has changed. I have these problems on Windows 2000. I suspect it is Cygwin and/or gcc that has changed. > Switching to g95 is a poor option. Both g95 and gfortran are currently > beta software, and it is gfortran that is destined to replace g77 in the > next version of gcc. Right now, poor options are the only ones available. There is now a Mingw version of gfortran. Does that help? -- 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/