You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

189 lines
9.0KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the GNU Assembler "as".
  4. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3
  7. or any later version published by the Free Software Foundation;
  8. with no Invariant Sections, with no Front-Cover Texts, and with no
  9. Back-Cover Texts. A copy of the license is included in the
  10. section entitled "GNU Free Documentation License".
  11. -->
  12. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>CRIS-Opts (Using as)</title>
  16. <meta name="description" content="CRIS-Opts (Using as)">
  17. <meta name="keywords" content="CRIS-Opts (Using as)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="CRIS_002dDependent.html#CRIS_002dDependent" rel="up" title="CRIS-Dependent">
  25. <link href="CRIS_002dExpand.html#CRIS_002dExpand" rel="next" title="CRIS-Expand">
  26. <link href="CRIS_002dDependent.html#CRIS_002dDependent" rel="prev" title="CRIS-Dependent">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.indentedblock {margin-right: 0em}
  31. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  32. blockquote.smallquotation {font-size: smaller}
  33. div.display {margin-left: 3.2em}
  34. div.example {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nolinebreak {white-space: nowrap}
  49. span.roman {font-family: initial; font-weight: normal}
  50. span.sansserif {font-family: sans-serif; font-weight: normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en">
  56. <a name="CRIS_002dOpts"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="CRIS_002dExpand.html#CRIS_002dExpand" accesskey="n" rel="next">CRIS-Expand</a>, Up: <a href="CRIS_002dDependent.html#CRIS_002dDependent" accesskey="u" rel="up">CRIS-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="Command_002dline-Options"></a>
  63. <h4 class="subsection">9.9.1 Command-line Options</h4>
  64. <a name="index-options_002c-CRIS"></a>
  65. <a name="index-CRIS-options"></a>
  66. <p>The CRIS version of <code>as</code> has these
  67. machine-dependent command-line options.
  68. </p>
  69. <a name="index-_002d_002demulation_003dcriself-command_002dline-option_002c-CRIS"></a>
  70. <a name="index-_002d_002demulation_003dcrisaout-command_002dline-option_002c-CRIS"></a>
  71. <a name="index-CRIS-_002d_002demulation_003dcriself-command_002dline-option"></a>
  72. <a name="index-CRIS-_002d_002demulation_003dcrisaout-command_002dline-option"></a>
  73. <p>The format of the generated object files can be either ELF or
  74. a.out, specified by the command-line options
  75. <samp>--emulation=crisaout</samp> and <samp>--emulation=criself</samp>.
  76. The default is ELF (criself), unless <code>as</code> has been
  77. configured specifically for a.out by using the configuration
  78. name <code>cris-axis-aout</code>.
  79. </p>
  80. <a name="index-_002d_002dunderscore-command_002dline-option_002c-CRIS"></a>
  81. <a name="index-_002d_002dno_002dunderscore-command_002dline-option_002c-CRIS"></a>
  82. <a name="index-CRIS-_002d_002dunderscore-command_002dline-option"></a>
  83. <a name="index-CRIS-_002d_002dno_002dunderscore-command_002dline-option"></a>
  84. <p>There are two different link-incompatible ELF object file
  85. variants for CRIS, for use in environments where symbols are
  86. expected to be prefixed by a leading &lsquo;<samp>_</samp>&rsquo; character and for
  87. environments without such a symbol prefix. The variant used for
  88. GNU/Linux port has no symbol prefix. Which variant to produce
  89. is specified by either of the options <samp>--underscore</samp> and
  90. <samp>--no-underscore</samp>. The default is <samp>--underscore</samp>.
  91. Since symbols in CRIS a.out objects are expected to have a
  92. &lsquo;<samp>_</samp>&rsquo; prefix, specifying <samp>--no-underscore</samp> when
  93. generating a.out objects is an error. Besides the object format
  94. difference, the effect of this option is to parse register names
  95. differently (see <a href="CRIS_002dPseudos.html#crisnous">crisnous</a>). The <samp>--no-underscore</samp>
  96. option makes a &lsquo;<samp>$</samp>&rsquo; register prefix mandatory.
  97. </p>
  98. <a name="index-_002d_002dpic-command_002dline-option_002c-CRIS"></a>
  99. <a name="index-CRIS-_002d_002dpic-command_002dline-option"></a>
  100. <a name="index-Position_002dindependent-code_002c-CRIS"></a>
  101. <a name="index-CRIS-position_002dindependent-code"></a>
  102. <p>The option <samp>--pic</samp> must be passed to <code>as</code> in
  103. order to recognize the symbol syntax used for ELF (SVR4 PIC)
  104. position-independent-code (see <a href="CRIS_002dPic.html#crispic">crispic</a>). This will also
  105. affect expansion of instructions. The expansion with
  106. <samp>--pic</samp> will use PC-relative rather than (slightly
  107. faster) absolute addresses in those expansions. This option is only
  108. valid when generating ELF format object files.
  109. </p>
  110. <a name="index-_002d_002dmarch_003darchitecture-command_002dline-option_002c-CRIS"></a>
  111. <a name="index-CRIS-_002d_002dmarch_003darchitecture-command_002dline-option"></a>
  112. <a name="index-Architecture-variant-option_002c-CRIS"></a>
  113. <a name="index-CRIS-architecture-variant-option"></a>
  114. <p>The option <samp>--march=<var>architecture</var></samp>
  115. <a name="march_002doption"></a>specifies the recognized instruction set
  116. and recognized register names. It also controls the
  117. architecture type of the object file. Valid values for
  118. <var>architecture</var> are:
  119. </p><dl compact="compact">
  120. <dt><code>v0_v10</code></dt>
  121. <dd><p>All instructions and register names for any architecture variant
  122. in the set v0&hellip;v10 are recognized. This is the
  123. default if the target is configured as cris-*.
  124. </p>
  125. </dd>
  126. <dt><code>v10</code></dt>
  127. <dd><p>Only instructions and register names for CRIS v10 (as found in
  128. ETRAX 100 LX) are recognized. This is the default if the target
  129. is configured as crisv10-*.
  130. </p>
  131. </dd>
  132. <dt><code>v32</code></dt>
  133. <dd><p>Only instructions and register names for CRIS v32 (code name
  134. Guinness) are recognized. This is the default if the target is
  135. configured as crisv32-*. This value implies
  136. <samp>--no-mul-bug-abort</samp>. (A subsequent
  137. <samp>--mul-bug-abort</samp> will turn it back on.)
  138. </p>
  139. </dd>
  140. <dt><code>common_v10_v32</code></dt>
  141. <dd><p>Only instructions with register names and addressing modes with
  142. opcodes common to the v10 and v32 are recognized.
  143. </p></dd>
  144. </dl>
  145. <a name="index-_002dN-command_002dline-option_002c-CRIS"></a>
  146. <a name="index-CRIS-_002dN-command_002dline-option"></a>
  147. <p>When <samp>-N</samp> is specified, <code>as</code> will emit a
  148. warning when a 16-bit branch instruction is expanded into a
  149. 32-bit multiple-instruction construct (see <a href="CRIS_002dExpand.html#CRIS_002dExpand">CRIS-Expand</a>).
  150. </p>
  151. <a name="index-_002d_002dno_002dmul_002dbug_002dabort-command_002dline-option_002c-CRIS"></a>
  152. <a name="index-_002d_002dmul_002dbug_002dabort-command_002dline-option_002c-CRIS"></a>
  153. <a name="index-CRIS-_002d_002dno_002dmul_002dbug_002dabort-command_002dline-option"></a>
  154. <a name="index-CRIS-_002d_002dmul_002dbug_002dabort-command_002dline-option"></a>
  155. <p>Some versions of the CRIS v10, for example in the Etrax 100 LX,
  156. contain a bug that causes destabilizing memory accesses when a
  157. multiply instruction is executed with certain values in the
  158. first operand just before a cache-miss. When the
  159. <samp>--mul-bug-abort</samp> command-line option is active (the
  160. default value), <code>as</code> will refuse to assemble a file
  161. containing a multiply instruction at a dangerous offset, one
  162. that could be the last on a cache-line, or is in a section with
  163. insufficient alignment. This placement checking does not catch
  164. any case where the multiply instruction is dangerously placed
  165. because it is located in a delay-slot. The
  166. <samp>--mul-bug-abort</samp> command-line option turns off the
  167. checking.
  168. </p>
  169. <hr>
  170. <div class="header">
  171. <p>
  172. Next: <a href="CRIS_002dExpand.html#CRIS_002dExpand" accesskey="n" rel="next">CRIS-Expand</a>, Up: <a href="CRIS_002dDependent.html#CRIS_002dDependent" accesskey="u" rel="up">CRIS-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  173. </div>
  174. </body>
  175. </html>