gcc create 32 bit binary in 64 bit machine code example
Example: compile 32 bit on 64 bit linux
To compile 32-bit code on a 64-bit system, use the option -m32 to gcc.
Example:
gcc -m32 hello.c
To compile 32-bit code on a 64-bit system, use the option -m32 to gcc.
Example:
gcc -m32 hello.c