1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 00:44:54 +02:00
tldr/pages/linux/as.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

20 lines
531 B
Markdown

# as
> Portable GNU assembler.
> Primarily intended to assemble output from `gcc` to be used by `ld`.
- 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}}`