ChibiOS/HAL 9.0.0
|
Compiler portability layer. More...
Go to the source code of this file.
Macros | |
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. |
Compiler portability layer.
Definition in file ccportab.h.