Prof Abimbola Olowofoyeku wrote:
On 23 Jul 01, at 10:00, Russell Whitaker wrote:
[...]
Asked that question some time ago. Frank's reply:
[...]
On Unix-like systems, you can set a resource limit, but you don't do it in normal programs, but rather in the shell settings. (bash: ulimit; csh: limit; syscall: setrlimit(2))
I use bash, and ulimit only allows you to set the maximum stack size. What I need to be able to do is to set a minimum stack size. Does this mean that this cannot be done under Linux?
Well, you can declare a big local variable and fill it with dummy data, so you make sure that some amount of stack it used. But that's quite pointless and probably not what you want.
If you're thinking of the minimum stack size in DJGPP, that's not necessary on most other systems (including Linux) as I said in the mail Russ quoted. The system will allocate stack pages when they are needed.
Russell Whitaker wrote:
Perhaps this should be added to the FAQ
Good idea. If you can make a diff against the current faq.texi, send it to Peter. Otherwise, I'll do it when I get around to it.
However, I'll be out of town until Aug 12. I'll probably read my mail more or less regularly, but only reply in urgent cases.
Frank