This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: how do I increase stack space for a program compiled with gcc?


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


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