⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statements.html

📁 gcc手册
💻 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="Statements">Statements</a>,

Next:<a rel="next" accesskey="n" href="Constants.html#Constants">Constants</a>,

Previous:<a rel="previous" accesskey="p" href="Symbol-Intro.html#Symbol%20Intro">Symbol Intro</a>,

Up:<a rel="up" accesskey="u" href="Syntax.html#Syntax">Syntax</a>

<hr><br>

</div>



<h3 class="section">Statements</h3>



   <p>A <dfn>statement</dfn> ends at a newline character (<code>\n</code>) or line

separator character.  (The line separator is usually <code>;</code>, unless

this conflicts with the comment character; see <a href="Machine-Dependencies.html#Machine%20Dependencies">Machine Dependencies</a>.)  The

newline or separator character is considered part of the preceding

statement.  Newlines and separators within character constants are an

exception: they do not end statements.



   <p>It is an error to end any statement with end-of-file:  the last

character of any input file should be a newline.



   <p>An empty statement is allowed, and may include whitespace.  It is ignored.



   <p>A statement begins with zero or more labels, optionally followed by a

key symbol which determines what kind of statement it is.  The key

symbol determines the syntax of the rest of the statement.  If the

symbol begins with a dot <code>.</code> then the statement is an assembler

directive: typically valid for any computer.  If the symbol begins with

a letter the statement is an assembly language <dfn>instruction</dfn>: it

assembles into a machine language instruction. 

Different versions of <code>as</code> for different computers

recognize different instructions.  In fact, the same symbol may

represent a different instruction in a different computer's assembly

language.



   <p>A label is a symbol immediately followed by a colon (<code>:</code>). 

Whitespace before a label or after a colon is permitted, but you may not

have whitespace between a label's symbol and its colon. See <a href="Labels.html#Labels">Labels</a>.



   <p>For HPPA targets, labels need not be immediately followed by a colon, but

the definition of a label must begin in column zero.  This also implies that

only one label may be defined on each line.



<pre class="smallexample">     label:     .directive    followed by something

     another_label:           # This is an empty statement.

                instruction   operand_1, operand_2, ...

     </pre>



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -