GNU汇编器as的用户手册。
Here is a brief summary of how to invoke as. For details, see section
Command-Line Options.
以下是调用as的命令概要,详细内容请见命令行选项一节。
as [ -a[cdhlns][=file] ] [ -D ] [ --defsym sym=val ]
[ -f ] [ --gstabs ] [ --help ] [ -I dir ] [ -J ] [ -K ] [ -L ]
[ --keep-locals ] [ -o objfile ] [ -R ] [ --statistics ] [ -v ]
[ -version ] [ --version ] [ -W ] [ -w ] [ -x ] [ -Z ]
[ -mbig-endian | -mlittle-endian ]
[ -m[arm]1 | -m[arm]2 | -m[arm]250 | -m[arm]3 | -m[arm]6 | -m[arm]7[t][[d]m[i]] ]
[ -m[arm]v2 | -m[arm]v2a | -m[arm]v3 | -m[arm]v3m | -m[arm]v4 | -m[arm]v4t ]
asp 源代码
[ -mthumb | -mall ]
[ -mfpa10 | -mfpa11 | -mfpe-old | -mno-fpu ]
[ -EB | -EL ]
[ -mapcs-32 | -mapcs-26 ]
[ -O ]
[ -Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite
-Av8plus | -Av8plusa | -Av9 | -Av9a ]
[ -xarch=v8plus | -xarch=v8plusa ] [ -bump ] [ -32 | -64 ]
[ -ACA | -ACA_A | -ACB | -ACC | -AKA | -AKB | -AKC | -AMC ]
[ -b ] [ -no-relax ]
[ -l ] [ -m68000 | -m68010 | -m68020 | ... ]
[ -nocpp ] [ -EL ] [ -EB ] [ -G num ] [ -mcpu=CPU ]
[ -mips1 ] [ -mips2 ] [ -mips3 ] [ -m4650 ] [ -no-m4650 ]
[ --trap ] [ --break ]
[ --emulation=name ]
[ -- | files ... ]
-a[cdhlmns]
Turn on listings, in any of a variety of ways:
打开清单输出选项,可以任意使用以下各种方法:
-ac
omit false conditionals
忽略假条件
-ad
omit debugging directives
忽略调试指示
-ah
include high-level source
包含高层源代码
-al
include assembly
包含汇编代码
-am
include macro expansions
包含宏扩展
-an
omit forms processing
忽略forms处理
-as
include symbols
包含符号表
=file
set the name of the listing file
设置清单文件名
You may combine these options; for example, use `-aln' for assembly listing
without forms processing. The `=file' option, if used, must be the last one.
By itself, `-a' defaults to `-ahls'.
你可以联合使用这些选项;例如,要获得未经过forms处理的汇编代码清单可使用 '-aln',
如果要使用 ‘=file’选项,它必须在最后一个位置,选项‘-a’缺省含义是'-ahls'。
-D
Ignored. This option is accepted for script compatibility with calls to other
assemblers.
忽略。为和使用其它汇编器的脚本兼容而保留。
--defsym sym=value
Define the symbol sym to be value before assembling the input file. value must
be an integer constant. As in C, a leading `0x' indicates a hexadecimal value,
and a leading `0' indicates an octal value.
处理输入文件前,定义符号sym的值为value。value必须是整形常量。同在'C'中一样,前导
字符'0x'标志十六进制值,前导字符'0'标志八进制值。
-f
"fast"---skip whitespace and comment preprocessing (assume source is compiler
output).
“加速处理”---跳过空白和注释处理(假定输入源文件是一可信赖的编译器产生的)
--gstabs
Generate stabs debugging information for each assembler line. This may help
debugging assembler code, if the debugger can handle it.
生成逐行的stabs格式调试信息,如果调试器可以处理这种格式的信息将有助于汇编代码调试。
--help
Print a summary of the command line options and exit.
打印命令行选项概要后退出。
-I dir
Add directory dir to the search list for .include directives.
为.include汇编指示增加搜索目录。
-J
Don't warn about signed overflow.
不警告符号溢出。
-K
Issue warnings when difference tables altered for long displacements.
长跳切换表时发出警告。
-L
--keep-locals
Keep (in the symbol table) local symbols. On traditional a.out systems these
start with `L', but different systems have different local label prefixes.
保留(符号表中的)局部符号。在传统的a.out系统中这些符号有'L'前缀,但是在不同
的系统中有不同的局部符号前缀。
-o objfile
Name the object-file output from as objfile.
as输出的目标文件名。
-R
Fold the data section into the text section.
交迭数据段和代码段。
--statistics
Print the maximum space (in bytes) and total time (in seconds) used by
assembly.
打印汇编过程使用的最大空间(字节)和总计时间(秒)。
--strip-local-absolute
Remove local absolute symbols from the outgoing symbol table.
从输出符号表中移除局部绝对符号。
-v
-version
Print the as version.
打印as的版本。
--version
Print the as version and exit.
打印as的版本后退出。
-W
Suppress warning messages.
压制警告信息。
-w
Ignored.
忽略。
-x
Ignored.
忽略。
-Z
Generate an object file even after errors.
即使发生错误也要生成目标文件。
-- | files ...
Standard input, or source files to assemble.
标准输入或汇编源文件。
The following options are available when as is configured for an ARC processor.
以下选项,当配置as为ARC处理器时有效。
-mbig-endian
Generate "big endian" format output.
生成“大端”格式输出。
-mlittle-endian
Generate "little endian" format output.
生成“小端”格式输出。
The following options are available when as is configured for the ARM processor
family.
以下选项,当配置as为ARM处理器族时有效。
-m[arm]1 | -m[arm]2 | -m[arm]250 | -m[arm]3 | -m[arm]6 | -m[arm]7[t][[d]m] |
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论