8.3.4.1 General
- Default Assembler Flags
-Wa, -x assembler-with-cpp
-Wa,
option
passes the option argument directly to the assembler. The-x assembler-with-cpp
language option ensures assembly source files are preprocessed before they are assembled, thus allowing the use of preprocessor directives, such as #include and C-style comments with assembly code. By default, assembly files not using the .S or .sx extension are not preprocessed.
Use the-c
-c
option to halt compilation after executing the assembler, leaving a relocatable object intermediate file with a.o
extension as the output.