Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

206 Zeilen
8.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>GNU Object Attributes (Using as)</title>
  16. <meta name="description" content="GNU Object Attributes (Using as)">
  17. <meta name="keywords" content="GNU Object Attributes (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="Object-Attributes.html#Object-Attributes" rel="up" title="Object Attributes">
  25. <link href="Defining-New-Object-Attributes.html#Defining-New-Object-Attributes" rel="next" title="Defining New Object Attributes">
  26. <link href="Object-Attributes.html#Object-Attributes" rel="prev" title="Object Attributes">
  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="GNU-Object-Attributes"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="Defining-New-Object-Attributes.html#Defining-New-Object-Attributes" accesskey="n" rel="next">Defining New Object Attributes</a>, Up: <a href="Object-Attributes.html#Object-Attributes" accesskey="u" rel="up">Object Attributes</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="GNU-Object-Attributes-1"></a>
  63. <h3 class="section">8.1 <small>GNU</small> Object Attributes</h3>
  64. <p>The <code>.gnu_attribute</code> directive records an object attribute
  65. with vendor &lsquo;<samp>gnu</samp>&rsquo;.
  66. </p>
  67. <p>Except for &lsquo;<samp>Tag_compatibility</samp>&rsquo;, which has both an integer and a string for
  68. its value, <small>GNU</small> attributes have a string value if the tag number is odd and
  69. an integer value if the tag number is even. The second bit (<code><var>tag</var> &amp;
  70. 2</code> is set for architecture-independent attributes and clear for
  71. architecture-dependent ones.
  72. </p>
  73. <a name="Common-GNU-attributes"></a>
  74. <h4 class="subsection">8.1.1 Common <small>GNU</small> attributes</h4>
  75. <p>These attributes are valid on all architectures.
  76. </p>
  77. <dl compact="compact">
  78. <dt><span class="roman">Tag_compatibility (32)</span></dt>
  79. <dd><p>The compatibility attribute takes an integer flag value and a vendor name. If
  80. the flag value is 0, the file is compatible with other toolchains. If it is 1,
  81. then the file is only compatible with the named toolchain. If it is greater
  82. than 1, the file can only be processed by other toolchains under some private
  83. arrangement indicated by the flag value and the vendor name.
  84. </p></dd>
  85. </dl>
  86. <a name="M680x0-Attributes"></a>
  87. <h4 class="subsection">8.1.2 M680x0 Attributes</h4>
  88. <dl compact="compact">
  89. <dt><span class="roman">Tag_GNU_M68K_ABI_FP (4)</span></dt>
  90. <dd><p>The floating-point ABI used by this object file. The value will be:
  91. </p>
  92. <ul>
  93. <li> 0 for files not affected by the floating-point ABI.
  94. </li><li> 1 for files using double-precision hardware floating-point ABI.
  95. </li><li> 2 for files using the software floating-point ABI.
  96. </li></ul>
  97. </dd>
  98. </dl>
  99. <a name="MIPS-Attributes"></a>
  100. <h4 class="subsection">8.1.3 MIPS Attributes</h4>
  101. <dl compact="compact">
  102. <dt><span class="roman">Tag_GNU_MIPS_ABI_FP (4)</span></dt>
  103. <dd><p>The floating-point ABI used by this object file. The value will be:
  104. </p>
  105. <ul>
  106. <li> 0 for files not affected by the floating-point ABI.
  107. </li><li> 1 for files using the hardware floating-point ABI with a standard
  108. double-precision FPU.
  109. </li><li> 2 for files using the hardware floating-point ABI with a single-precision FPU.
  110. </li><li> 3 for files using the software floating-point ABI.
  111. </li><li> 4 for files using the deprecated hardware floating-point ABI which used 64-bit
  112. floating-point registers, 32-bit general-purpose registers and increased the
  113. number of callee-saved floating-point registers.
  114. </li><li> 5 for files using the hardware floating-point ABI with a double-precision FPU
  115. with either 32-bit or 64-bit floating-point registers and 32-bit
  116. general-purpose registers.
  117. </li><li> 6 for files using the hardware floating-point ABI with 64-bit floating-point
  118. registers and 32-bit general-purpose registers.
  119. </li><li> 7 for files using the hardware floating-point ABI with 64-bit floating-point
  120. registers, 32-bit general-purpose registers and a rule that forbids the
  121. direct use of odd-numbered single-precision floating-point registers.
  122. </li></ul>
  123. </dd>
  124. </dl>
  125. <a name="PowerPC-Attributes"></a>
  126. <h4 class="subsection">8.1.4 PowerPC Attributes</h4>
  127. <dl compact="compact">
  128. <dt><span class="roman">Tag_GNU_Power_ABI_FP (4)</span></dt>
  129. <dd><p>The floating-point ABI used by this object file. The value will be:
  130. </p>
  131. <ul>
  132. <li> 0 for files not affected by the floating-point ABI.
  133. </li><li> 1 for files using double-precision hardware floating-point ABI.
  134. </li><li> 2 for files using the software floating-point ABI.
  135. </li><li> 3 for files using single-precision hardware floating-point ABI.
  136. </li></ul>
  137. </dd>
  138. <dt><span class="roman">Tag_GNU_Power_ABI_Vector (8)</span></dt>
  139. <dd><p>The vector ABI used by this object file. The value will be:
  140. </p>
  141. <ul>
  142. <li> 0 for files not affected by the vector ABI.
  143. </li><li> 1 for files using general purpose registers to pass vectors.
  144. </li><li> 2 for files using AltiVec registers to pass vectors.
  145. </li><li> 3 for files using SPE registers to pass vectors.
  146. </li></ul>
  147. </dd>
  148. </dl>
  149. <a name="IBM-z-Systems-Attributes"></a>
  150. <h4 class="subsection">8.1.5 IBM z Systems Attributes</h4>
  151. <dl compact="compact">
  152. <dt><span class="roman">Tag_GNU_S390_ABI_Vector (8)</span></dt>
  153. <dd><p>The vector ABI used by this object file. The value will be:
  154. </p>
  155. <ul>
  156. <li> 0 for files not affected by the vector ABI.
  157. </li><li> 1 for files using software vector ABI.
  158. </li><li> 2 for files using hardware vector ABI.
  159. </li></ul>
  160. </dd>
  161. </dl>
  162. <a name="MSP430-Attributes"></a>
  163. <h4 class="subsection">8.1.6 MSP430 Attributes</h4>
  164. <dl compact="compact">
  165. <dt><span class="roman">Tag_GNU_MSP430_Data_Region (4)</span></dt>
  166. <dd><p>The data region used by this object file. The value will be:
  167. </p>
  168. <ul>
  169. <li> 0 for files not using the large memory model.
  170. </li><li> 1 for files which have been compiled with the condition that all
  171. data is in the lower memory region, i.e. below address 0x10000.
  172. </li><li> 2 for files which allow data to be placed in the full 20-bit memory range.
  173. </li></ul>
  174. </dd>
  175. </dl>
  176. <hr>
  177. <div class="header">
  178. <p>
  179. Next: <a href="Defining-New-Object-Attributes.html#Defining-New-Object-Attributes" accesskey="n" rel="next">Defining New Object Attributes</a>, Up: <a href="Object-Attributes.html#Object-Attributes" accesskey="u" rel="up">Object Attributes</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>
  180. </div>
  181. </body>
  182. </html>