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

Fixed more mistaken uses of the word "imaginary", this time replaced with "unnecessary"
[unchecked revision][unchecked revision]
(→‎Problems that occur without a Cross-Compiler: Wording: problem which is hard to overcome != imaginary problem)
(Fixed more mistaken uses of the word "imaginary", this time replaced with "unnecessary")
Line 1:
You need to use a [[GCC_Cross-Compiler|cross-compiler]] ''unless'' you are developing on your own operating system. The compiler ''must'' know the correct [[Target Triplet|target platform]] (CPU, operating system), otherwise you will run into trouble. You may be able to use the compiler that comes with your system if you pass a number of options to beat it into submission, but this will create a lot of completely imaginaryunnecessary problems.
 
It is possible ask your compiler what target platform it is currently using by calling the command:
Line 12:
{{Main|GCC Cross Compiler}}
 
It is easy and takes a few moments to [[GCC_Cross-Compiler|build a cross-compiler]] that targets your operating system. It may take a while to build it on slower computers, but you only need to do it once, and you save all the time you would otherwise spend on "fixing" the completely imaginaryunnecessary problems you would encounter otherwise. Later on, when you start building a user-space for your operating system, it is worth creating an [[OS_Specific_Toolchain|OS Specific Toolchain]] for absolute control of the compiler and to easy compiling user-space programs.
 
== Transitioning to a Cross-Compiler ==
Anonymous user