To do this, you must first download the ARM compilers. I suggest you download the compiler from http://www.linaro.org/downloads/ , and then set the CROSS_COMPILE environment variable to arm-linux-gcc.
set the bin directory path in the PATH variable. You can do this by exporting PATH = $ PATH: / path / to / arm / binaries /
Finally, compile the code, then run in ARM.
use file <filename> regardless of whether it is ARM executable or not.
source share