From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8161 invoked by alias); 4 Aug 2011 17:37:41 -0000 Received: (qmail 7972 invoked by uid 22791); 4 Aug 2011 17:37:40 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from out3.smtp.messagingengine.com (HELO out3.smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Aug 2011 17:37:26 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 0A64B210FE for ; Thu, 4 Aug 2011 13:37:26 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Thu, 04 Aug 2011 13:37:26 -0400 Received: from [158.147.67.90] (158-147-67-90.harris.com [158.147.67.90]) by mail.messagingengine.com (Postfix) with ESMTPSA id AB851417B74; Thu, 4 Aug 2011 13:37:25 -0400 (EDT) Message-ID: <4E3AD8D5.1060008@cwilson.fastmail.fm> Date: Thu, 04 Aug 2011 17:37:00 -0000 From: Charles Wilson Reply-To: Charles Wilson User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: enabling /largeaddressaware for cygwin in windows 7 64-bit References: <8C8430B888BACD4E91AC1CBE7000204F1D74558C@FISHERCAT.middlebury.edu> <20110804155355.GE21692@calimero.vinschen.de> In-Reply-To: <20110804155355.GE21692@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-08/txt/msg00130.txt.bz2 On 8/4/2011 11:53 AM, Corinna Vinschen wrote: > On Aug 4 15:19, Amidon, William H. wrote: >> The fortran 90 code I am running keeps running out of memory (virtual >> memory or stack overflow errors) on jobs that the computer should > > The main thread has a 2 Megs stack by default (Windows default). > If you're running out of stack space, there's not much we can do. > There's some way to define the default stacksize in the executable > header but off the top of my head I don't know how to change it. The linker options: `--stack RESERVE' `--stack RESERVE,COMMIT' Specify the number of bytes of memory to reserve (and optionally commit) to be used as stack for this program. The default is 2Mb reserved, 4K committed. [This option is specific to the i386 PE targeted port of the linker] Obviously, the OP would need to pass these 'thru' the gfortran compiler using -Wl,--stack,RESERVE or -Wl,--stack,"RESERVE,COMMIT" (may not work; there's a problem with both ld and gcc using ',' as a delimiter) -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple