We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
The perfect answer for your assignment:
A cross compiler is unhappy coz you've got a lot of errors in yer code.
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