21.3.2 Compiler Settings Macro

The following symbols are defined if compiler features are enabled.

Table 21-2. Compiler Settings Macros/Symbols
SymbolDescription
__OPTIMIZATION_LEVEL__Set to the value of the big O number. For example, both -Os and -O2 would be set to 2.
__OPTIMIZE_SIZE__Defined if -Os enabled, undefined otherwise.
__LARGE_ARRAYS__Set to 1 for -menable-large-arrays, set to 0 otherwise.