📄 gnu-assembler.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="GNU%20Assembler">GNU Assembler</a>,
Next:<a rel="next" accesskey="n" href="Object-Formats.html#Object%20Formats">Object Formats</a>,
Previous:<a rel="previous" accesskey="p" href="Manual.html#Manual">Manual</a>,
Up:<a rel="up" accesskey="u" href="Overview.html#Overview">Overview</a>
<hr><br>
</div>
<h3 class="section">The GNU Assembler</h3>
<p><small>GNU</small> <code>as</code> is really a family of assemblers.
If you use (or have used) the <small>GNU</small> assembler on one architecture, you
should find a fairly similar environment when you use it on another
architecture. Each version has much in common with the others,
including object file formats, most assembler directives (often called
<dfn>pseudo-ops</dfn>) and assembler syntax.
<p><code>as</code> is primarily intended to assemble the output of the
<small>GNU</small> C compiler <code>gcc</code> for use by the linker
<code>ld</code>. Nevertheless, we've tried to make <code>as</code>
assemble correctly everything that other assemblers for the same
machine would assemble.
Any exceptions are documented explicitly (see <a href="Machine-Dependencies.html#Machine%20Dependencies">Machine Dependencies</a>).
This doesn't mean <code>as</code> always uses the same syntax as another
assembler for the same architecture; for example, we know of several
incompatible versions of 680x0 assembly language syntax.
<p>Unlike older assemblers, <code>as</code> is designed to assemble a source
program in one pass of the source file. This has a subtle impact on the
<kbd>.org</kbd> directive (see <a href="Org.html#Org"><code>.org</code></a>).
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -