9.72 Pragmas

The ARM compiler recognizes a number of ARM-specific pragmas

Note

Pragmas override related command-line options. For example, #pragma arm overrides the command-line option --thumb.
The following table summarizes the available pragmas.

Table 9-6 Pragmas that the compiler supports

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  
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.