| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| 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 |
| Message-ID: | <4E3AD8D5.1060008@cwilson.fastmail.fm> |
| Date: | Thu, 04 Aug 2011 13:37:25 -0400 |
| From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
| Reply-To: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
| User-Agent: | Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: enabling /largeaddressaware for cygwin in windows 7 64-bit |
| References: | <8C8430B888BACD4E91AC1CBE7000204F1D74558C AT FISHERCAT DOT middlebury DOT edu> <20110804155355 DOT GE21692 AT calimero DOT vinschen DOT de> |
| In-Reply-To: | <20110804155355.GE21692@calimero.vinschen.de> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| 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 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |