Compiling a 64 bits program using gcc

Hi Everyone,

I can ask what is the option to compile a 64 bits program using gcc. I have looked everywhere but can't find it. Before I used to use cc and the -q64 flag was the option to generate the 64 bits binary. Can anyone tell me what is the flags when using gcc. Thanks......

-m64 is the usual way, although that depends on the CPU architecture.

I did try that option before but didn't work. We are using PowerPC_POWER7 CPU's on aix platform.

It should work, you might try -mpowerpc64 .