From mint-bounce@lists.fishpool.fi  Sun Feb 10 13:27:21 2008
From: Eero Tamminen <oak@helsinkinet.fi>
Organization: Koti
To: mint@lists.fishpool.fi
Subject: Re: [MiNT] Binutils 2.18 + GCC 4.2.3
Date: Sun, 10 Feb 2008 20:23:42 +0200
User-Agent: KMail/1.9.6
Cc: MiKRO <miro.kropacek@gmail.com>, "Keith Scroggins" <kws@radix.net>,
        mint <mint@fishpool.com>
References: <c6533ef60802051618w1ee05126sf66358ac67512dfc@mail.gmail.com> <Pine.GSO.4.63.0802081252560.26309@saltmine.radix.net> <c6533ef60802090819u6ffb7b55ha39cfaeafe6b1a16@mail.gmail.com>
In-Reply-To: <c6533ef60802090819u6ffb7b55ha39cfaeafe6b1a16@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200802102023.42973.oak@helsinkinet.fi>
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: oak@helsinkinet.fi
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

Hi,

On Saturday 09 February 2008, MiKRO wrote:
> > would be to bootstrap the compiler with the new 060 multilib, and then
> > pass the -m68060 parameter doing a rebuild (with --disable-bootstrap to
> > configure), and let it die when it gets to the lib parts, which should
> > be after executables are already produced.  BTW, I tried -O3 and it
> > increases
>
> Hmm, yes, this could be worth of trying.. I'll try it then :)
>
> > the size of cc1 and cc1plus about 1 meg each, that size increase makes
> > me think its more harm done than the speed increase.  Just sharing.
>
> not necessarily -- -O3 could mean some stuff got unrolled for example.
> Maybe you could try some measuring, if we got 10% speedup for example,
> this would be cool, one meg plus minus.

This unrolling often makes the code too large to fit into CPU caches and
then code actually gets slower.  IMHO the only reasonable way to use -O3
is to measure the speed (in addition to size change :-)), and maybe use
it only for some specific *.c files which one has found to be problematic
when profiling....


	- Eero


