>
> Thank you Dave,
>
> the ulimit -s command solved my problem
>
> /Mats
Glad to help!
- Dave Rivers -
--
[EMAIL PROTECTED] Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
>
> >
> > 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
> >
> >
> > Mats,
> >
> > There is no compiler option... the amount of runtime stack
> > space is not determined by the compiler, but by the operating
> > system systems.
> >
> > The general setting allow for generous stack space, so,
> > first make sure you're not infinitely recursing. If it's
> > infinite - no amount of stack space will fix it!
> >
> > If it's not infinit - I typically direct people to the
> > ulimit man page (man ulimit), which points you to the
> > shell (bash), and the system configuration programs (sysconf.)
> > The reason your shell gets involved is there is typically
> > a built-in shell command that adjusts the various
> > limits.
> >
> > - Dave Rivers -
>