Why do I need a Cross Compiler?: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
(Clean up the article a bit and correct some misinformation with experience I've since gotten)
No edit summary
Line 7:
</source>
 
If you are developing on 64-bit Linux, then you will get a response such as 'x86_64-unknown-linux-gnu'. This means that the compiler thinks it is creating code for Linux. If you use this gccGCC to build your kernel, it will use your system libraries, headers, the Linux [[libgcc]], and it will make a lot of problematic Linux assumptions. If you use a [[GCC_Cross-Compiler|cross-compiler]] such as i686-elf-gcc, then you get a response back such as 'i686-elf' that means the compiler knows it is doing something else and you can avoid a lot of problems easily and properly.
 
== How to build a Cross-Compiler ==
Anonymous user