Related articles |
---|
What's wrong with alloca() ? preston@dawn.cs.rice.edu (1991-12-19) |
Re: What's wrong with alloca() ? apang@mindlink.bc.ca (1991-12-15) |
Re: What's wrong with alloca() ? pardo@cs.washington.edu (1991-12-21) |
Re: What's wrong with alloca() ? preston@dawn.cs.rice.edu (1991-12-22) |
Re: What's wrong with alloca() ? wjw@eb.ele.tue.nl (1991-12-23) |
Re: What's wrong with alloca() ? David.Chase@Eng.Sun.COM (1991-12-23) |
Re: What's wrong with alloca() ? pcg@aber.ac.uk (1991-12-26) |
[14 later articles] |
Newsgroups: | comp.compilers |
From: | preston@dawn.cs.rice.edu (Preston Briggs) |
Summary: | why is use of alloca() deprecated? |
Keywords: | C, storage |
Organization: | Rice University, Houston |
Date: | Thu, 19 Dec 1991 22:48:47 GMT |
After reading many man pages and talking to several friends, I get the
feeling that alloca() is becoming unpopular, and in some case unsupported.
Why is this happening? I like it. It's a fast alternative to malloc in
many common situations. In particular, it allows quick deallocation.
It's not difficult to support, though it may cost an extra register.
Support efficient memory management! Require alloca in your next C compiler.
Preston Briggs
[It is my impression that there are environments where you can't reliably
implement alloca. On non-Unix systems, you can't count on there being a
big pool of space just beyond the stack frame, frames may be a linked list
in random places around the address space. I do agree that something like it
is nice to have around. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.