Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Lindahl <lindahl@cs.virginia.edu>
To: axp-list@redhat.com
Subject: Re: The stack and digital unix binaries
Date: Tue, 29 Jun 1999 15:26:42 -0400 (EDT)	[thread overview]
Message-ID: <199906291926.PAA08317@adder.cs.Virginia.EDU> (raw)
In-Reply-To: <37790E64.9F88154E@lanl.gov> from "Neil Carlson" at Jun 29, 99 12:20:20 pm

> I have a large simulation code which I compile under digital unix
> and then move the executable to an alpha/linux machine to run.
> I frequently exceed the stack size, whose hard limit is hardcoded
> to 8MB in include/linux/sched.h (look for _STK_LIM).  The comments
> written there suggest that this ought to be adequate.  Perhaps, but
> it depends on how it's used -- do the digital compilers use the stack
> differently than gcc under linux would?

You can increase your stack using the ulimit command.

Try:

ulimit -a
ulimit -Ha
ulimit -s new-size

If you don't like the hard limit, then you can raise it by editing
/etc/security/limits.conf (may be a RedHat-only hack, I dunno.)

Alternately, you can tell Compaq Fortran to use static variable
allocation. Most fortran compilers (like Compaq fortran and g77) allow
you to pick stack or static.

-- g


  reply	other threads:[~1999-07-08 22:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-29 18:20 The stack and digital unix binaries Neil Carlson
1999-06-29 19:26 ` Greg Lindahl [this message]
1999-06-29 22:46   ` Neil Carlson
1999-06-30  2:52     ` Greg Lindahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox