4.6. Pragmas

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

Note

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

Table 4.6. Pragmas supported by the compiler

Pragmas
#pragma [no_]anon_unions#pragma [no_]exceptions_unwind#pragma Otime
#pragma arm#pragma hdrstop#pragma pop
#pragma arm section [section_sort_list]#pragma import symbol_name#pragma push
#pragma diag_default tag[,tag,...]#pragma noinline#pragma [no_]softfp_linkage
#pragma diag_error tag[,tag,...]#pragma no_pch#pragma unroll [(n)]
#pragma diag_remark tag[,tag,...]#pragma Onum#pragma unroll_completely
#pragma diag_suppress tag[,tag,...]#pragma once#pragma thumb
#pragma diag_warning tag[,tag,...]#pragma Ospace-

Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential