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

📄 comments.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="Comments">Comments</a>,

Next:<a rel="next" accesskey="n" href="Symbol-Intro.html#Symbol%20Intro">Symbol Intro</a>,

Previous:<a rel="previous" accesskey="p" href="Whitespace.html#Whitespace">Whitespace</a>,

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

<hr><br>

</div>



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



   <p>There are two ways of rendering comments to <code>as</code>.  In both

cases the comment is equivalent to one space.



   <p>Anything from <code>/*</code> through the next <code>*/</code> is a comment. 

This means you may not nest these comments.



<pre class="smallexample">     /*

       The only way to include a newline ('\n') in a comment

       is to use this sort of comment.

     */

     

     /* This sort of comment does not nest. */

     </pre>



   <p>Anything from the <dfn>line comment</dfn> character to the next newline

is considered a comment and is ignored.  The line comment character is

<code>;</code> for the AMD 29K family;

<code>;</code> on the ARC;

<code>@</code> on the ARM;

<code>;</code> for the H8/300 family;

<code>!</code> for the H8/500 family;

<code>;</code> for the HPPA;

<code>#</code> on the i386 and x86-64;

<code>#</code> on the i960;

<code>;</code> for the PDP-11;

<code>;</code> for picoJava;

<code>;</code> for Motorola PowerPC;

<code>!</code> for the Hitachi SH;

<code>!</code> on the SPARC;

<code>#</code> on the m32r;

<code>|</code> on the 680x0;

<code>#</code> on the 68HC11 and 68HC12;

<code>;</code> on the M880x0;

<code>#</code> on the Vax;

<code>!</code> for the Z8000;

<code>#</code> on the V850;

see <a href="Machine-Dependencies.html#Machine%20Dependencies">Machine Dependencies</a>.



   <p>On some machines there are two different line comment characters.  One

character only begins a comment if it is the first non-whitespace character on

a line, while the other always begins a comment.



   <p>The V850 assembler also supports a double dash as starting a comment that

extends to the end of the line.



   <p><code>--</code>;



   <p>To be compatible with past assemblers, lines that begin with <code>#</code> have a

special interpretation.  Following the <code>#</code> should be an absolute

expression (see <a href="Expressions.html#Expressions">Expressions</a>): the logical line number of the <em>next</em>

line.  Then a string (see <a href="Strings.html#Strings">Strings</a>) is allowed: if present it is a

new logical file name.  The rest of the line, if any, should be whitespace.



   <p>If the first non-whitespace characters on the line are not numeric,

the line is ignored.  (Just like a comment.)



<pre class="smallexample">                               # This is an ordinary comment.

     # 42-6 "new_file_name"    # New logical file name

                               # This is logical line # 36.

     </pre>

   This feature is deprecated, and may disappear from future versions

of <code>as</code>.



   </body></html>



⌨️ 快捷键说明

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