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

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
m (Added source tags)
mNo edit summary
Line 146: Line 146:
*gcc -v* from my Ubuntu machine gives:
*gcc -v* from my Ubuntu machine gives:


<tt>
<pre>
gravaera@gravaera-laptop:/void/cygwin/osdev/zbz$ gcc -v
gravaera@gravaera-laptop:/void/cygwin/osdev/zbz$ gcc -v
Using built-in specs.
Using built-in specs.
Line 159: Line 159:
Thread model: posix
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
</tt>
</pre>


The person who built the compiler that runs on my machine built it on a machine just like mine, an 'i486-linux-gnu' (build), and intended for it to run on a machine like his/mine: the same i486-linux-gnu (host), and he meant for this compiler he was building for me, to emit executables that targeted my very machine, so that when I compile programs, they will be able to run on a host that is i486-linux-gnu. Therefore he made the compiler target i486-linux-gnu.
The person who built the compiler that runs on my machine built it on a machine just like mine, an 'i486-linux-gnu' (build), and intended for it to run on a machine like his/mine: the same i486-linux-gnu (host), and he meant for this compiler he was building for me, to emit executables that targeted my very machine, so that when I compile programs, they will be able to run on a host that is i486-linux-gnu. Therefore he made the compiler target i486-linux-gnu.