Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1738831

Re: b43: make const arrays static, reduces object code size

From Kalle Valo <kvalo@codeaurora.org>
Newsgroups linux.kernel
Subject Re: b43: make const arrays static, reduces object code size
Date 2017-09-25 10:40 +0200
Message-ID <utx5M-3Sb-13@gated-at.bofh.it> (permalink)
References <usydA-7Kc-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Colin Ian King <colin.king@canonical.com> wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> Don't populate const arrays on the stack, instead make them static.
> Makes the object code smaller by over 60 bytes:
> 
> Before:
>    text	   data	    bss	    dec	    hex	filename
>   14816	   1296	      0	  16112	   3ef0	b43/phy_ht.o
> 
> After:
>    text	   data	    bss	    dec	    hex	filename
>   14551	   1496	      0	  16047	   3eaf	b43/phy_ht.o
> 
> (gcc 6.3.0, x86-64)
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Patch applied to wireless-drivers-next.git, thanks.

96cbe3d638e4 b43: make const arrays static, reduces object code size

-- 
https://patchwork.kernel.org/patch/9966415/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] b43: make const arrays static, reduces object code size Colin King <colin.king@canonical.com> - 2017-09-22 17:40 +0200
  Re: b43: make const arrays static, reduces object code size Kalle Valo <kvalo@codeaurora.org> - 2017-09-25 10:40 +0200

csiph-web