This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: how do I increase stack space for a program compiled with gcc?
- To: tprince at computer dot org (Tim Prince)
- Subject: Re: how do I increase stack space for a program compiled with gcc?
- From: Joern Rennecke <amylaar at onetel dot net dot uk>
- Date: Sun, 28 Oct 2001 23:44:39 +0000 (GMT)
- Cc: dewar at gnat dot com, gcc at gcc dot gnu dot org, thunting at uci dot edu
Tim Prince wrote:
>
> Several OS where gcc is commonly used do not even provide adequate
> support for changes to default stack size. If you are using redhat 6.2,
> an upgrade may be indicated. Later versions of redhat, so I've been
> told, have a larger, but still immutable, stack region.
Funny, I remember that I could get the stack to change the sign of the address
with some largish allocations sometime around 1995 on an SLS / Slackware /
funet / tsx11 system.
(I used mmap for gcc.c-torture/execute/loop-2[ef].c because that
didn't require root privileges to raise the stack hard limit...)
--
Joern Rennecke | gcc expert for hire
amylaar@onetel.net.uk | send enquiries to: jwr_jobs@onetel.net.uk