Page 1 of 1

About GCC Cross-Compiler

Posted: Thu Aug 21, 2008 9:04 am
by huxuelei
Hi, I have read the GCC Cross-Compiler at http://wiki.osdev.org/GCC_Cross-Compiler.
There are four steps, but the last line of the step 1 said
But it is quite sufficient to compile your self-made kernel.
If the step 1's compiler is enough, what are others for?

What's the difference between these steps after a cross-compiler is built?

Re: About GCC Cross-Compiler

Posted: Thu Aug 21, 2008 10:02 am
by souradipm
Step 1's compiler is a 'bare' compiler, without anu C runtimes/libraries. The rest is for adding these extra os-dependant stuff. Step 2 adds the C library, and Step 3 adds support for creating native executables, not just object files. Step 4 is for building a compiler which builds for your os AND run on your os.

Step 1's compiler is sufficient enough for most people, and the rest of the steps are for people trying to do something more advanced.