This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cross compiling gcc for i686 target
- From: Ian Lance Taylor <iant at google dot com>
- To: vijay nag <vijunag at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 1 Mar 2013 10:28:22 -0800
- Subject: Re: cross compiling gcc for i686 target
- References: <CAKhyrx_farUmLu5FVac5_1bepqhAdb_HHy2ngRucs2+V3xfd1g@mail.gmail.com> <CAKhyrx9Krnq6MomMdYqKdQG1s51Ny8r04PugTMn+z_6pezfP0A@mail.gmail.com>
On Fri, Mar 1, 2013 at 9:39 AM, vijay nag <vijunag@gmail.com> wrote:
>
> Is it possible to do a cross compile of gcc-4.7.2 on AMD x86_64 to
> produce i686 target ?
>
> My build, host and target parameters are amd64-pc-linux-gnu,
> amd64-pc-linux-gnu and i686-pc-linux-gnu. My native compiler again is
> a 64 bit compiler emitting default 64 bit object code.
Yes, it is possible.
It is also usually unnecessary. A typical x86_64 compiler
installation will produce 32-bit x86 code with the -m32 option.
Ian