TIC6X-Directives.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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-2017 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 5.2, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <title>Using as: TIC6X Directives</title>
  15. <meta name="description" content="Using as: TIC6X Directives">
  16. <meta name="keywords" content="Using as: TIC6X Directives">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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="TIC6X_002dDependent.html#TIC6X_002dDependent" rel="up" title="TIC6X-Dependent">
  25. <link href="TILE_002dGx_002dDependent.html#TILE_002dGx_002dDependent" rel="next" title="TILE-Gx-Dependent">
  26. <link href="TIC6X-Syntax.html#TIC6X-Syntax" rel="prev" title="TIC6X Syntax">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.smallquotation {font-size: smaller}
  31. div.display {margin-left: 3.2em}
  32. div.example {margin-left: 3.2em}
  33. div.indentedblock {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  49. span.nolinebreak {white-space:nowrap}
  50. span.roman {font-family:serif; font-weight:normal}
  51. span.sansserif {font-family:sans-serif; font-weight:normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  57. <a name="TIC6X-Directives"></a>
  58. <div class="header">
  59. <p>
  60. Previous: <a href="TIC6X-Syntax.html#TIC6X-Syntax" accesskey="p" rel="prev">TIC6X Syntax</a>, Up: <a href="TIC6X_002dDependent.html#TIC6X_002dDependent" accesskey="u" rel="up">TIC6X-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>
  61. </div>
  62. <hr>
  63. <a name="TIC6X-Directives-1"></a>
  64. <h4 class="subsection">9.45.3 TIC6X Directives</h4>
  65. <a name="index-machine-directives_002c-TIC6X"></a>
  66. <a name="index-TIC6X-machine-directives"></a>
  67. <p>Directives controlling the set of instructions accepted by the
  68. assembler have effect for instructions between the directive and any
  69. subsequent directive overriding it.
  70. </p>
  71. <dl compact="compact">
  72. <dd>
  73. <a name="index-_002earch-directive_002c-TIC6X"></a>
  74. </dd>
  75. <dt><code>.arch <var>arch</var></code></dt>
  76. <dd><p>This has the same effect as <samp>-march=<var>arch</var></samp>.
  77. </p>
  78. <a name="index-_002ecantunwind-directive_002c-TIC6X"></a>
  79. </dd>
  80. <dt><code>.cantunwind</code></dt>
  81. <dd><p>Prevents unwinding through the current function. No personality routine
  82. or exception table data is required or permitted.
  83. </p>
  84. <p>If this is not specified then frame unwinding information will be
  85. constructed from CFI directives. see <a href="CFI-directives.html#CFI-directives">CFI directives</a>.
  86. </p>
  87. <a name="index-_002ec6xabi_005fattribute-directive_002c-TIC6X"></a>
  88. </dd>
  89. <dt><code>.c6xabi_attribute <var>tag</var>, <var>value</var></code></dt>
  90. <dd><p>Set the C6000 EABI build attribute <var>tag</var> to <var>value</var>.
  91. </p>
  92. <p>The <var>tag</var> is either an attribute number or one of
  93. <code>Tag_ISA</code>, <code>Tag_ABI_wchar_t</code>,
  94. <code>Tag_ABI_stack_align_needed</code>,
  95. <code>Tag_ABI_stack_align_preserved</code>, <code>Tag_ABI_DSBT</code>,
  96. <code>Tag_ABI_PID</code>, <code>Tag_ABI_PIC</code>,
  97. <code>TAG_ABI_array_object_alignment</code>,
  98. <code>TAG_ABI_array_object_align_expected</code>,
  99. <code>Tag_ABI_compatibility</code> and <code>Tag_ABI_conformance</code>. The
  100. <var>value</var> is either a <code>number</code>, <code>&quot;string&quot;</code>, or
  101. <code>number, &quot;string&quot;</code> depending on the tag.
  102. </p>
  103. <a name="index-_002eehtype-directive_002c-TIC6X"></a>
  104. </dd>
  105. <dt><code>.ehtype <var>symbol</var></code></dt>
  106. <dd><p>Output an exception type table reference to <var>symbol</var>.
  107. </p>
  108. <a name="index-_002eendp-directive_002c-TIC6X"></a>
  109. </dd>
  110. <dt><code>.endp</code></dt>
  111. <dd><p>Marks the end of and exception table or function. If preceeded by a
  112. <code>.handlerdata</code> directive then this also switched back to the previous
  113. text section.
  114. </p>
  115. <a name="index-_002ehandlerdata-directive_002c-TIC6X"></a>
  116. </dd>
  117. <dt><code>.handlerdata</code></dt>
  118. <dd><p>Marks the end of the current function, and the start of the exception table
  119. entry for that function. Anything between this directive and the
  120. <code>.endp</code> directive will be added to the exception table entry.
  121. </p>
  122. <p>Must be preceded by a CFI block containing a <code>.cfi_lsda</code> directive.
  123. </p>
  124. <a name="index-_002enocmp-directive_002c-TIC6X"></a>
  125. </dd>
  126. <dt><code>.nocmp</code></dt>
  127. <dd><p>Disallow use of C64x+ compact instructions in the current text
  128. section.
  129. </p>
  130. <a name="index-_002epersonalityindex-directive_002c-TIC6X"></a>
  131. </dd>
  132. <dt><code>.personalityindex <var>index</var></code></dt>
  133. <dd><p>Sets the personality routine for the current function to the ABI specified
  134. compact routine number <var>index</var>
  135. </p>
  136. <a name="index-_002epersonality-directive_002c-TIC6X"></a>
  137. </dd>
  138. <dt><code>.personality <var>name</var></code></dt>
  139. <dd><p>Sets the personality routine for the current function to <var>name</var>.
  140. </p>
  141. <a name="index-_002escomm-directive_002c-TIC6X"></a>
  142. </dd>
  143. <dt><code>.scomm <var>symbol</var>, <var>size</var>, <var>align</var></code></dt>
  144. <dd><p>Like <code>.comm</code>, creating a common symbol <var>symbol</var> with size <var>size</var>
  145. and alignment <var>align</var>, but unlike when using <code>.comm</code>, this symbol
  146. will be placed into the small BSS section by the linker.
  147. </p>
  148. </dd>
  149. </dl>
  150. <hr>
  151. <div class="header">
  152. <p>
  153. Previous: <a href="TIC6X-Syntax.html#TIC6X-Syntax" accesskey="p" rel="prev">TIC6X Syntax</a>, Up: <a href="TIC6X_002dDependent.html#TIC6X_002dDependent" accesskey="u" rel="up">TIC6X-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>
  154. </div>
  155. </body>
  156. </html>