of course!

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Nov 24 03:09:15 AEST 1989


In article <1989Nov22.224209.28911 at athena.mit.edu> jik at athena.mit.edu (Jonathan I. Kamens) writes:
>Unless the program is using *lots* of memory and stack space, there is very
>little likelihood of overflowing the stack.

Many implementations have severe constraints on stack size.  For example,
on Gould PowerNode series running UTX-32 (based on 4.3BSD), the stack
size is fixed at link time, typically only a few kilobytes.  Allocating
large auto arrays can easily cause the stack limit to be exceeded.

The three major alternatives are:
	auto arrays, with the problem just mentioned
	static arrays, which waste program data space
	malloc()ed storage, which costs more time.

In most situations I would opt for the latter.



More information about the Comp.unix.wizards mailing list