as
Portable GNU assembler. Primarily intended to assemble output fromgcc
to be used byld
. More information: https://manned.org/as.
-
Assemble a file, writing the output to
a.out
:
as {{file.s}}
-
Assemble the output to a given file:
as {{file.s}} -o {{out.o}}
-
Generate output faster by skipping whitespace and comment preprocessing. (Should only be used for trusted compilers):
as -f {{file.s}}
-
Include a given path to the list of directories to search for files specified in
.include
directives:
as -I {{path/to/directory}} {{file.s}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.