alloca() portability
Chris Torek
chris at mimsy.umd.edu
Thu Nov 15 23:25:31 AEST 1990
In article <27634 at mimsy.umd.edu> I wrote:
>... The main advantage that
> struct xyzzy p[n];
>(where `n' is a variable) has over the alloca hack is that the former
>fails noisily whenever it fails, while the latter fails quietly when
>the compiler happens to disarrange the stack because that saves a few
>instructions.
Oops, `former' and `latter' are reversed above. I meant that the
array declaration fails noisily, while the alloca call fails silently
(for more evidence, see the posting from someone who had this happen
on that most forgiving of machines, a VAX).
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 405 2750)
Domain: chris at cs.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list