On Thu, 3 Jul 2003 about 15:12 +0900 UTC Stephen J. Turnbull wrote:
>>>>> "Matthias" == Matthias Neubauer
<neubauer(a)informatik.uni-freiburg.de> writes:
Matthias> XEmacs 21.4.9 "Informed Management" configured for
`powerpc-apple-darwin6.6'.
Darwin has by default a small stack. Make sure it is at least 8MB
(eg, using ulimit in bash). If you know how to increase the stack
inside of XEmacs, a patch would be welcome (I don't know whether Vin
would apply it to 21.4 or not, but I expect anything that's reasonably
portable would be applied to 21.5). Also, there may be some
improvements in regexp stack handling for 21.4.12 or so.
Increasing stack isn't a guarantee. You can pretty much guarantee no
crashes in the regexp code by building XEmacs with -DREGEX_MALLOC=1
added to CFLAGS.
I have not tried the apple ld parameter, but you can specify a stacksize for
programs at link time. I didn't see what happens if that size is greater
than the default soft limit.
%man ld
-stack_size value
Specifies the size of the stack segment value,
where value is a hexadecimal number rounded to the
segment alignment. The default segment alignment
is the target pagesize (currently, 1000 hexadecimal
for the PowerPC and 2000 hexadecimal for i386). If
-stack_addr is specified and -stack_size is not, a
default stack size specific for the architecture
being linked will be used and its value printed as
a warning message. This creates a segment named
__UNIXSTACK .
--
rdr