How to increase the stack size in SCO5

Uday Kumar B S Udaybs@bflsoftware.com
Thu May 18 04:58:00 GMT 2000


Hello,
           I am writing a complex application in SCO5 environment, in which 
I am spawning multiple threads simultaneously to process the request. I am 
using gcc compiler and FSU thread library. The number of threads spawned 
simultaneously varies from 1 - 30. I am seeing a huge memory leak when ever 
there are more than 5 threads spawned simultaneously. I think it is because 
of the stack restriction. Is there any option available in the gcc compiler 
to increase the stack size.
I am using 2.95apr version of gcc. I am writing this application for x86 
machines.
When I checked your web site I got a option fno-stack-limit to make the 
stack size unlimited.
But when I include this option in my makefile it gave "cc1plus : invalid 
option - fno-stack-limit", but the thing is if I include fstack-check 
option in the makefile, it will compile properly.
I would appreciate if anybody reply to this mail with solution.

Waiting for your kind response

Regards,
Uday.



More information about the Gcc-bugs mailing list