[C]How to compile a c program for a 32 bit machine on a 64 bit machine


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 

 

Published by RNP

A person who likes learning new languages.

Leave a comment