mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 00:26:00 +02:00
as: add page (#2128)
This commit is contained in:
parent
28f8320a0b
commit
2ddd4f552c
2 changed files with 40 additions and 0 deletions
20
pages/linux/as.md
Normal file
20
pages/linux/as.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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}}`
|
20
pages/osx/as.md
Normal file
20
pages/osx/as.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue