mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 16:50:00 +00:00
Update cheatsheets
This commit is contained in:
26
linux/as
Normal file
26
linux/as
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# as
|
||||
|
||||
> Portable GNU assembler.
|
||||
> Primarily intended to assemble output from `gcc` to be used by `ld`.
|
||||
> 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}}`
|
||||
Reference in New Issue
Block a user