as: Invoking

1 
1 2 Command-Line Options
1 **********************
1 
1 This chapter describes command-line options available in _all_ versions
1 of the GNU assembler; see ⇒Machine Dependencies, for options
1 specific to particular machine architectures.
1 
1    If you are invoking 'as' via the GNU C compiler, you can use the
1 '-Wa' option to pass arguments through to the assembler.  The assembler
1 arguments must be separated from each other (and the '-Wa') by commas.
1 For example:
1 
1      gcc -c -g -O -Wa,-alh,-L file.c
1 
1 This passes two options to the assembler: '-alh' (emit a listing to
1 standard output with high-level and assembly source) and '-L' (retain
1 local symbols in the symbol table).
1 
1    Usually you do not need to use this '-Wa' mechanism, since many
1 compiler command-line options are automatically passed to the assembler
1 by the compiler.  (You can call the GNU compiler driver with the '-v'
1 option to see precisely what options it passes to each compilation pass,
1 including the assembler.)
1 

Menu