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.
On DJGPP, you can set the size with a declaration(!) like the following (no statement necessary). But AFAIR, this memory is then allocated permanently (because DJGPP can't dynamically resize the stack), so using more than, say, 4 or 8 MB would be problematic...
{$ifdef DJGPP} const MinStackSize : Cardinal = $400000; asmname '_stklen'; {$endif}
For large allocations, it is usually better to use a more permanent storage mechanism
Agreed.
Frank