Files
tldr/pages.zh/linux/as.md
2024-08-13 10:24:04 +02:00

22 lines
629 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# as
> 一个可移植的 GUN 汇编器。
> 主要用于汇编`gcc`的输出,以供链接器`ld`使用。
> 更多信息:<https://manned.org/as>.
- 汇编一个文件,输出为 a.out
`as {{路径/到/文件.s}}`
- 汇编文件,并指定输出文件:
`as {{路径/到/文件.s}} -o {{路径/到/输出.o}}`
- 通过跳过空格和注释的预处理过程来更快的产生输出文件(只应该用于可信任的编译器的输出):
`as -f {{路径/到/文件.s}}`
- 将给定路径添加到目录列表,来搜索.include 指令指定的文件:
`as -I {{目标文件夹}} {{路径/到/文件.s}}`