ChibiOS 21.11.4
|
Compiler abstraction macros | |
#define | CC_SECTION(s) |
Allocates a variable or function to a specific section. | |
#define | CC_WEAK __attribute__((weak)) |
Marks a function or variable as a weak symbol. | |
#define | CC_USED __attribute__((used)) |
Marks a function or variable as used. | |
#define | CC_ALIGN_DATA(n) |
Enforces alignment of the variable declared afterward. | |
#define | CC_ALIGN_CODE(n) |
Enforces alignment of a function declared afterward. | |
#define | CC_PACK __attribute__((packed)) |
Enforces packing of the structure declared afterward. | |
#define | CC_NO_INLINE __attribute__((noinline)) |
Marks a function as not inlineable. | |
#define | CC_FORCE_INLINE __attribute__((always_inline)) |
Enforces a function inline. | |
#define | CC_NO_RETURN __attribute__((noreturn)) |
Marks a function as non-returning. | |
#define | CC_ROMCONST const |
Enforces a variable in a ROM area. | |
#define | CC_LIKELY(x) |
Marks a boolean expression as likely true. | |
#define | CC_UNLIKELY(x) |
Marks a boolean expression as likely false. |
#define CC_SECTION | ( | s | ) |
Allocates a variable or function to a specific section.
Definition at line 57 of file ccportab.h.
#define CC_WEAK __attribute__((weak)) |
Marks a function or variable as a weak symbol.
Definition at line 64 of file ccportab.h.
#define CC_USED __attribute__((used)) |
Marks a function or variable as used.
The compiler or linker shall not remove the marked function or variable regardless if it is referred or not in the code.
Definition at line 73 of file ccportab.h.
#define CC_ALIGN_DATA | ( | n | ) |
Enforces alignment of the variable declared afterward.
Definition at line 80 of file ccportab.h.
#define CC_ALIGN_CODE | ( | n | ) |
Enforces alignment of a function declared afterward.
Definition at line 87 of file ccportab.h.
#define CC_PACK __attribute__((packed)) |
Enforces packing of the structure declared afterward.
Definition at line 94 of file ccportab.h.
#define CC_NO_INLINE __attribute__((noinline)) |
Marks a function as not inlineable.
Definition at line 101 of file ccportab.h.
#define CC_FORCE_INLINE __attribute__((always_inline)) |
Enforces a function inline.
Definition at line 108 of file ccportab.h.
#define CC_NO_RETURN __attribute__((noreturn)) |
Marks a function as non-returning.
Definition at line 115 of file ccportab.h.
#define CC_ROMCONST const |
Enforces a variable in a ROM area.
Definition at line 122 of file ccportab.h.
#define CC_LIKELY | ( | x | ) |
Marks a boolean expression as likely true.
[in] | x | a valid expression |
Definition at line 129 of file ccportab.h.
#define CC_UNLIKELY | ( | x | ) |
Marks a boolean expression as likely false.
[in] | x | a valid expression |
Definition at line 136 of file ccportab.h.