getting_started:host_and_target
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
getting_started:host_and_target [2015/10/03 15:05] – created abajric | getting_started:host_and_target [2021/02/12 16:33] – [Cross Compilation] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Host and Target ====== | ====== Host and Target ====== | ||
- | It is important to distinguish between the machine where the development is done (the host) and the machine where the program will be running (the target). These two can be the same but very often you write the program on one machine and execute it on another. And very often the target machine is not identical to the host machine, which means that the program | + | It is important to distinguish between the machine where the development is done (the host) and the machine where the program will be running (the target). These two can be the same but very often you write the program on one machine and execute it on another. And very often the architecture of the target machine is not identical to the one of the host machine, which means that programs |
+ | |||
+ | |||
+ | ===== Determine the Architecture of your Machine ===== | ||
+ | |||
+ | On a Linux system the following command displays the hardware plattform of your machine: | ||
+ | |||
+ | < | ||
+ | $ uname -m | ||
+ | </ | ||
+ | |||
+ | On a PC the result is usually: | ||
+ | |||
+ | < | ||
+ | x86_64 | ||
+ | </ | ||
+ | |||
+ | On the target machine it's probably different. Some examples are: '' | ||
+ | |||
+ | ===== Cross Compilation ===== | ||
+ | |||
+ | A compiler that runs on one platform and generates code for another platform is called a [[https:// |
getting_started/host_and_target.txt · Last modified: 2021/02/12 16:40 by ursgraf