23 May, 2011

compiling for 32 bit linux OS in 64 bit linux OS

compiling for 32bit in 64bit linux

For 32 bit version :
gcc -m32 -o output32 hello.c

For 64 bit version :
gcc -m64 -o output64 hello.c

1 comment: