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

Reuben D. Budiardja techlist at pathfinder.phys.utk.edu
Sat Jan 28 19:16:33 UTC 2006


On Saturday 28 January 2006 10:35, Gilboa Davara wrote:
> On Sat, 2006-01-28 at 10:14 -0500, 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 ?
>
> Either add "ARCH=i386" before the ./configure line or add the "-m32"
> switch to gcc.

Thanks. That seems to work.
RDB
-- 
Reuben D. Budiardja
Dept. Physics and Astronomy
University of Tennessee, Knoxville, TN




More information about the fedora-list mailing list