You copied the Doc URL to your clipboard.

Pragmas

The ARM compiler recognizes a number of ARM-specific pragmas. Table 13 summarizes the available pragmas.

Note

Pragmas override related command-line options. For example, #pragma arm overrides the command-line option --thumb.

Table 13. Pragmas supported by the compiler
Pragmas
#pragma anon_unions, #pragma no_anon_unions#pragma hdrstop#pragma pack(n)
#pragma arm#pragma import symbol_name#pragma pop
#pragma arm section [section_type_list]#pragma import(__use_full_stdio)#pragma push
#pragma diag_default tag[,tag,...]#pragma import(__use_smaller_memcpy)#pragma softfp_linkage, no_softfp_linkage
#pragma diag_error tag[,tag,...]#pragma inline, #pragma no_inline#pragma unroll [(n)]
#pragma diag_remark tag[,tag,...]#pragma no_pch#pragma unroll_completely
#pragma diag_suppress tag[,tag,...]#pragma Onum#pragma thumb
#pragma diag_warning tag[,tag,...]#pragma once#pragma weak symbol
#pragma [no_]exceptions_unwind#pragma Ospace#pragma weak symbol1 = symbol2
#pragma GCC system_header#pragma Otime