diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-13 14:39:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-13 14:39:05 -0500 |
commit | 0910b444bcd7ea7f437a3ff48e0e3d2495ead22e (patch) | |
tree | 302f0b5dfef59ff98de24c83ff4e86915b648c55 /init/Kconfig | |
parent | 83bab9a4bbf91af93f45233dc288c4d26308e281 (diff) |
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 <torvalds@osdl.org>
Diffstat (limited to 'init/Kconfig')
-rw-r--r-- | init/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig index 59344616f47..be74adb389e 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -339,7 +339,7 @@ config EPOLL | |||
339 | support for epoll family of system calls. | 339 | support for epoll family of system calls. |
340 | 340 | ||
341 | config CC_OPTIMIZE_FOR_SIZE | 341 | config CC_OPTIMIZE_FOR_SIZE |
342 | bool "Optimize for size" if EMBEDDED | 342 | bool "Optimize for size" |
343 | default y if ARM || H8300 | 343 | default y if ARM || H8300 |
344 | help | 344 | help |
345 | Enabling this option will pass "-Os" instead of "-O2" to gcc | 345 | Enabling this option will pass "-Os" instead of "-O2" to gcc |