Compiling gcc in 64 bits mode

Ian Lance Taylor iant@google.com
Fri Jul 29 18:59:00 GMT 2011


lol37 lol37 <lol37cs16@gmail.com> writes:

> now that i know and compiled with success gcc, i wonder how i can make
> a gcc compiler for 64 bits platform, is the compiliation process is
> the same except that extras flags are involved, and if yes, which ?
> i've looked on the net for binutils i found --enable-64-bit-bfd,
> --host=x86_64-mingw32 and also for --target
> is there any other flags for gcc dependencies ( like gmp, mpfr, mpc,
> pthread ... ) ?

Normally if you build gcc on a 64-bit host it will automatically be
configured to generate 64-bit code.

If you are building gcc on a 32-bit x86 host, you can use the configure
option --enable-targets=all to include support for 64-bit x86.  See the
installation documentation.

You can also use --target but for various reasons that is harder.

Ian



More information about the Gcc-help mailing list