Compiling/generate 32-bit version of a program on x86-64

Steve Ringwald asric at asric.com
Mon Jan 30 10:35:58 UTC 2006



Reuben D. Budiardja wrote:
> Hello,
> My platform is AMD-64 running Fedora 4 64-bit version. Is there a way for me 
> to compile and generate 32-bit version of a program ( in C )? How does one do 
> that using GCC ? Since 64-bit version also install all the 32-bit 
> compatibility library, that should not be a problem, is it ? 
>   
Adding -m32 to the cflags should do the trick.

Steve




More information about the fedora-list mailing list