This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: enabling /largeaddressaware for cygwin in windows 7 64-bit

On Aug  4 13:37, Charles Wilson wrote:
> 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)

Wouldn't that be an option for peflags?  It's just some info in the
file header...


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]