On Thu, Mar 12, 2015 at 05:51:00PM +0100, Laurent Bercot wrote:
> On 12/03/2015 16:19, Natanael Copa wrote:
> >netlink listener code that needs to be in memory all the time:
> >http://git.alpinelinux.org/cgit/ncopa/nldev/tree/nldev.c
> 
>  A few comments:
> [...]
>  - It may be worth it to write functions similar to die(), edie()
> and dbg() that don't use stdio, and call _exit() instead of exit().
> If you manage to scrap stdio, you gain 2 pages of text (with the
> musl implementation).

Could you elaborate on how you measure that? With musl only the parts
of stdio you actually use will be linked, and use of exit does not
result in linking of any additional code, since the startup code has
to call exit(main(...)) anyway. In any case exit and its dependencies
are tiny.

Rich
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to