Fedora and Cross Compiling

Lennert Buytenhek buytenh at wantstofly.org
Tue Jun 12 20:06:00 UTC 2007


On Fri, Jun 08, 2007 at 10:21:56AM +0100, Andy Green wrote:

> Native compilers would be built on an ARM box or emulation creating an
> ARM executable compiler that emits ARM code.  But in both cases, the
> compiler is coming from the same gcc sources.
> 
> In either case, if you give it some C to compile, it should emit the
> same ARM object file, one happens to emit that ARM object code with a
> compiler that is built from i386 instructions itself and another does it
> with the same compiler built from ARM instructions itself.  In this way
> "real native hardware" has absolutely *nothing* to do with it.

I don't think that a cross-compiler always generates the very
same binary code (e.g. I've been told that you can't always
pre-compute constant floating point operations on the compiling
host as you would on the target), but cross-compiling _should_
produce functionally identical code.




More information about the fedora-devel-list mailing list