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: Compiling gcc in 64 bits mode


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


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