Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

141 line
6.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>Configuration Files (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Configuration Files (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Configuration Files (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="Configuration.html#Configuration" rel="up" title="Configuration">
  30. <link href="Build.html#Build" rel="next" title="Build">
  31. <link href="System-Config.html#System-Config" rel="prev" title="System Config">
  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="Configuration-Files"></a>
  62. <div class="header">
  63. <p>
  64. Previous: <a href="System-Config.html#System-Config" accesskey="p" rel="prev">System Config</a>, Up: <a href="Configuration.html#Configuration" accesskey="u" rel="up">Configuration</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="Files-Created-by-configure"></a>
  68. <h4 class="subsubsection">6.3.2.3 Files Created by <code>configure</code></h4>
  69. <p>Here we spell out what files will be set up by <samp>configure</samp> in the
  70. <samp>gcc</samp> directory. Some other files are created as temporary files
  71. in the configuration process, and are not used in the subsequent
  72. build; these are not documented.
  73. </p>
  74. <ul>
  75. <li> <samp>Makefile</samp> is constructed from <samp>Makefile.in</samp>, together with
  76. the host and target fragments (see <a href="Fragments.html#Fragments">Makefile
  77. Fragments</a>) <samp>t-<var>target</var></samp> and <samp>x-<var>host</var></samp> from
  78. <samp>config</samp>, if any, and language Makefile fragments
  79. <samp><var>language</var>/Make-lang.in</samp>.
  80. </li><li> <samp>auto-host.h</samp> contains information about the host machine
  81. determined by <samp>configure</samp>. If the host machine is different from
  82. the build machine, then <samp>auto-build.h</samp> is also created,
  83. containing such information about the build machine.
  84. </li><li> <samp>config.status</samp> is a script that may be run to recreate the
  85. current configuration.
  86. </li><li> <samp>configargs.h</samp> is a header containing details of the arguments
  87. passed to <samp>configure</samp> to configure GCC, and of the thread model
  88. used.
  89. </li><li> <samp>cstamp-h</samp> is used as a timestamp.
  90. </li><li> If a language <samp>config-lang.in</samp> file (see <a href="Front-End-Config.html#Front-End-Config">The Front End <samp>config-lang.in</samp> File</a>) sets <code>outputs</code>, then
  91. the files listed in <code>outputs</code> there are also generated.
  92. </li></ul>
  93. <p>The following configuration headers are created from the Makefile,
  94. using <samp>mkconfig.sh</samp>, rather than directly by <samp>configure</samp>.
  95. <samp>config.h</samp>, <samp>bconfig.h</samp> and <samp>tconfig.h</samp> all contain the
  96. <samp>xm-<var>machine</var>.h</samp> header, if any, appropriate to the host,
  97. build and target machines respectively, the configuration headers for
  98. the target, and some definitions; for the host and build machines,
  99. these include the autoconfigured headers generated by
  100. <samp>configure</samp>. The other configuration headers are determined by
  101. <samp>config.gcc</samp>. They also contain the typedefs for <code>rtx</code>,
  102. <code>rtvec</code> and <code>tree</code>.
  103. </p>
  104. <ul>
  105. <li> <samp>config.h</samp>, for use in programs that run on the host machine.
  106. </li><li> <samp>bconfig.h</samp>, for use in programs that run on the build machine.
  107. </li><li> <samp>tconfig.h</samp>, for use in programs and libraries for the target
  108. machine.
  109. </li><li> <samp>tm_p.h</samp>, which includes the header <samp><var>machine</var>-protos.h</samp>
  110. that contains prototypes for functions in the target
  111. <samp><var>machine</var>.c</samp> file. The
  112. <samp><var>machine</var>-protos.h</samp> header is included after the <samp>rtl.h</samp>
  113. and/or <samp>tree.h</samp> would have been included.
  114. The <samp>tm_p.h</samp> also
  115. includes the header <samp>tm-preds.h</samp> which is generated by
  116. <samp>genpreds</samp> program during the build to define the declarations
  117. and inline functions for the predicate functions.
  118. </li></ul>
  119. <hr>
  120. <div class="header">
  121. <p>
  122. Previous: <a href="System-Config.html#System-Config" accesskey="p" rel="prev">System Config</a>, Up: <a href="Configuration.html#Configuration" accesskey="u" rel="up">Configuration</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>
  123. </div>
  124. </body>
  125. </html>