Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

342 rindas
16KB

  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>HPPA Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="HPPA Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="HPPA Options (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="Submodel-Options.html#Submodel-Options" rel="up" title="Submodel Options">
  30. <link href="IA_002d64-Options.html#IA_002d64-Options" rel="next" title="IA-64 Options">
  31. <link href="H8_002f300-Options.html#H8_002f300-Options" rel="prev" title="H8/300 Options">
  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="HPPA-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="IA_002d64-Options.html#IA_002d64-Options" accesskey="n" rel="next">IA-64 Options</a>, Previous: <a href="H8_002f300-Options.html#H8_002f300-Options" accesskey="p" rel="prev">H8/300 Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</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="HPPA-Options-1"></a>
  68. <h4 class="subsection">3.19.20 HPPA Options</h4>
  69. <a name="index-HPPA-Options"></a>
  70. <p>These &lsquo;<samp>-m</samp>&rsquo; options are defined for the HPPA family of computers:
  71. </p>
  72. <dl compact="compact">
  73. <dt><code>-march=<var>architecture-type</var></code></dt>
  74. <dd><a name="index-march-5"></a>
  75. <p>Generate code for the specified architecture. The choices for
  76. <var>architecture-type</var> are &lsquo;<samp>1.0</samp>&rsquo; for PA 1.0, &lsquo;<samp>1.1</samp>&rsquo; for PA
  77. 1.1, and &lsquo;<samp>2.0</samp>&rsquo; for PA 2.0 processors. Refer to
  78. <samp>/usr/lib/sched.models</samp> on an HP-UX system to determine the proper
  79. architecture option for your machine. Code compiled for lower numbered
  80. architectures runs on higher numbered architectures, but not the
  81. other way around.
  82. </p>
  83. </dd>
  84. <dt><code>-mpa-risc-1-0</code></dt>
  85. <dt><code>-mpa-risc-1-1</code></dt>
  86. <dt><code>-mpa-risc-2-0</code></dt>
  87. <dd><a name="index-mpa_002drisc_002d1_002d0"></a>
  88. <a name="index-mpa_002drisc_002d1_002d1"></a>
  89. <a name="index-mpa_002drisc_002d2_002d0"></a>
  90. <p>Synonyms for <samp>-march=1.0</samp>, <samp>-march=1.1</samp>, and <samp>-march=2.0</samp> respectively.
  91. </p>
  92. </dd>
  93. <dt><code>-mcaller-copies</code></dt>
  94. <dd><a name="index-mcaller_002dcopies"></a>
  95. <p>The caller copies function arguments passed by hidden reference. This
  96. option should be used with care as it is not compatible with the default
  97. 32-bit runtime. However, only aggregates larger than eight bytes are
  98. passed by hidden reference and the option provides better compatibility
  99. with OpenMP.
  100. </p>
  101. </dd>
  102. <dt><code>-mjump-in-delay</code></dt>
  103. <dd><a name="index-mjump_002din_002ddelay"></a>
  104. <p>This option is ignored and provided for compatibility purposes only.
  105. </p>
  106. </dd>
  107. <dt><code>-mdisable-fpregs</code></dt>
  108. <dd><a name="index-mdisable_002dfpregs"></a>
  109. <p>Prevent floating-point registers from being used in any manner. This is
  110. necessary for compiling kernels that perform lazy context switching of
  111. floating-point registers. If you use this option and attempt to perform
  112. floating-point operations, the compiler aborts.
  113. </p>
  114. </dd>
  115. <dt><code>-mdisable-indexing</code></dt>
  116. <dd><a name="index-mdisable_002dindexing"></a>
  117. <p>Prevent the compiler from using indexing address modes. This avoids some
  118. rather obscure problems when compiling MIG generated code under MACH.
  119. </p>
  120. </dd>
  121. <dt><code>-mno-space-regs</code></dt>
  122. <dd><a name="index-mno_002dspace_002dregs"></a>
  123. <a name="index-mspace_002dregs"></a>
  124. <p>Generate code that assumes the target has no space registers. This allows
  125. GCC to generate faster indirect calls and use unscaled index address modes.
  126. </p>
  127. <p>Such code is suitable for level 0 PA systems and kernels.
  128. </p>
  129. </dd>
  130. <dt><code>-mfast-indirect-calls</code></dt>
  131. <dd><a name="index-mfast_002dindirect_002dcalls"></a>
  132. <p>Generate code that assumes calls never cross space boundaries. This
  133. allows GCC to emit code that performs faster indirect calls.
  134. </p>
  135. <p>This option does not work in the presence of shared libraries or nested
  136. functions.
  137. </p>
  138. </dd>
  139. <dt><code>-mfixed-range=<var>register-range</var></code></dt>
  140. <dd><a name="index-mfixed_002drange"></a>
  141. <p>Generate code treating the given register range as fixed registers.
  142. A fixed register is one that the register allocator cannot use. This is
  143. useful when compiling kernel code. A register range is specified as
  144. two registers separated by a dash. Multiple register ranges can be
  145. specified separated by a comma.
  146. </p>
  147. </dd>
  148. <dt><code>-mlong-load-store</code></dt>
  149. <dd><a name="index-mlong_002dload_002dstore"></a>
  150. <p>Generate 3-instruction load and store sequences as sometimes required by
  151. the HP-UX 10 linker. This is equivalent to the &lsquo;<samp>+k</samp>&rsquo; option to
  152. the HP compilers.
  153. </p>
  154. </dd>
  155. <dt><code>-mportable-runtime</code></dt>
  156. <dd><a name="index-mportable_002druntime"></a>
  157. <p>Use the portable calling conventions proposed by HP for ELF systems.
  158. </p>
  159. </dd>
  160. <dt><code>-mgas</code></dt>
  161. <dd><a name="index-mgas"></a>
  162. <p>Enable the use of assembler directives only GAS understands.
  163. </p>
  164. </dd>
  165. <dt><code>-mschedule=<var>cpu-type</var></code></dt>
  166. <dd><a name="index-mschedule"></a>
  167. <p>Schedule code according to the constraints for the machine type
  168. <var>cpu-type</var>. The choices for <var>cpu-type</var> are &lsquo;<samp>700</samp>&rsquo;
  169. &lsquo;<samp>7100</samp>&rsquo;, &lsquo;<samp>7100LC</samp>&rsquo;, &lsquo;<samp>7200</samp>&rsquo;, &lsquo;<samp>7300</samp>&rsquo; and &lsquo;<samp>8000</samp>&rsquo;. Refer
  170. to <samp>/usr/lib/sched.models</samp> on an HP-UX system to determine the
  171. proper scheduling option for your machine. The default scheduling is
  172. &lsquo;<samp>8000</samp>&rsquo;.
  173. </p>
  174. </dd>
  175. <dt><code>-mlinker-opt</code></dt>
  176. <dd><a name="index-mlinker_002dopt"></a>
  177. <p>Enable the optimization pass in the HP-UX linker. Note this makes symbolic
  178. debugging impossible. It also triggers a bug in the HP-UX 8 and HP-UX 9
  179. linkers in which they give bogus error messages when linking some programs.
  180. </p>
  181. </dd>
  182. <dt><code>-msoft-float</code></dt>
  183. <dd><a name="index-msoft_002dfloat-4"></a>
  184. <p>Generate output containing library calls for floating point.
  185. <strong>Warning:</strong> the requisite libraries are not available for all HPPA
  186. targets. Normally the facilities of the machine&rsquo;s usual C compiler are
  187. used, but this cannot be done directly in cross-compilation. You must make
  188. your own arrangements to provide suitable library functions for
  189. cross-compilation.
  190. </p>
  191. <p><samp>-msoft-float</samp> changes the calling convention in the output file;
  192. therefore, it is only useful if you compile <em>all</em> of a program with
  193. this option. In particular, you need to compile <samp>libgcc.a</samp>, the
  194. library that comes with GCC, with <samp>-msoft-float</samp> in order for
  195. this to work.
  196. </p>
  197. </dd>
  198. <dt><code>-msio</code></dt>
  199. <dd><a name="index-msio"></a>
  200. <p>Generate the predefine, <code>_SIO</code>, for server IO. The default is
  201. <samp>-mwsio</samp>. This generates the predefines, <code>__hp9000s700</code>,
  202. <code>__hp9000s700__</code> and <code>_WSIO</code>, for workstation IO. These
  203. options are available under HP-UX and HI-UX.
  204. </p>
  205. </dd>
  206. <dt><code>-mgnu-ld</code></dt>
  207. <dd><a name="index-mgnu_002dld"></a>
  208. <p>Use options specific to GNU <code>ld</code>.
  209. This passes <samp>-shared</samp> to <code>ld</code> when
  210. building a shared library. It is the default when GCC is configured,
  211. explicitly or implicitly, with the GNU linker. This option does not
  212. affect which <code>ld</code> is called; it only changes what parameters
  213. are passed to that <code>ld</code>.
  214. The <code>ld</code> that is called is determined by the
  215. <samp>--with-ld</samp> configure option, GCC&rsquo;s program search path, and
  216. finally by the user&rsquo;s <code>PATH</code>. The linker used by GCC can be printed
  217. using &lsquo;<samp>which `gcc -print-prog-name=ld`</samp>&rsquo;. This option is only available
  218. on the 64-bit HP-UX GCC, i.e. configured with &lsquo;<samp>hppa*64*-*-hpux*</samp>&rsquo;.
  219. </p>
  220. </dd>
  221. <dt><code>-mhp-ld</code></dt>
  222. <dd><a name="index-mhp_002dld"></a>
  223. <p>Use options specific to HP <code>ld</code>.
  224. This passes <samp>-b</samp> to <code>ld</code> when building
  225. a shared library and passes <samp>+Accept TypeMismatch</samp> to <code>ld</code> on all
  226. links. It is the default when GCC is configured, explicitly or
  227. implicitly, with the HP linker. This option does not affect
  228. which <code>ld</code> is called; it only changes what parameters are passed to that
  229. <code>ld</code>.
  230. The <code>ld</code> that is called is determined by the <samp>--with-ld</samp>
  231. configure option, GCC&rsquo;s program search path, and finally by the user&rsquo;s
  232. <code>PATH</code>. The linker used by GCC can be printed using &lsquo;<samp>which
  233. `gcc -print-prog-name=ld`</samp>&rsquo;. This option is only available on the 64-bit
  234. HP-UX GCC, i.e. configured with &lsquo;<samp>hppa*64*-*-hpux*</samp>&rsquo;.
  235. </p>
  236. </dd>
  237. <dt><code>-mlong-calls</code></dt>
  238. <dd><a name="index-mno_002dlong_002dcalls-2"></a>
  239. <a name="index-mlong_002dcalls-5"></a>
  240. <p>Generate code that uses long call sequences. This ensures that a call
  241. is always able to reach linker generated stubs. The default is to generate
  242. long calls only when the distance from the call site to the beginning
  243. of the function or translation unit, as the case may be, exceeds a
  244. predefined limit set by the branch type being used. The limits for
  245. normal calls are 7,600,000 and 240,000 bytes, respectively for the
  246. PA 2.0 and PA 1.X architectures. Sibcalls are always limited at
  247. 240,000 bytes.
  248. </p>
  249. <p>Distances are measured from the beginning of functions when using the
  250. <samp>-ffunction-sections</samp> option, or when using the <samp>-mgas</samp>
  251. and <samp>-mno-portable-runtime</samp> options together under HP-UX with
  252. the SOM linker.
  253. </p>
  254. <p>It is normally not desirable to use this option as it degrades
  255. performance. However, it may be useful in large applications,
  256. particularly when partial linking is used to build the application.
  257. </p>
  258. <p>The types of long calls used depends on the capabilities of the
  259. assembler and linker, and the type of code being generated. The
  260. impact on systems that support long absolute calls, and long pic
  261. symbol-difference or pc-relative calls should be relatively small.
  262. However, an indirect call is used on 32-bit ELF systems in pic code
  263. and it is quite long.
  264. </p>
  265. </dd>
  266. <dt><code>-munix=<var>unix-std</var></code></dt>
  267. <dd><a name="index-march-6"></a>
  268. <p>Generate compiler predefines and select a startfile for the specified
  269. UNIX standard. The choices for <var>unix-std</var> are &lsquo;<samp>93</samp>&rsquo;, &lsquo;<samp>95</samp>&rsquo;
  270. and &lsquo;<samp>98</samp>&rsquo;. &lsquo;<samp>93</samp>&rsquo; is supported on all HP-UX versions. &lsquo;<samp>95</samp>&rsquo;
  271. is available on HP-UX 10.10 and later. &lsquo;<samp>98</samp>&rsquo; is available on HP-UX
  272. 11.11 and later. The default values are &lsquo;<samp>93</samp>&rsquo; for HP-UX 10.00,
  273. &lsquo;<samp>95</samp>&rsquo; for HP-UX 10.10 though to 11.00, and &lsquo;<samp>98</samp>&rsquo; for HP-UX 11.11
  274. and later.
  275. </p>
  276. <p><samp>-munix=93</samp> provides the same predefines as GCC 3.3 and 3.4.
  277. <samp>-munix=95</samp> provides additional predefines for <code>XOPEN_UNIX</code>
  278. and <code>_XOPEN_SOURCE_EXTENDED</code>, and the startfile <samp>unix95.o</samp>.
  279. <samp>-munix=98</samp> provides additional predefines for <code>_XOPEN_UNIX</code>,
  280. <code>_XOPEN_SOURCE_EXTENDED</code>, <code>_INCLUDE__STDC_A1_SOURCE</code> and
  281. <code>_INCLUDE_XOPEN_SOURCE_500</code>, and the startfile <samp>unix98.o</samp>.
  282. </p>
  283. <p>It is <em>important</em> to note that this option changes the interfaces
  284. for various library routines. It also affects the operational behavior
  285. of the C library. Thus, <em>extreme</em> care is needed in using this
  286. option.
  287. </p>
  288. <p>Library code that is intended to operate with more than one UNIX
  289. standard must test, set and restore the variable <code>__xpg4_extended_mask</code>
  290. as appropriate. Most GNU software doesn&rsquo;t provide this capability.
  291. </p>
  292. </dd>
  293. <dt><code>-nolibdld</code></dt>
  294. <dd><a name="index-nolibdld"></a>
  295. <p>Suppress the generation of link options to search libdld.sl when the
  296. <samp>-static</samp> option is specified on HP-UX 10 and later.
  297. </p>
  298. </dd>
  299. <dt><code>-static</code></dt>
  300. <dd><a name="index-static-2"></a>
  301. <p>The HP-UX implementation of setlocale in libc has a dependency on
  302. libdld.sl. There isn&rsquo;t an archive version of libdld.sl. Thus,
  303. when the <samp>-static</samp> option is specified, special link options
  304. are needed to resolve this dependency.
  305. </p>
  306. <p>On HP-UX 10 and later, the GCC driver adds the necessary options to
  307. link with libdld.sl when the <samp>-static</samp> option is specified.
  308. This causes the resulting binary to be dynamic. On the 64-bit port,
  309. the linkers generate dynamic binaries by default in any case. The
  310. <samp>-nolibdld</samp> option can be used to prevent the GCC driver from
  311. adding these link options.
  312. </p>
  313. </dd>
  314. <dt><code>-threads</code></dt>
  315. <dd><a name="index-threads"></a>
  316. <p>Add support for multithreading with the <em>dce thread</em> library
  317. under HP-UX. This option sets flags for both the preprocessor and
  318. linker.
  319. </p></dd>
  320. </dl>
  321. <hr>
  322. <div class="header">
  323. <p>
  324. Next: <a href="IA_002d64-Options.html#IA_002d64-Options" accesskey="n" rel="next">IA-64 Options</a>, Previous: <a href="H8_002f300-Options.html#H8_002f300-Options" accesskey="p" rel="prev">H8/300 Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</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>
  325. </div>
  326. </body>
  327. </html>