Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

3 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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>Stab (Using as)</title>
  16. <meta name="description" content="Stab (Using as)">
  17. <meta name="keywords" content="Stab (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="Pseudo-Ops.html#Pseudo-Ops" rel="up" title="Pseudo Ops">
  25. <link href="String.html#String" rel="next" title="String">
  26. <link href="Space.html#Space" rel="prev" title="Space">
  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="Stab"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="String.html#String" accesskey="n" rel="next">String</a>, Previous: <a href="Space.html#Space" accesskey="p" rel="prev">Space</a>, Up: <a href="Pseudo-Ops.html#Pseudo-Ops" accesskey="u" rel="up">Pseudo Ops</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="g_t_002estabd_002c-_002estabn_002c-_002estabs"></a>
  63. <h3 class="section">7.91 <code>.stabd, .stabn, .stabs</code></h3>
  64. <a name="index-symbolic-debuggers_002c-information-for"></a>
  65. <a name="index-stabx-directives"></a>
  66. <p>There are three directives that begin &lsquo;<samp>.stab</samp>&rsquo;.
  67. All emit symbols (see <a href="Symbols.html#Symbols">Symbols</a>), for use by symbolic debuggers.
  68. The symbols are not entered in the <code>as</code> hash table: they
  69. cannot be referenced elsewhere in the source file.
  70. Up to five fields are required:
  71. </p>
  72. <dl compact="compact">
  73. <dt><var>string</var></dt>
  74. <dd><p>This is the symbol&rsquo;s name. It may contain any character except
  75. &lsquo;<samp>\000</samp>&rsquo;, so is more general than ordinary symbol names. Some
  76. debuggers used to code arbitrarily complex structures into symbol names
  77. using this field.
  78. </p>
  79. </dd>
  80. <dt><var>type</var></dt>
  81. <dd><p>An absolute expression. The symbol&rsquo;s type is set to the low 8 bits of
  82. this expression. Any bit pattern is permitted, but <code>ld</code>
  83. and debuggers choke on silly bit patterns.
  84. </p>
  85. </dd>
  86. <dt><var>other</var></dt>
  87. <dd><p>An absolute expression. The symbol&rsquo;s &ldquo;other&rdquo; attribute is set to the
  88. low 8 bits of this expression.
  89. </p>
  90. </dd>
  91. <dt><var>desc</var></dt>
  92. <dd><p>An absolute expression. The symbol&rsquo;s descriptor is set to the low 16
  93. bits of this expression.
  94. </p>
  95. </dd>
  96. <dt><var>value</var></dt>
  97. <dd><p>An absolute expression which becomes the symbol&rsquo;s value.
  98. </p></dd>
  99. </dl>
  100. <p>If a warning is detected while reading a <code>.stabd</code>, <code>.stabn</code>,
  101. or <code>.stabs</code> statement, the symbol has probably already been created;
  102. you get a half-formed symbol in your object file. This is
  103. compatible with earlier assemblers!
  104. </p>
  105. <dl compact="compact">
  106. <dd><a name="index-stabd-directive"></a>
  107. </dd>
  108. <dt><code>.stabd <var>type</var> , <var>other</var> , <var>desc</var></code></dt>
  109. <dd>
  110. <p>The &ldquo;name&rdquo; of the symbol generated is not even an empty string.
  111. It is a null pointer, for compatibility. Older assemblers used a
  112. null pointer so they didn&rsquo;t waste space in object files with empty
  113. strings.
  114. </p>
  115. <p>The symbol&rsquo;s value is set to the location counter,
  116. relocatably. When your program is linked, the value of this symbol
  117. is the address of the location counter when the <code>.stabd</code> was
  118. assembled.
  119. </p>
  120. <a name="index-stabn-directive"></a>
  121. </dd>
  122. <dt><code>.stabn <var>type</var> , <var>other</var> , <var>desc</var> , <var>value</var></code></dt>
  123. <dd><p>The name of the symbol is set to the empty string <code>&quot;&quot;</code>.
  124. </p>
  125. <a name="index-stabs-directive"></a>
  126. </dd>
  127. <dt><code>.stabs <var>string</var> , <var>type</var> , <var>other</var> , <var>desc</var> , <var>value</var></code></dt>
  128. <dd><p>All five fields are specified.
  129. </p></dd>
  130. </dl>
  131. <hr>
  132. <div class="header">
  133. <p>
  134. Next: <a href="String.html#String" accesskey="n" rel="next">String</a>, Previous: <a href="Space.html#Space" accesskey="p" rel="prev">Space</a>, Up: <a href="Pseudo-Ops.html#Pseudo-Ops" accesskey="u" rel="up">Pseudo Ops</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>
  135. </div>
  136. </body>
  137. </html>