Hi!
On Wed, Oct 25, 2000 at 10:34:29AM +0100, Nick Burrett wrote:
Eike Lange eike.lange@uni-essen.de writes:
Thorsten and I use a very (possibly, depending on the source-size) large stack for the "pindent"- program. Are there any limitations for stack-size on some systems, gpc runs on?
Stack sizes can be set by ulimit on some systems. On such systems, it may be set as low as 2Mb. It is set at either 4Mb or 8Mb on all the servers we use here though. For large allocations, it is usually better to use a more permanent storage mechanism
I'm sorry, my question was not detailled enough :-(
We use stacks of this form:
Type StackElementPtr = ^StackElement; StackElement = Record foo : aType; next : StackElementPtr; End;
But 2MB seem to be enough space for most sources :-)
Eike