This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

regarding native/cross compiler

1] pls clear me difference bw the native and cross compiler.
2] why not native compiler output runs on board?
3] why not cross compiler output runs on same PC?
4] In which format output will be in native and in cross compiler?

Parents Reply Children
  • 1) Different CPUs? Native: code compiles/runs on Host, Cross: compiles on Host, code runs on Target
    2) Compiled for a different CPU
    3) Compiled for a different CPU
    4) Object/executable files come in many forms. General Rule: Machine code for one type of CPU, is not the same as machine code for a different family of CPU. ie x86 != 8051, and x86 != ARM