lkml.org 
[lkml]   [2018]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mt76: make const array 'data' static, shrinks object size
From
Date
On 2018-12-30 14:26, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Don't populate the const array 'data' on the stack but instead
> make it static. Makes the object code smaller by 78 bytes:
>
> Before:
> text data bss dec hex filename
> 5438 1080 0 6518 1976 mediatek/mt76/mt76x2/usb_mcu.o
>
> After:
> text data bss dec hex filename
> 5296 1144 0 6440 1928 mediatek/mt76/mt76x2/usb_mcu.o
>
> (gcc version 8.2.0 x86_64)
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied, thanks.

- Felix

\
 
 \ /
  Last update: 2018-12-31 15:42    [W:0.039 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site