Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
toolchain.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2010-2014, Wind River Systems, Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
15
#ifndef ZEPHYR_INCLUDE_TOOLCHAIN_H_
16
#define ZEPHYR_INCLUDE_TOOLCHAIN_H_
17
25
#ifdef __has_builtin
26
#define HAS_BUILTIN(x) __has_builtin(x)
27
#else
28
/*
29
* The compiler doesn't provide the __has_builtin() macro, so instead we depend
30
* on the toolchain-specific headers to define HAS_BUILTIN_x for the builtins
31
* supported.
32
*/
33
#define HAS_BUILTIN(x) HAS_BUILTIN_##x
34
#endif
35
36
#if defined(__TOOLCHAIN_CUSTOM__)
37
/* This include line exists for off-tree definitions of compilers,
38
* and therefore this header is not meant to exist in-tree
39
*/
40
#include <toolchain/other.h>
41
#elif defined(__XCC__)
42
#include <
toolchain/xcc.h
>
43
#elif defined(__CCAC__)
44
#include <
toolchain/mwdt.h
>
45
#elif defined(__ARMCOMPILER_VERSION)
46
#include <
toolchain/armclang.h
>
47
#elif defined(__llvm__)
48
#include <
toolchain/llvm.h
>
49
#elif defined(__GNUC__) || (defined(_LINKER) && defined(__GCC_LINKER_CMD__))
50
#include <
toolchain/gcc.h
>
51
#else
52
#error "Invalid/unknown toolchain configuration"
53
#endif
54
55
/*
56
* Ensure that __BYTE_ORDER__ and related preprocessor definitions are defined,
57
* as these are often used without checking for definition and doing so can
58
* cause unexpected behaviours.
59
*/
60
#ifndef _LINKER
61
#if !defined(__BYTE_ORDER__) || !defined(__ORDER_BIG_ENDIAN__) || \
62
!defined(__ORDER_LITTLE_ENDIAN__)
63
64
#error "__BYTE_ORDER__ is not defined"
65
66
#endif
67
#endif
/* !_LINKER */
68
69
#endif
/* ZEPHYR_INCLUDE_TOOLCHAIN_H_ */
armclang.h
gcc.h
GCC toolchain abstraction.
llvm.h
mwdt.h
xcc.h
include
toolchain.h
Generated on Mon Feb 21 2022 22:43:02 for Zephyr API Documentation by
1.9.2