[BusyBox] choice for reserving buffers
Tomi Ollila
Tomi.Ollila at sonera.com
Thu Jan 25 11:37:34 UTC 2001
Thursday Jan 25 13:26:49 +0300 2001 Vladimir N. Oleynik <dzo at simtreas.ru> wrote:
> 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!!
How about stack vs xmalloc vs global buffer in BSS? SO everyone may choose
which is best for them. I also can see need for BSS vs stack, but in some
cases xmalloc() might be best???
>
> Only with set this memory. BSS is prezero - good for programing.
Btw how is this prezeroing done? when new memory is demand allocated, the
area is also zeroed at the same time? How does `calloc()' do this? the
same way? (If one does x = malloc(MEMSIZ); if (x) memset(x, 0, MEMSIZ);
probably have to demand all the memory it wants to clear -- or is memset()
somehow smart here ?).
>
> Oh, as I am tired with you.
Hmm, I'm tired of your impolite responses you are writing. I'd quess
you're making some others too. Even you sound very skilled person,
your replying style here doesn't help much?
>
> --w
> vodz
Tomi
More information about the busybox
mailing list