[BusyBox] Re: busybox digest, Vol 1 #258 - 3 msgs

Mark Whitley markw at lineo.com
Thu Jan 25 21:24:34 UTC 2001


On Thu, Jan 25, 2001 at 07:37:51PM +0300, Vladimir N. Oleynik wrote:
> Mark Whitley wrote:
> 
> > My apologies, but I'm having a little difficulty understanding what
> > you're saying. Are you saying that it would be better to allocate
> > memory off the heap via malloc(), rather than declare the buffer on
> > the stack at the beginning of a function?
> 
> The current question should be solved for each case individually. 
> (vs) I have resulted reasons just.

Again, my apologies, but I'm still a little unclear here: When you say "case"
do you mean "depending on the size of the buffer" or "depending on the system
requirements" (i.e. the target device where you are installing busybox?)

> In Larry Doolittle patch cp_mv must best usage BSS.

Agreed, I like Larry's approach, but this would be a single stack-or-malloc
toggle that would be applied globally, not on a case-by-case basis (where
"case-by-case" refers to each instance of a buffer).

Mark Whitley
markw at lineo.com





More information about the busybox mailing list