[BusyBox] #define -> static const int

Mark Whitley markw at lineo.com
Fri Jan 5 23:09:26 UTC 2001


On Fri, Jan 05, 2001 at 02:51:33PM -0800, Matt Kraai wrote:
> 
> Just to be clear, changing the bss size only effects the memory
> footprint of busybox, not its on-disk size, right?

That is correct. From FOLDOC:

	BSS ==>
	Block Started by Symbol

	(BSS) The uninitialised data segment produced by Unix linkers. The other
	segments are the "text" segment which contains the program code and the
	"data" segment contains initialised data. Objects in the bss segment have
	only a name and a size but no value.

On disk, therefore, just the name and size are stored, but in memory it is the
full size given by the 'size' command.

Again, the virtue of dynamic buffers is that extra memory needed by an applet
is only consumed when that specific applet is run, rather than every time
busybox is invoked.


Mark Whitley
markw at lineo.com





More information about the busybox mailing list