Below are #pragma directives supported as extended language specifications.
#pragma inline_asm [(]function-name[(size=numerical value)][,...][)] |
|
#pragma interrupt [(]function-name[(interrupt specification [, interrupt specification]...)] [,...] [)] |
|
Allocates variables to an arbitrary section.
For details about the allocation method, see "4.2.4.1 Allocation of data and program to section".
Assembler directives can be described in a C source program.
For the details of description, see "4.2.4.2 Describing assembler instruction".
A function that is expanded inline can be specified.
For the details of expansion specification, see "4.2.4.3 Inline expansion".
You can specify that a function is not eligible for inline expansion.
See "4.2.4.3 Inline expansion" for details about specifying functions to be ineligible for inline expansion.
Interrupt/Exception handlers are described in C language.
For details, see "(3) Describing interrupt/exception handler".
#pragma interrupt [(]function-name[(interrupt specification [,interrupt specification]...)] [,...] [)] |
Interrupts are disabled for the entire function.
For details, see "(2) Disabling interrupts in entire function".
Specifies the packing of a structure type. The packing value, which is an alignment value of the member, is specified as the numeric value. A value of 1, 2, 4 can be specified. When the numeric value is not specified, the setting is the default alignment.
For details, see "4.2.4.8 Structure type packing".
CC-RH can switch the order of a bit field.Specifies the switching the order of a bit field.
For details, see "4.2.4.9 Bit field assignment".
A function to which a core number is to be assigned can be specified.
For details, see "4.2.4.10 Core number specification (for a multi-core device)".
This specifies the alignment value for branch destination addresses.
For details, see "4.2.4.11 Specifying alignment value for branch destination addresses".
This specifies a function for generating a code for detection of stack smashing.
For details, see "4.2.4.12 Detection of stack smashing [Professional Edition only]".
This specifies a function for not generating a code for detection of stack smashing.
For details, see "4.2.4.12 Detection of stack smashing [Professional Edition only]".