This option relaxes certain rules when producing preprocessed
compiler output, to provide greater flexibility when preprocessing
assembly language source code.
Usage
Use this option to relax certain preprocessor rules when generating
preprocessed output from assembly language source files. Specifically,
the following special cases are permitted that would normally produce
a compiler error:
Lines beginning with
a '#' character followed by a space and a number, that would normally
indicate a GNU non-standard line marker, are ignored and copied
verbatim into the preprocessed output.
Unrecognized preprocessing directives are ignored
and copied verbatim into the preprocessed output.
Where the token-paste '#' operator is used in a
function-like macro, if it is used with a name that is not a macro
parameter, the name is copied verbatim into the preprocessed output
together with the preceding '#' character.
For example if the source file contains:
# define mymacro(arg) foo #bar arg
mymacro(x)
using the --preprocess_assembly option
produces a preprocessed output that contains:
foo #bar x
Restrictions
This option is only valid when producing preprocessed output
without continuing compilation, for example when using the -E, -P
or -C command line options. It is ignored in other cases.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.