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: gcc on 64 bits machine


ying lcs wrote:
Hi,

Can you please tell me can I use gcc 3.4 to compile a binary on a 64
bits machine? or I need to use gcc 4.1? I am running Red Hat
Enterprise Linux 4 and it comes with a gcc 3.4. Can I just use that to
compile a 64 bits binaries?

Thank you.

Yes, gcc-3.4, on x86-64, builds 64-bit programs. The x86-64 installation of either version of gcc requires the option -m32 (and the corresponding additional installed components) to build 32-bit binaries.


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