This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: cross compiling for x86_64



-----Original Message-----
From: Kai Ruottu <karuottu@mbnet.fi>
To: Andrew Haley <aph@redhat.com>
Date: Mon, 08 Jan 2007 01:48:04 +0200
Subject: Re: cross compiling for x86_64

Andrew Haley wrote :
> Indu Bhagat writes:
>  >  I am trying to configure gcc for compiling some c,cpp and fortran
>  > sources to x86_64 on my x86 machine using the following steps:
>  > 
>  >  1. Binutils-2.17 configuration and installation:
>  >  2. After successful completion of step 1, gcc configuration and installation:
>  >  3. After this, I proceeded with glibc, as I think one needs to have
>  >  appropriate library support as well, to support cross compilation.
 > OK, now you need to build gcc again, this time with glibc (not 
newlib) support.

 The common rule is that the "appropriate library" is always the C 
library for the $target!  
____________________________-
As there no longer exist any production CPUs which support only 32-bit i386, and not 64-bit x86-64, this seems an inappropriate time to attempt institution of cross-compiler capability.
Intel compilers for x86-64 run in 32-bit mode, in an apparently impractical attempt to support cross compilation.  All the headers, libraries, and a cross-build of binutils, for the 64-bit target, would have to be present.  I don't know of any successful demonstration of such capability.


Tim Prince


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]