[Clfs-support] Why cross-compiling?

Binghoo Dang dangbinghoo at gmail.com
Wed Jul 1 03:02:04 PDT 2009

在 星期三 01 七月 2009 08:52:54,booleandomain 写道:
> Hello,
> I'm a CLFS newbie. I don't understand why cross-compiling tools 
such as
> binutils and gcc. Let me explain. My CPU is an Intel Core 2 Duo. The
> host system is Gentoo Linux running on that CPU. uname -m returns
> x86_64. I want my target Linux system to run on the same computer 
as the
> host system, so the target should return x86_64 too. So why putting
> x86_64-cross-linux-gnu for --build and --host and x86_64-pc-linux-
> for --target? It should be build=host=target=x86_64-pc-linux-gnu 
> mode).
> Thanks.
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org

Cross-compiling is because of this: your target is not same as your 
Code compiled for the host would not excute on the different target.
So cross-compile is required: A toolchain itselft excute on the host and 
generate code excute on the target.

More information about the Clfs-support mailing list