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.

161 lines
6.4KB

  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>Sparc-Directives (Using as)</title>
  16. <meta name="description" content="Sparc-Directives (Using as)">
  17. <meta name="keywords" content="Sparc-Directives (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="Sparc_002dDependent.html#Sparc_002dDependent" rel="up" title="Sparc-Dependent">
  25. <link href="TIC54X_002dDependent.html#TIC54X_002dDependent" rel="next" title="TIC54X-Dependent">
  26. <link href="Sparc_002dFloat.html#Sparc_002dFloat" rel="prev" title="Sparc-Float">
  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="Sparc_002dDirectives"></a>
  57. <div class="header">
  58. <p>
  59. Previous: <a href="Sparc_002dFloat.html#Sparc_002dFloat" accesskey="p" rel="prev">Sparc-Float</a>, Up: <a href="Sparc_002dDependent.html#Sparc_002dDependent" accesskey="u" rel="up">Sparc-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="Sparc-Machine-Directives"></a>
  63. <h4 class="subsection">9.44.5 Sparc Machine Directives</h4>
  64. <a name="index-SPARC-machine-directives"></a>
  65. <a name="index-machine-directives_002c-SPARC"></a>
  66. <p>The Sparc version of <code>as</code> supports the following additional
  67. machine directives:
  68. </p>
  69. <dl compact="compact">
  70. <dd><a name="index-align-directive_002c-SPARC"></a>
  71. </dd>
  72. <dt><code>.align</code></dt>
  73. <dd><p>This must be followed by the desired alignment in bytes.
  74. </p>
  75. <a name="index-common-directive_002c-SPARC"></a>
  76. </dd>
  77. <dt><code>.common</code></dt>
  78. <dd><p>This must be followed by a symbol name, a positive number, and
  79. <code>&quot;bss&quot;</code>. This behaves somewhat like <code>.comm</code>, but the
  80. syntax is different.
  81. </p>
  82. <a name="index-half-directive_002c-SPARC"></a>
  83. </dd>
  84. <dt><code>.half</code></dt>
  85. <dd><p>This is functionally identical to <code>.short</code>.
  86. </p>
  87. <a name="index-nword-directive_002c-SPARC"></a>
  88. </dd>
  89. <dt><code>.nword</code></dt>
  90. <dd><p>On the Sparc, the <code>.nword</code> directive produces native word sized value,
  91. ie. if assembling with -32 it is equivalent to <code>.word</code>, if assembling
  92. with -64 it is equivalent to <code>.xword</code>.
  93. </p>
  94. <a name="index-proc-directive_002c-SPARC"></a>
  95. </dd>
  96. <dt><code>.proc</code></dt>
  97. <dd><p>This directive is ignored. Any text following it on the same
  98. line is also ignored.
  99. </p>
  100. <a name="index-register-directive_002c-SPARC"></a>
  101. </dd>
  102. <dt><code>.register</code></dt>
  103. <dd><p>This directive declares use of a global application or system register.
  104. It must be followed by a register name %g2, %g3, %g6 or %g7, comma and
  105. the symbol name for that register. If symbol name is <code>#scratch</code>,
  106. it is a scratch register, if it is <code>#ignore</code>, it just suppresses any
  107. errors about using undeclared global register, but does not emit any
  108. information about it into the object file. This can be useful e.g. if you
  109. save the register before use and restore it after.
  110. </p>
  111. <a name="index-reserve-directive_002c-SPARC"></a>
  112. </dd>
  113. <dt><code>.reserve</code></dt>
  114. <dd><p>This must be followed by a symbol name, a positive number, and
  115. <code>&quot;bss&quot;</code>. This behaves somewhat like <code>.lcomm</code>, but the
  116. syntax is different.
  117. </p>
  118. <a name="index-seg-directive_002c-SPARC"></a>
  119. </dd>
  120. <dt><code>.seg</code></dt>
  121. <dd><p>This must be followed by <code>&quot;text&quot;</code>, <code>&quot;data&quot;</code>, or
  122. <code>&quot;data1&quot;</code>. It behaves like <code>.text</code>, <code>.data</code>, or
  123. <code>.data 1</code>.
  124. </p>
  125. <a name="index-skip-directive_002c-SPARC"></a>
  126. </dd>
  127. <dt><code>.skip</code></dt>
  128. <dd><p>This is functionally identical to the <code>.space</code> directive.
  129. </p>
  130. <a name="index-word-directive_002c-SPARC"></a>
  131. </dd>
  132. <dt><code>.word</code></dt>
  133. <dd><p>On the Sparc, the <code>.word</code> directive produces 32 bit values,
  134. instead of the 16 bit values it produces on many other machines.
  135. </p>
  136. <a name="index-xword-directive_002c-SPARC"></a>
  137. </dd>
  138. <dt><code>.xword</code></dt>
  139. <dd><p>On the Sparc V9 processor, the <code>.xword</code> directive produces
  140. 64 bit values.
  141. </p></dd>
  142. </dl>
  143. <hr>
  144. <div class="header">
  145. <p>
  146. Previous: <a href="Sparc_002dFloat.html#Sparc_002dFloat" accesskey="p" rel="prev">Sparc-Float</a>, Up: <a href="Sparc_002dDependent.html#Sparc_002dDependent" accesskey="u" rel="up">Sparc-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>
  147. </div>
  148. </body>
  149. </html>