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.

182 lines
8.7KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Alignment Output (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Alignment Output (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Alignment Output (GNU Compiler Collection (GCC) Internals)">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Assembler-Format.html#Assembler-Format" rel="up" title="Assembler Format">
  30. <link href="Debugging-Info.html#Debugging-Info" rel="next" title="Debugging Info">
  31. <link href="Exception-Region-Output.html#Exception-Region-Output" rel="prev" title="Exception Region Output">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="Alignment-Output"></a>
  62. <div class="header">
  63. <p>
  64. Previous: <a href="Exception-Region-Output.html#Exception-Region-Output" accesskey="p" rel="prev">Exception Region Output</a>, Up: <a href="Assembler-Format.html#Assembler-Format" accesskey="u" rel="up">Assembler Format</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="Assembler-Commands-for-Alignment"></a>
  68. <h4 class="subsection">18.20.10 Assembler Commands for Alignment</h4>
  69. <p>This describes commands for alignment.
  70. </p>
  71. <dl>
  72. <dt><a name="index-JUMP_005fALIGN"></a>Macro: <strong>JUMP_ALIGN</strong> <em>(<var>label</var>)</em></dt>
  73. <dd><p>The alignment (log base 2) to put in front of <var>label</var>, which is
  74. a common destination of jumps and has no fallthru incoming edge.
  75. </p>
  76. <p>This macro need not be defined if you don&rsquo;t want any special alignment
  77. to be done at such a time. Most machine descriptions do not currently
  78. define the macro.
  79. </p>
  80. <p>Unless it&rsquo;s necessary to inspect the <var>label</var> parameter, it is better
  81. to set the variable <var>align_jumps</var> in the target&rsquo;s
  82. <code>TARGET_OPTION_OVERRIDE</code>. Otherwise, you should try to honor the user&rsquo;s
  83. selection in <var>align_jumps</var> in a <code>JUMP_ALIGN</code> implementation.
  84. </p></dd></dl>
  85. <dl>
  86. <dt><a name="index-LABEL_005fALIGN_005fAFTER_005fBARRIER"></a>Macro: <strong>LABEL_ALIGN_AFTER_BARRIER</strong> <em>(<var>label</var>)</em></dt>
  87. <dd><p>The alignment (log base 2) to put in front of <var>label</var>, which follows
  88. a <code>BARRIER</code>.
  89. </p>
  90. <p>This macro need not be defined if you don&rsquo;t want any special alignment
  91. to be done at such a time. Most machine descriptions do not currently
  92. define the macro.
  93. </p></dd></dl>
  94. <dl>
  95. <dt><a name="index-LOOP_005fALIGN"></a>Macro: <strong>LOOP_ALIGN</strong> <em>(<var>label</var>)</em></dt>
  96. <dd><p>The alignment (log base 2) to put in front of <var>label</var> that heads
  97. a frequently executed basic block (usually the header of a loop).
  98. </p>
  99. <p>This macro need not be defined if you don&rsquo;t want any special alignment
  100. to be done at such a time. Most machine descriptions do not currently
  101. define the macro.
  102. </p>
  103. <p>Unless it&rsquo;s necessary to inspect the <var>label</var> parameter, it is better
  104. to set the variable <code>align_loops</code> in the target&rsquo;s
  105. <code>TARGET_OPTION_OVERRIDE</code>. Otherwise, you should try to honor the user&rsquo;s
  106. selection in <code>align_loops</code> in a <code>LOOP_ALIGN</code> implementation.
  107. </p></dd></dl>
  108. <dl>
  109. <dt><a name="index-LABEL_005fALIGN"></a>Macro: <strong>LABEL_ALIGN</strong> <em>(<var>label</var>)</em></dt>
  110. <dd><p>The alignment (log base 2) to put in front of <var>label</var>.
  111. If <code>LABEL_ALIGN_AFTER_BARRIER</code> / <code>LOOP_ALIGN</code> specify a different alignment,
  112. the maximum of the specified values is used.
  113. </p>
  114. <p>Unless it&rsquo;s necessary to inspect the <var>label</var> parameter, it is better
  115. to set the variable <code>align_labels</code> in the target&rsquo;s
  116. <code>TARGET_OPTION_OVERRIDE</code>. Otherwise, you should try to honor the user&rsquo;s
  117. selection in <code>align_labels</code> in a <code>LABEL_ALIGN</code> implementation.
  118. </p></dd></dl>
  119. <dl>
  120. <dt><a name="index-ASM_005fOUTPUT_005fSKIP"></a>Macro: <strong>ASM_OUTPUT_SKIP</strong> <em>(<var>stream</var>, <var>nbytes</var>)</em></dt>
  121. <dd><p>A C statement to output to the stdio stream <var>stream</var> an assembler
  122. instruction to advance the location counter by <var>nbytes</var> bytes.
  123. Those bytes should be zero when loaded. <var>nbytes</var> will be a C
  124. expression of type <code>unsigned HOST_WIDE_INT</code>.
  125. </p></dd></dl>
  126. <dl>
  127. <dt><a name="index-ASM_005fNO_005fSKIP_005fIN_005fTEXT"></a>Macro: <strong>ASM_NO_SKIP_IN_TEXT</strong></dt>
  128. <dd><p>Define this macro if <code>ASM_OUTPUT_SKIP</code> should not be used in the
  129. text section because it fails to put zeros in the bytes that are skipped.
  130. This is true on many Unix systems, where the pseudo&ndash;op to skip bytes
  131. produces no-op instructions rather than zeros when used in the text
  132. section.
  133. </p></dd></dl>
  134. <dl>
  135. <dt><a name="index-ASM_005fOUTPUT_005fALIGN"></a>Macro: <strong>ASM_OUTPUT_ALIGN</strong> <em>(<var>stream</var>, <var>power</var>)</em></dt>
  136. <dd><p>A C statement to output to the stdio stream <var>stream</var> an assembler
  137. command to advance the location counter to a multiple of 2 to the
  138. <var>power</var> bytes. <var>power</var> will be a C expression of type <code>int</code>.
  139. </p></dd></dl>
  140. <dl>
  141. <dt><a name="index-ASM_005fOUTPUT_005fALIGN_005fWITH_005fNOP"></a>Macro: <strong>ASM_OUTPUT_ALIGN_WITH_NOP</strong> <em>(<var>stream</var>, <var>power</var>)</em></dt>
  142. <dd><p>Like <code>ASM_OUTPUT_ALIGN</code>, except that the &ldquo;nop&rdquo; instruction is used
  143. for padding, if necessary.
  144. </p></dd></dl>
  145. <dl>
  146. <dt><a name="index-ASM_005fOUTPUT_005fMAX_005fSKIP_005fALIGN"></a>Macro: <strong>ASM_OUTPUT_MAX_SKIP_ALIGN</strong> <em>(<var>stream</var>, <var>power</var>, <var>max_skip</var>)</em></dt>
  147. <dd><p>A C statement to output to the stdio stream <var>stream</var> an assembler
  148. command to advance the location counter to a multiple of 2 to the
  149. <var>power</var> bytes, but only if <var>max_skip</var> or fewer bytes are needed to
  150. satisfy the alignment request. <var>power</var> and <var>max_skip</var> will be
  151. a C expression of type <code>int</code>.
  152. </p></dd></dl>
  153. <hr>
  154. <div class="header">
  155. <p>
  156. Previous: <a href="Exception-Region-Output.html#Exception-Region-Output" accesskey="p" rel="prev">Exception Region Output</a>, Up: <a href="Assembler-Format.html#Assembler-Format" accesskey="u" rel="up">Assembler Format</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  157. </div>
  158. </body>
  159. </html>