How to implement alloca()?
Nix
nix@esperi.org.uk
Mon Jun 11 19:58:00 GMT 2007
(This is off-topic for this list; please try, perhaps, the gcc-help list
in future.)
On 11 Jun 2007, Neo Jia uttered the following:
> I am wondering about the implementation of alloca function. And I was
> told that GCC has different implementations for different platform to
> support this feature. Is there a way to implement it without the
> supporting from GCC?
It's not possible to implement it completely portably, but you can come
fairly close. Doug Gwyn's portable alloca (included in GNU Emacs as
src/alloca.c and in many other places besides) is a good thing to look
at.
More information about the Libc-alpha
mailing list