[BusyBox] choice for reserving buffers
Manuel Novoa III
mnovoa3 at bellsouth.net
Fri Jan 26 17:08:47 UTC 2001
On Fri, 26 Jan 2001, Manuel Novoa III wrote:
> 2) the kernel does not do lazy allocation (no MMU)
> (NOTE! The following is speculation, since I don't have a machine without
> an MMU. If I'm mistaken, someone please correct me.)
> a) stack mem (coded or alloca) -- limited space -- Smaller stack than
> the MMU case since (I would think) it has to be actually reserved
> for each instance at startup. In that case, exhaustion of the stack
> is a greater possibility.
Forgot to mention: In the above case, if you know you'll have enough stack
memory, it should be better to use it than BSS or malloc since the stack is
entirely allocated at startup. Why allocate more memory for BSS or through
malloc when you have some already allocated on the stack that you aren't using?
Manuel
More information about the busybox
mailing list