Re: CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Oct 22, 2009 at 5:54 PM, André Ramaciotti da Silva
<andre.ramaciotti@xxxxxxxxx> wrote:
> On Thu, Oct 22, 2009 at 11:06:32PM +0200, Thomas Bächler wrote:
>> Sascha Siegel schrieb:
>> >Hi,
>> >
>> >can someone tell my whats the reason for building the arch-kernel
>> >with "# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set"?
>> >
>> >Thank you!
>>
>> Optimizing for size sacrifices performance. Read the gcc
>> documentation about the -O{1,2,3,s} options.
>>
>
> I don't know if it is as simple as that. I recall reading somewhere that
> under certain circumstances a binary optimized with -Os is faster than a
> binary optimized with -O2.
>
> The reason for this is that a smaller binary may load faster than a big
> one and cause less page faults.

I really doubt the kernel is even close to the boundary for something like this


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux