The only thing BB would need would be to isolate initialization into separate functions that would be grouped together by the linker. (And an associated link control file.) The usual demand-paged kernel will take care of the rest. Page granularity is large enough that, without grouping like with like, you'd probably end up with other non-init references mixed within the same page(s), resulting in more .text pages remaining resident. Whether or not that was a problem would depend upon your system architecture. (When using direct-mapped NOR flash, for example, you wouldn't care even then. With IDE-accessed flash, or rotating media, or a compressed filesystem, resident text pages would consume valuable RAM.)
-- Jim From: busybox-boun...@busybox.net [mailto:busybox-boun...@busybox.net] On Behalf Of Mike Dean Sent: Friday, March 21, 2014 4:02 PM To: Laurent Bercot Cc: busybox Subject: Re: Ntpd config file support You should've read the full thread. The suggestion was to use dlopen() to fix busybox keeping init code for *everything* in memory when it's not needed, not just for a parser for an ntpd config file. Mike Dean md...@emacinc.com<mailto:md...@emacinc.com> http://www.emacinc.com/ Engineer EMAC, Inc. 618-529-4525 Ext. 330 618-457-0110 Fax 2390 EMAC Way Carbondale, Il 62901 On Fri, Mar 21, 2014 at 4:16 PM, Laurent Bercot <ska-dietl...@skarnet.org<mailto:ska-dietl...@skarnet.org>> wrote: Are you seriously suggesting to add dlopen()ed libraries to busybox to offset the bloat of adding a config file parser to ntpd ? This is the exact kind of "design" that busybox is fighting. Please readhttp://busybox.net/FAQ.html#goals<http://busybox.net/FAQ.html#goals> and http://busybox.net/FAQ.html#tips_memory , as well as http://en.wikipedia.org/wiki/KISS_principle . -- Laurent _______________________________________________ busybox mailing list busybox@busybox.net<mailto:busybox@busybox.net> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox