Using
gcc -m32 myprog.c
should compile in 32 bit version the file myprog.c.
myprog.c
Unfortunately I get this error:
You need gcc multilib support. Install the package gcc-multilib. E.g.:
gcc-multilib
sudo apt-get install gcc-multilib