Datasheet

ARM Compiler Reference
3-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
3.1 Compiler-specific features
This section describes the ARM-specific aspects of the ARM C and C++ compilers,
including:
Pragmas
Function keywords on page 3-6
Variable declaration keywords on page 3-9.
Note
Features described here are outside the ANSI specification and might not easily port to
other compilers.
3.1.1 Pragmas
Pragmas of the following form are recognized by the ARM compiler:
#pragma [no_]feature-name
Pragmas are listed in Table 3-1. The following sections describe these pragmas in more
detail.
Table 3-1 Pragmas recognized by the ARM compilers
Pragma name Default Reference
arm section
Off Pragmas controlling code generation on page 3-4
check_printf_formats
Off Pragmas controlling printf and scanf argument checking on
page 3-3
check_scanf_formats
Off Pragmas controlling printf and scanf argument checking on
page 3-3
check_stack
On Pragmas controlling code generation on page 3-4
debug
On Pragmas controlling debugging on page 3-3
import
Pragmas controlling code generation on page 3-4
Ospace
Pragmas controlling optimization on page 3-3
Otime
Pragmas controlling optimization on page 3-3
Onum
Pragmas controlling optimization on page 3-3
softfp_linkage
Off Pragmas controlling code generation on page 3-4