gcc -m32 hello.c -o hello
will give 32 bit binary
In order to verify the result, you can run the command file hello , which will output 32-bit LSB executable
I like sharing what I learned by experience. It will be a mix of life and work experiences . So take whichever you feel to :)
gcc -m32 hello.c -o hello
will give 32 bit binary
In order to verify the result, you can run the command file hello , which will output 32-bit LSB executable