[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Changes in udhcp
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2007-11-30 7:25:35
Message-ID: 200711292325.35567.vda.linux () googlemail ! com
[Download RAW message or body]

On Thursday 29 November 2007 06:37, Ralf Friedl wrote:
> In networking/udhcp/leases.c I found the comment "= { 0 } helps gcc to
> put it in rodata, not bss".
> Why is it desirable to have it in rodata instead of bss? rodata consumes
> space in the file while bss doesn't.

If you'll start 20 instances of various applets, you will have
20 copies of that data if it is in bss. It's especially annoying
on NOMMU cpus, which also happen to be very memory constrained.

Better to pay that price once and keep it in rodata.
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic