Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
as
Synopsis
as [options] files
Description
Generate an object file from each specified assembly language source file. Object files have the same root name as source files but replace the .s suffix with .o. There may be some additional system-specific options.
Options
- -- [ | files]
Read input files from standard input, or from files if the pipe is used.
- -a[dhlns][=file]
With only the -a option, list source code, assembler listing, and symbol table. The other options specify additional things to list or omit:
- -ad
Omit debugging directives.
- -ah
Include the high-level source code, if available.
- -al
Include an assembly listing.
- -an
Suppress forms processing.
- -as
Include a symbol listing.
- =file
Set the listing filename to file.
- -defsym symbol=value
Define the symbol to have the value value, which must be an integer.
- -f
Skip preprocessing.
- --gstabs
Generate stabs debugging information.
- -o objfile
Place output in object file objfile (default is file .o).
- -v
Display the version number of the assembler.
- -I path
Include path when searching for .include directives.
- -K
Warn before altering difference tables.
- -L
Do not remove local symbols, which begin with L.
- -R
Combine both data and text in text section.
- -W
Quiet mode.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access