Is it really a have to to use a cross compiler
Is it really a have to to use a cross compiler
Up to really now i have used normal gcc installed on my system. I changed because i thought it may be better to use a cross compilers, like the wiki page says. Is it possible to create a good os (i mean one that can run programs and pretty much like linux) and just compile with normal gcc
-
- Member
- Posts: 5565
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Is it really a have to to use a cross compiler
Just use a cross-compiler. It's very easy if you follow the instructions on the wiki, and it will save you a lot of trouble to have a toolchain specific to your OS.
Re: Is it really a have to to use a cross compiler
I agree. You'll run into strange and unexplainable bugs later (most commonly caused by mixed up host / target headers and such).Octocontrabass wrote:Yes, it's possible, but it's a bad idea.
Cheers,
bzt
Re: Is it really a have to to use a cross compiler
Using a cross compiler provides a clean separation of host and target, as bzt said. Your OS will be full independent of your host, and will be able to become your OS.
Re: Is it really a have to to use a cross compiler
I have built the cross compiler many times and also used the prebuilt ones. It is actually harder to get working on ubuntu than on arch.Maddie wrote:Just use a cross-compiler. It's very easy if you follow the instructions on the wiki, and it will save you a lot of trouble to have a toolchain specific to your OS.
Re: Is it really a have to to use a cross compiler
It's not essential to use a cross-compiler. It just makes development easier and less error prone. In fact, it's not essential to use a compiler, or even an assembler. But, in all these cases, you are making life difficult for yourself if you don't choose the right tools.