summaryrefslogtreecommitdiff
path: root/docs/configure.txt
blob: 9414302e8a6b6789daba3b172db7c75cc9db8b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// -*- mode:doc; -*-
// vim: set syntax=asciidoc:

[[toolchain]]

Cross-compilation toolchain
---------------------------

A compilation toolchain is the set of tools that allows you to compile
code for your system. It consists of a compiler,
binary utils like assembler and linker and a
C standard library. 

The system installed on your development station certainly already has
a compilation toolchain that you can use to compile an application
that runs on your system. If you're using a PC, your compilation
toolchain runs on an x86 processor and generates code for an x86
processor. Under most Linux systems, the compilation toolchain uses
the GNU libc (glibc) as the C standard library. This compilation
toolchain is called the "host compilation toolchain". The machine on
which it is running, and on which you're working, is called the "host
system" footnote:[This terminology differs from what is used by GNU
configure, where the host is the machine on which the application will
run (which is usually the same as target)].

The compilation toolchain is provided by your distribution, and
OpenADK has nothing to do with it (other than using it to build a
cross-compilation toolchain and other tools that are run on the
development host).

As said above, the compilation toolchain that comes with your system
runs on and generates code for the processor in your host system. As
your embedded system has a different processor, you need a
cross-compilation toolchain - a compilation toolchain that runs on
your _host system_ but generates code for your _target system_ (and
target processor). For example, if your host system uses x86 and your
target system uses ARM, the regular compilation toolchain on your host
runs on x86 and generates code for x86, while the cross-compilation
toolchain runs on x86 and generates code for ARM.

You can choose between three C libraries:
http://www.uclibc-ng.org[uClibc-ng],
http://www.gnu.org/software/libc/libc.html[glibc],
http://www.musl-libc.org[musl] and
https://sourceware.org/newlib/[newlib].

There are some configuration options provided in +Toolchain settings+.
You can enable or disable the building of following components and toolchain
options:

* Optimization level

* Stack Smashing Protection (SSP) support

* Position Independent Executable (PIE) support

* Link Time Optimization (LTO) support

* GNU Hashstyle support

* GOLD LD support