Max size of function stack in C (gcc)

c

Solution

The stack limit is not imposed by the compiler, but by the operating system. On Unix, you can try using ulimit(1) to increase it.

Problem

I want to know what is the maximum number of (recursive)function calls allowed in gcc C. I have a program which can take stack depth of 400000 function calls each with size of around 200 bytes (so around 80 MB). How can I increase the maximum depth?

Original source

Related problems