[BusyBox] choice for reserving buffers
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Jan 25 10:26:49 UTC 2001
Larry Doolittle wrote:
> Completed submission for BB_FEATURE_BUFFERS_GO_ON_STACK,
> compile-time selection of xmalloc() vs. on-stack buffers.
Oh, No!
not xmalloc vs stack.
stack vs BSS!!
> - char baseDestName[BUFSIZ + 1]; /* not declared globally ==
^^^^^^^^^^^^^^^^^^^^^^^^^^^^PATH_MAX
Bad idea BUFSIZ.
> -Thus:
> - - global static buffers are eliminated
Not interessing.
> - - we don't grow the text segment as much because no malloc() call
> is made;
Its only bad algorithm?
> - memory is automatically allocated on the stack when execution
> context
Only with set this memory. BSS is prezero - good for programing.
Oh, as I am tired with you.
--w
vodz
More information about the busybox
mailing list