public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gabriel Paubert <paubert@iram.es>
To: Sergei Poselenov <sposelenov@emcraft.com>
Cc: Andrew Haley <aph@redhat.com>, gcc@gcc.gnu.org
Subject: Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?
Date: Thu, 17 Jan 2008 12:14:00 -0000	[thread overview]
Message-ID: <20080117110739.GB17343@iram.es> (raw)
In-Reply-To: <478E0CC7.6060107@emcraft.com>

On Wed, Jan 16, 2008 at 04:55:19PM +0300, Sergei Poselenov wrote:
> Hello,
> 
> I've just noted an error in my calculations: not 40%, but 10%
> regression (used gdb to do the calculations and forgot to convert
> inputs to float). Sorry.
> 
> But the problem still persists for me - I'm building an embedded
> firmware (U-Boot) and it doesn't fit into the reserved space
> anymore.
> 
[snipped]

> As for the CSiBE results - the average regression is
> 3%, including top 3 winners:
> 100% (32768 vs 16384 for "linux-2.4.23-pre3-testplatform - 
> arch/testplatform/kernel/init_task")

A change from an exact power of 2 to the next one looks very
suspiscious: I seriously doubt that it is a code generation
or instruction choice issue. While there might be a relatively
small increase in size inherent to the compiler, it looks like 
it then goes to a "round to the next power of 2" step.

Do you set the right options for your particular processor
(-Os might not override some scheduling decisions and the
default target processor might have changed between GCC
releases)?

	Regards,
	Gabriel

  parent reply	other threads:[~2008-01-17 11:08 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16 11:24 Sergei Poselenov
2008-01-16 12:15 ` Duncan Sands
2008-01-16 12:19   ` Sergei Poselenov
2008-01-16 12:35     ` Duncan Sands
2008-01-16 13:20     ` Andrew Haley
2008-01-16 13:17 ` Andrew Haley
2008-01-16 15:59   ` Sergei Poselenov
2008-01-16 17:10     ` Andrew Haley
2008-01-16 17:14       ` Sergei Poselenov
2008-01-16 19:36         ` Andrew Haley
2008-01-17 14:52           ` powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression? [Emcraft #11717] Sergei Poselenov
2008-01-17 15:11             ` Richard Guenther
2008-01-17 18:27             ` Gabriel Paubert
2008-01-19 16:26               ` Andrew Haley
2008-01-19 16:35                 ` David Edelsohn
2008-01-19 16:51                   ` Andrew Haley
2008-01-19 19:10                     ` David Edelsohn
2008-01-21 17:25                     ` powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression? (filed bug 34903)[Emcraft #11717] Sergei Poselenov
2008-01-17 12:14     ` Gabriel Paubert [this message]
2008-01-17 12:47       ` powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression? Sergei Poselenov
2008-01-17 13:10         ` Gabriel Paubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080117110739.GB17343@iram.es \
    --to=paubert@iram.es \
    --cc=aph@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=sposelenov@emcraft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).