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.

162 lines
6.6KB

  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>MeP Pragmas (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="MeP Pragmas (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="MeP Pragmas (Using the GNU Compiler Collection (GCC))">
  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="Pragmas.html#Pragmas" rel="up" title="Pragmas">
  30. <link href="PRU-Pragmas.html#PRU-Pragmas" rel="next" title="PRU Pragmas">
  31. <link href="M32C-Pragmas.html#M32C-Pragmas" rel="prev" title="M32C Pragmas">
  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="MeP-Pragmas"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="PRU-Pragmas.html#PRU-Pragmas" accesskey="n" rel="next">PRU Pragmas</a>, Previous: <a href="M32C-Pragmas.html#M32C-Pragmas" accesskey="p" rel="prev">M32C Pragmas</a>, Up: <a href="Pragmas.html#Pragmas" accesskey="u" rel="up">Pragmas</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="MeP-Pragmas-1"></a>
  68. <h4 class="subsection">6.62.4 MeP Pragmas</h4>
  69. <dl compact="compact">
  70. <dt><code>custom io_volatile (on|off)</code></dt>
  71. <dd><a name="index-pragma_002c-custom-io_005fvolatile"></a>
  72. <p>Overrides the command-line option <code>-mio-volatile</code> for the current
  73. file. Note that for compatibility with future GCC releases, this
  74. option should only be used once before any <code>io</code> variables in each
  75. file.
  76. </p>
  77. </dd>
  78. <dt><code>GCC coprocessor available <var>registers</var></code></dt>
  79. <dd><a name="index-pragma_002c-coprocessor-available"></a>
  80. <p>Specifies which coprocessor registers are available to the register
  81. allocator. <var>registers</var> may be a single register, register range
  82. separated by ellipses, or comma-separated list of those. Example:
  83. </p>
  84. <div class="smallexample">
  85. <pre class="smallexample">#pragma GCC coprocessor available $c0...$c10, $c28
  86. </pre></div>
  87. </dd>
  88. <dt><code>GCC coprocessor call_saved <var>registers</var></code></dt>
  89. <dd><a name="index-pragma_002c-coprocessor-call_005fsaved"></a>
  90. <p>Specifies which coprocessor registers are to be saved and restored by
  91. any function using them. <var>registers</var> may be a single register,
  92. register range separated by ellipses, or comma-separated list of
  93. those. Example:
  94. </p>
  95. <div class="smallexample">
  96. <pre class="smallexample">#pragma GCC coprocessor call_saved $c4...$c6, $c31
  97. </pre></div>
  98. </dd>
  99. <dt><code>GCC coprocessor subclass '(A|B|C|D)' = <var>registers</var></code></dt>
  100. <dd><a name="index-pragma_002c-coprocessor-subclass"></a>
  101. <p>Creates and defines a register class. These register classes can be
  102. used by inline <code>asm</code> constructs. <var>registers</var> may be a single
  103. register, register range separated by ellipses, or comma-separated
  104. list of those. Example:
  105. </p>
  106. <div class="smallexample">
  107. <pre class="smallexample">#pragma GCC coprocessor subclass 'B' = $c2, $c4, $c6
  108. asm (&quot;cpfoo %0&quot; : &quot;=B&quot; (x));
  109. </pre></div>
  110. </dd>
  111. <dt><code>GCC disinterrupt <var>name</var> , <var>name</var> &hellip;</code></dt>
  112. <dd><a name="index-pragma_002c-disinterrupt"></a>
  113. <p>For the named functions, the compiler adds code to disable interrupts
  114. for the duration of those functions. If any functions so named
  115. are not encountered in the source, a warning is emitted that the pragma is
  116. not used. Examples:
  117. </p>
  118. <div class="smallexample">
  119. <pre class="smallexample">#pragma disinterrupt foo
  120. #pragma disinterrupt bar, grill
  121. int foo () { &hellip; }
  122. </pre></div>
  123. </dd>
  124. <dt><code>GCC call <var>name</var> , <var>name</var> &hellip;</code></dt>
  125. <dd><a name="index-pragma_002c-call"></a>
  126. <p>For the named functions, the compiler always uses a register-indirect
  127. call model when calling the named functions. Examples:
  128. </p>
  129. <div class="smallexample">
  130. <pre class="smallexample">extern int foo ();
  131. #pragma call foo
  132. </pre></div>
  133. </dd>
  134. </dl>
  135. <hr>
  136. <div class="header">
  137. <p>
  138. Next: <a href="PRU-Pragmas.html#PRU-Pragmas" accesskey="n" rel="next">PRU Pragmas</a>, Previous: <a href="M32C-Pragmas.html#M32C-Pragmas" accesskey="p" rel="prev">M32C Pragmas</a>, Up: <a href="Pragmas.html#Pragmas" accesskey="u" rel="up">Pragmas</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>
  139. </div>
  140. </body>
  141. </html>