From: Linus Torvalds Date: Tue, 13 Dec 2005 19:39:05 +0000 (-0800) Subject: Expose "Optimize for size" option for everybody X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0910b444bcd7ea7f437a3ff48e0e3d2495ead22e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Expose "Optimize for size" option for everybody Let's put my money where my mouth is. Smaller code is almost always faster, if only because a single I$ miss ends up leaving a lot of cycles to make up for. And system software - kernels in particular - are known for taking more cache misses than most other kinds. On my random config, this made the kernel about 10% smaller, and lmbench seems to say that it's pretty uniformly faster too. Your milage may vary. Signed-off-by: Linus Torvalds --- diff --git a/init/Kconfig b/init/Kconfig index 59344616f477..be74adb389ea 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -339,7 +339,7 @@ config EPOLL support for epoll family of system calls. config CC_OPTIMIZE_FOR_SIZE - bool "Optimize for size" if EMBEDDED + bool "Optimize for size" default y if ARM || H8300 help Enabling this option will pass "-Os" instead of "-O2" to gcc