On Friday 11 July 2008 17:08, Vladimir Dronnikov wrote: > Hello, Denys! > > A lame question suddenly came: if I run N of statically-compiled-BB applets > I use N*sizeof(BB) bytes of memory, or just 1*sizeof(BB)?
On most architectures, you would use slightly less than 1*text + N*(data+bss) + N*stack + (every running applet's malloc'ed data) In latest busybox, data+bss is around 7kb and stack is below 16k (I hope). On NOMMU, "slightly less than" does not apply. On really stupid CPUs which cannot even share text segment you end up using N*text. Maybe on some of those CPU compiling with LIBBUSYBOX=y helps to go back to 1*text. -- vda _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
