linux-mips
[Top] [All Lists]

Re: Differing results from cross and native compilers

To: Eric DeVolder <edevolder@razamicroelectronics.com>
Subject: Re: Differing results from cross and native compilers
From: Thiemo Seufer <ths@networkno.de>
Date: Tue, 19 Sep 2006 17:05:13 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <2E96546B3C2C8B4CA739323C6058204A0163548B@hq-ex-mb01.razamicroelectronics.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <2E96546B3C2C8B4CA739323C6058204A0163548B@hq-ex-mb01.razamicroelectronics.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.13 (2006-08-11)
Eric DeVolder wrote:
[snip]
> I would have thought that for this simple example I'd get identical
> results. For reasons I have yet to figure out, the cross compiler is
> finding better optimizations than the native, though both are the
> same gcc version. I checked the specs files, and the two are identical
> other than the "cross_compile" setting.

Have you checked (with -v) if the assembler gets the same optimisations
in both cases, and/or (with -save-temps) where in the compile things
start to diverge?


Thiemo

<Prev in Thread] Current Thread [Next in Thread>