Page 1 of 1

Getting GCC to compile 64bit code

Posted: Wed Jan 01, 2003 1:36 pm
by pskyboy
Hey Guys

I was just wondering if anyone new how to get GCC to compile to x86-64 for rather then IA32 is it a command line switch.

Peter

Re:Getting GCC to compile 64bit code

Posted: Wed Jan 01, 2003 1:39 pm
by pini
Try '-m64' to compile 64 bit code and '-m32' to compile 32 bit code

Re:Getting GCC to compile 64bit code

Posted: Wed Jan 01, 2003 1:44 pm
by pskyboy
Okay cheers, that seems to work

Peter

Re:Getting GCC to compile 64bit code

Posted: Wed Jan 01, 2003 6:08 pm
by Perica
..

Re:Getting GCC to compile 64bit code

Posted: Thu Jan 02, 2003 1:31 pm
by pskyboy
32bit code runs on 32bit processors (Athlon, P4 etc), 64bit code runs on the new 64bit processors in this case Hammer (x86-64).


Peter