You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
5.4 KiB
HTML
105 lines
5.4 KiB
HTML
15 years ago
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>CRIS-Pseudos - Using as</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html">
|
||
|
<meta name="description" content="Using as">
|
||
|
<meta name="generator" content="makeinfo 4.7">
|
||
|
<link title="Top" rel="start" href="index.html#Top">
|
||
|
<link rel="up" href="CRIS_002dSyntax.html#CRIS_002dSyntax" title="CRIS-Syntax">
|
||
|
<link rel="prev" href="CRIS_002dRegs.html#CRIS_002dRegs" title="CRIS-Regs">
|
||
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
||
|
<!--
|
||
|
This file documents the GNU Assembler "as".
|
||
|
|
||
|
Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002,
|
||
|
2006, 2007 Free Software Foundation, Inc.
|
||
|
|
||
|
Permission is granted to copy, distribute and/or modify this document
|
||
|
under the terms of the GNU Free Documentation License, Version 1.1
|
||
|
or any later version published by the Free Software Foundation;
|
||
|
with no Invariant Sections, with no Front-Cover Texts, and with no
|
||
|
Back-Cover Texts. A copy of the license is included in the
|
||
|
section entitled ``GNU Free Documentation License''.
|
||
|
|
||
|
man end-->
|
||
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
||
|
<style type="text/css"><!--
|
||
|
pre.display { font-family:inherit }
|
||
|
pre.format { font-family:inherit }
|
||
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
||
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
||
|
pre.smallexample { font-size:smaller }
|
||
|
pre.smalllisp { font-size:smaller }
|
||
|
span.sc { font-variant:small-caps }
|
||
|
span.roman { font-family: serif; font-weight: normal; }
|
||
|
--></style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="node">
|
||
|
<p>
|
||
|
<a name="CRIS_002dPseudos"></a>Previous: <a rel="previous" accesskey="p" href="CRIS_002dRegs.html#CRIS_002dRegs">CRIS-Regs</a>,
|
||
|
Up: <a rel="up" accesskey="u" href="CRIS_002dSyntax.html#CRIS_002dSyntax">CRIS-Syntax</a>
|
||
|
<hr><br>
|
||
|
</div>
|
||
|
|
||
|
<h5 class="subsubsection">9.7.4.4 Assembler Directives</h5>
|
||
|
|
||
|
<p><a name="index-assembler-directives_002c-CRIS-706"></a><a name="index-pseudo_002dops_002c-CRIS-707"></a><a name="index-CRIS-assembler-directives-708"></a><a name="index-CRIS-pseudo_002dops-709"></a>
|
||
|
There are a few CRIS-specific pseudo-directives in addition to
|
||
|
the generic ones. See <a href="Pseudo-Ops.html#Pseudo-Ops">Pseudo Ops</a>. Constants emitted by
|
||
|
pseudo-directives are in little-endian order for CRIS. There is
|
||
|
no support for floating-point-specific directives for CRIS.
|
||
|
|
||
|
<dl>
|
||
|
<dt><code>.dword EXPRESSIONS</code><dd><a name="index-assembler-directive-_002edword_002c-CRIS-710"></a><a name="index-pseudo_002dop-_002edword_002c-CRIS-711"></a><a name="index-CRIS-assembler-directive-_002edword-712"></a><a name="index-CRIS-pseudo_002dop-_002edword-713"></a>
|
||
|
The <code>.dword</code> directive is a synonym for <code>.int</code>,
|
||
|
expecting zero or more EXPRESSIONS, separated by commas. For
|
||
|
each expression, a 32-bit little-endian constant is emitted.
|
||
|
|
||
|
<br><dt><code>.syntax ARGUMENT</code><dd><a name="index-assembler-directive-_002esyntax_002c-CRIS-714"></a><a name="index-pseudo_002dop-_002esyntax_002c-CRIS-715"></a><a name="index-CRIS-assembler-directive-_002esyntax-716"></a><a name="index-CRIS-pseudo_002dop-_002esyntax-717"></a>The <code>.syntax</code> directive takes as <var>ARGUMENT</var> one of the
|
||
|
following case-sensitive choices.
|
||
|
|
||
|
<dl>
|
||
|
<dt><code>no_register_prefix</code><dd>
|
||
|
The <code>.syntax no_register_prefix</code> <a name="crisnous"></a>directive
|
||
|
makes a <span class="samp">$</span> character prefix on all registers optional. It
|
||
|
overrides a previous setting, including the corresponding effect
|
||
|
of the option <span class="option">--no-underscore</span>. If this directive is
|
||
|
used when ordinary symbols do not have a <span class="samp">_</span> character
|
||
|
prefix, care must be taken to avoid ambiguities whether an
|
||
|
operand is a register or a symbol; using symbols with names the
|
||
|
same as general or special registers then invoke undefined
|
||
|
behavior.
|
||
|
|
||
|
<br><dt><code>register_prefix</code><dd>
|
||
|
This directive makes a <span class="samp">$</span> character prefix on all
|
||
|
registers mandatory. It overrides a previous setting, including
|
||
|
the corresponding effect of the option <span class="option">--underscore</span>.
|
||
|
|
||
|
<br><dt><code>leading_underscore</code><dd>
|
||
|
This is an assertion directive, emitting an error if the
|
||
|
<span class="option">--no-underscore</span> option is in effect.
|
||
|
|
||
|
<br><dt><code>no_leading_underscore</code><dd>
|
||
|
This is the opposite of the <code>.syntax leading_underscore</code>
|
||
|
directive and emits an error if the option <span class="option">--underscore</span>
|
||
|
is in effect.
|
||
|
</dl>
|
||
|
|
||
|
<br><dt><code>.arch ARGUMENT</code><dd><a name="index-assembler-directive-_002earch_002c-CRIS-718"></a><a name="index-pseudo_002dop-_002earch_002c-CRIS-719"></a><a name="index-CRIS-assembler-directive-_002earch-720"></a><a name="index-CRIS-pseudo_002dop-_002earch-721"></a>This is an assertion directive, giving an error if the specified
|
||
|
<var>ARGUMENT</var> is not the same as the specified or default value
|
||
|
for the <span class="option">--march=</span><var>architecture</var> option
|
||
|
(see <a href="march_002doption.html#march_002doption">march-option</a>).
|
||
|
|
||
|
<!-- If you compare with md_pseudo_table, you see that we don't -->
|
||
|
<!-- document ".file" and ".loc" here. This is because we're just -->
|
||
|
<!-- wrapping the corresponding ELF function and emitting an error for -->
|
||
|
<!-- a.out. -->
|
||
|
</dl>
|
||
|
|
||
|
<!-- Copyright 1996, 2000, 2002 Free Software Foundation, Inc. -->
|
||
|
<!-- This is part of the GAS manual. -->
|
||
|
<!-- For copying conditions, see the file as.texinfo. -->
|
||
|
</body></html>
|
||
|
|