[uClibc] Stack vs. Heap allocation
Garrett Kajmowicz
gkajmowi at tbaytel.net
Tue Jul 12 22:19:31 UTC 2005
In the uClibc++ library, there are a number of places where I am currently
using heap allocation for buffers (default size is 32 characters). At what
point in an embedded system is it safe to use stack allocation instead? I'd
be able to elliminate the need for a pointer variable, cut out the calls to
malloc/free and all of the internal maintainance which goes along with that.
However, I'm not certain how well embedded systems handle growth on the
stack, either.
Thanks for the advice.
- Garrett
More information about the uClibc
mailing list