$ arm-linux-gnueabihf-gcc -o test test.c
If you don’t install the 32-bit package,it will report an error when you run a 32-bit application under a 64-bit sysytem.
$ sudo apt-get update
‘libc6’ is the name of the installation package, ‘armhf’ means the installation package is 32-bit.
You can run the 32-bit program after you execute the command.