📄 invoking.html
字号:
<html lang="en">
<head>
<title>Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.3">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
</head>
<body>
<div class="node">
<p>
Node:<a name="Invoking">Invoking</a>,
Next:<a rel="next" accesskey="n" href="Syntax.html#Syntax">Syntax</a>,
Previous:<a rel="previous" accesskey="p" href="Overview.html#Overview">Overview</a>,
Up:<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr><br>
</div>
<h2 class="chapter">Command-Line Options</h2>
<p>This chapter describes command-line options available in <em>all</em>
versions of the <small>GNU</small> assembler; see <a href="Machine-Dependencies.html#Machine%20Dependencies">Machine Dependencies</a>, for options specific
to particular machine architectures.
<p>If you are invoking <code>as</code> via the <small>GNU</small> C compiler (version 2),
you can use the <code>-Wa</code> option to pass arguments through to the assembler.
The assembler arguments must be separated from each other (and the <code>-Wa</code>)
by commas. For example:
<pre class="smallexample"> gcc -c -g -O -Wa,-alh,-L file.c
</pre>
<p>This passes two options to the assembler: <code>-alh</code> (emit a listing to
standard output with high-level and assembly source) and <code>-L</code> (retain
local symbols in the symbol table).
<p>Usually you do not need to use this <code>-Wa</code> mechanism, since many compiler
command-line options are automatically passed to the assembler by the compiler.
(You can call the <small>GNU</small> compiler driver with the <code>-v</code> option to see
precisely what options it passes to each compilation pass, including the
assembler.)
<ul class="menu">
<li><a accesskey="1" href="a.html#a">a</a>: -a[cdhlns] enable listings
<li><a accesskey="2" href="D.html#D">D</a>: -D for compatibility
<li><a accesskey="3" href="f.html#f">f</a>: -f to work faster
<li><a accesskey="4" href="I.html#I">I</a>: -I for .include search path
<p>
</p><li><a accesskey="5" href="K.html#K">K</a>: -K for difference tables
<p>
</p><li><a accesskey="6" href="L.html#L">L</a>: -L to retain local labels
<li><a accesskey="7" href="listing.html#listing">listing</a>: --listing-XXX to configure listing output
<li><a accesskey="8" href="M.html#M">M</a>: -M or --mri to assemble in MRI compatibility mode
<li><a accesskey="9" href="MD.html#MD">MD</a>: --MD for dependency tracking
<li><a href="o.html#o">o</a>: -o to name the object file
<li><a href="R.html#R">R</a>: -R to join data and text sections
<li><a href="statistics.html#statistics">statistics</a>: --statistics to see statistics about assembly
<li><a href="traditional-format.html#traditional-format">traditional-format</a>: --traditional-format for compatible output
<li><a href="v.html#v">v</a>: -v to announce version
<li><a href="W.html#W">W</a>: -W, --no-warn, --warn, --fatal-warnings to control warnings
<li><a href="Z.html#Z">Z</a>: -Z to make object file even after errors
</ul>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -