getting_started:host_and_target
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started:host_and_target [2015/10/04 11:12] – [Find the Architecture of your Machine] abajric | getting_started:host_and_target [2021/02/12 16:40] (current) – [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 |
- | ===== Find the Architecture of your Machine ===== | + | ===== Determine |
On a Linux system the following command displays the hardware plattform of your machine: | On a Linux system the following command displays the hardware plattform of your machine: | ||
Line 22: | Line 22: | ||
===== Cross Compilation ===== | ===== Cross Compilation ===== | ||
- | A compiler that runs on one plattform | + | A compiler that runs on one platform |
- | EEROS uses CMake to build the code. By default CMake does not use a cross compiler. To tell CMake to use a cross compiler you have to supply the CMAKE_TOOLCHAIN_FILE option when generating the build files: | + | If you don't use an SDK, you have to make sure to manually specify a cross compiler. |
< | < | ||
Line 30: | Line 30: | ||
</ | </ | ||
- | An example of a toolchain file can be found on the github page of the EEDURO project: [[https:// |
getting_started/host_and_target.1443949941.txt.gz · Last modified: 2015/10/04 11:12 (external edit)