Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am doing cross compiling. I install the gcc-4.6-arm-linux-gnueabihf and want to use it to compile the .c file(example of hello world) and then run it on ARM. I don't know what is the exact command. Commands like gcc -c filenam.c seem not correct.

Thanks for answering.

share|improve this question

if you compile the c source file, you'll need to do like below:

gcc-4.6-arm-linux-gnuebihf filenam.c -o filenam

through this, executable file with name 'filenam' will be generated on your current folder.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.