Thread (7 messages) 7 messages, 2 authors, 2010-10-20

Re: [PATCH] net: make ctl_path local and const

From: Joe Perches <joe@perches.com>
Date: 2010-10-20 04:59:39
Also in: bridge, linux-hams, netfilter-devel

On Wed, 2010-10-20 at 12:52 +0800, Changli Gao wrote:
On Wed, Oct 20, 2010 at 11:28 AM, Joe Perches [off-list ref] wrote:
quoted
At least some objects are smaller with static.
$ size net/appletalk/sysctl_net_atalk.o.*
  text    data     bss     dec     hex filename
   324     236      48     608     260 net/appletalk/sysctl_net_atalk.o.withstatic
   344     236      48     628     274 net/appletalk/sysctl_net_atalk.o.withoutstatic
I got the opposite result for the size of the whole kernel image with
allyesconfig.
original: 33531456
patched: 33531424
It seems random.
Not using static requires the compiler to emit
initialization code for any use of the routine
that otherwise would only be done once.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help