FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 08-14-2012, 07:56 PM
Christoph Anton Mitterer
 
Default Bug#684926: linux: disable CONFIG_CC_OPTIMIZE_FOR_SIZE

Source: linux
Severity: wishlist


Hi.

Is there any reasons why you've enabled CONFIG_CC_OPTIMIZE_FOR_SIZE?

>From the help:
> Enabling this option will pass "-Os" instead of "-O2" to gcc resulting in a smaller kernel.

>From gcc:
> Optimize for size. -Os enables all -O2 optimizations that do not
> typically increase code size. It also performs further
> optimizations designed to reduce code size.
> -Os disables the following optimization flags: -falign-functions
> -falign-jumps -falign-loops -falign-labels -freorder-blocks
> -freorder-blocks-and-partition -fprefetch-loop-arrays
> -ftree-vect-loop-version


So we loose all kinds of optimisations just for storage, which really doesn't
count on all but embedded systems.


Cheers,
Chris.


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120814195617.24534.61974.reportbug@heisenberg.sc ientia.net">http://lists.debian.org/20120814195617.24534.61974.reportbug@heisenberg.sc ientia.net
 
Old 08-14-2012, 08:57 PM
Ben Hutchings
 
Default Bug#684926: linux: disable CONFIG_CC_OPTIMIZE_FOR_SIZE

On Tue, Aug 14, 2012 at 09:56:17PM +0200, Christoph Anton Mitterer wrote:
> Source: linux
> Severity: wishlist
>
>
> Hi.
>
> Is there any reasons why you've enabled CONFIG_CC_OPTIMIZE_FOR_SIZE?

This is the recommended default (though not the actual default).

> >From gcc:
> > Optimize for size. -Os enables all -O2 optimizations that do not
> > typically increase code size. It also performs further
> > optimizations designed to reduce code size.
> > -Os disables the following optimization flags: -falign-functions
> > -falign-jumps -falign-loops -falign-labels -freorder-blocks
> > -freorder-blocks-and-partition -fprefetch-loop-arrays
> > -ftree-vect-loop-version
>
>
> So we loose all kinds of optimisations just for storage, which really doesn't
> count on all but embedded systems.

Larger code results in more I-cache misses, so it can be slower after
all.

Let's see your benchmark results.

Ben.

--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120814205747.GV1894@decadent.org.uk">http://lists.debian.org/20120814205747.GV1894@decadent.org.uk
 
Old 08-14-2012, 09:23 PM
Christoph Anton Mitterer
 
Default Bug#684926: linux: disable CONFIG_CC_OPTIMIZE_FOR_SIZE

Hi Ben.


On Tue, 2012-08-14 at 21:57 +0100, Ben Hutchings wrote:
> > Is there any reasons why you've enabled CONFIG_CC_OPTIMIZE_FOR_SIZE?
> This is the recommended default (though not the actual default).
Just a wild guess, but the help text could have just not been updated
(as in many cases).

Anyway,.. I just wanted you to point on this


> Larger code results in more I-cache misses, so it can be slower after
> all.
> Let's see your benchmark results.
Well.. I guess making usable benchmarks there is really difficult,.. as
this likely also depends on the system usage, wouldn't it?


Cheers,
Chris.
 

Thread Tools




All times are GMT. The time now is 02:44 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org