On Wed, 19 Mar 2003 09:56:02 +0100, Mats Westlund (GIS) wrote:

>I have a C program that call a recursive function that causes the program to run out 
>of stack space.
>What compiler options should be used to increase the stack size.
>
>Mats Westlund
>

Hei Mats,

the question is probably better asked here at "[EMAIL PROTECTED]"

But otherwise this is a good place to start:

http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/
http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Code-Gen-Options.html

Look at perhaps:

-fstack-limit-register=reg
-fstack-limit-symbol=sym
-fno-stack-limit




regards,
Per Jessen, Zurich
http://www.enidan.com - home of the J1 serial console.

Reply via email to