5.7.3 Options for Controlling the C Dialect

The options tabulated below define the type of C dialect used by the compiler and are discussed in the sections that follow.

Table 5-9. C Dialect Control Options
Option

(links to explanatory section)

Definition
-ansiSupport all (and only) ANSI-standard C programs.
-aux-info filenameGenerates function prototypes from a C module, placing the output in a file with the specified name.
-f[no-]freestandingAsserts that the project will be built for a freestanding (as opposed to a hosted) environment.
-f[no-]asmRestricts the recognition of certain keywords, freeing them to be used as identifiers.
-fno-builtin

-fno-builtin-function

Don’t recognize built-in functions that do not begin with __builtin_ as prefix.
-std=standard Specifies the language standard with which to build programs
-f[no-]unsigned-bitfields-f[no-]signed-bitfields

Changes the signedness of a plain int bit-field.
-f[no-]signed-char-f[no-]unsigned-char

Changes the signedness of a plain char type.