linux-mips
[Top] [All Lists]

RE: Differing results from cross and native compilers

To: "Thiemo Seufer" <ths@networkno.de>
Subject: RE: Differing results from cross and native compilers
From: "Eric DeVolder" <edevolder@razamicroelectronics.com>
Date: Tue, 19 Sep 2006 10:56:09 -0700
Cc: <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Thread-index: AcbcD1jW+mUAhYzgTf6LbmJrWZigVwABYogm
Thread-topic: Differing results from cross and native compilers
Thiemo, could you share what the native 3.4 compiler reports as its configuration? (e.g. the "Configured with: " statement)?
 
Thanks,
Eric


From: Thiemo Seufer [mailto:ths@networkno.de]
Sent: Tue 9/19/2006 12:16 PM
To: Eric DeVolder
Cc: linux-mips@linux-mips.org
Subject: Re: Differing results from cross and native compilers

Eric DeVolder wrote:
> Yes, it appears to me that the compiler (cc1) and assembler (as)
> invocations are the same. I've included the "-v" output of each
> below for reference. Furthermore, the -save-temps output .i files
> are effectively the same (differences due to cross vs. native paths,
> but that is it). Nonetheless, the output assembly source still
> contains differences!

> I'm curious if anybody examined the output of a cross and native
> toolchain of the same (recent) version?

I get the same (properly optimised) result from both compilers:

  gcc (GCC) 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)
  mips-linux-gnu-gcc (GCC) 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)


I haven't tried a 3.4 crosscompiler, but the native one also behaves
as expected:

  gcc-3.4 (GCC) 3.4.6 (Debian 3.4.6-4)


Thiemo

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