Some tutorials suggest using your system compiler and passing a lot of problematic options to the compiler. If you use the compiler that comes with your system, then the compiler won't know it is compiling something else entirely. The compiler must know the correct target platform (CPU, operating system), otherwise you will run into trouble. You need to use a cross-compiler unless you are developing on your own operating system. Why cross-compilers are necessary Main article: Why do I need a Cross Compiler? This is why we need to build a cross-compiler first, you will most certainly run into trouble otherwise. It is important to realize that these two platforms are not the same the operating system you are developing is always going to be different from the operating system you currently use. In our case, the host platform is your current operating system and the target platform is the operating system you are about to make. These two platforms may (but do not need to) differ in CPU, operating system, and/or executable format. Generally speaking, a cross-compiler is a compiler that runs on platform A (the host), but generates executables for platform B (the target). 5.3 Building GCC: the directory that should contain system headers does not exist.2.3 Linux Users building a System Compiler.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |