About GCC Cross-Compiler

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
huxuelei
Member
Member
Posts: 35
Joined: Tue May 27, 2008 8:32 am

About GCC Cross-Compiler

Post 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?
souradipm
Posts: 22
Joined: Fri Aug 15, 2008 10:08 am

Re: About GCC Cross-Compiler

Post 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.
Post Reply