Configuration-Files.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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-2017 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 5.2, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <title>GNU Compiler Collection (GCC) Internals: Configuration Files</title>
  20. <meta name="description" content="GNU Compiler Collection (GCC) Internals: Configuration Files">
  21. <meta name="keywords" content="GNU Compiler Collection (GCC) Internals: Configuration Files">
  22. <meta name="resource-type" content="document">
  23. <meta name="distribution" content="global">
  24. <meta name="Generator" content="makeinfo">
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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.smallquotation {font-size: smaller}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.indentedblock {margin-left: 3.2em}
  39. div.lisp {margin-left: 3.2em}
  40. div.smalldisplay {margin-left: 3.2em}
  41. div.smallexample {margin-left: 3.2em}
  42. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  54. span.nolinebreak {white-space:nowrap}
  55. span.roman {font-family:serif; font-weight:normal}
  56. span.sansserif {font-family:sans-serif; font-weight:normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  62. <a name="Configuration-Files"></a>
  63. <div class="header">
  64. <p>
  65. 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>
  66. </div>
  67. <hr>
  68. <a name="Files-Created-by-configure"></a>
  69. <h4 class="subsubsection">6.3.2.3 Files Created by <code>configure</code></h4>
  70. <p>Here we spell out what files will be set up by <samp>configure</samp> in the
  71. <samp>gcc</samp> directory. Some other files are created as temporary files
  72. in the configuration process, and are not used in the subsequent
  73. build; these are not documented.
  74. </p>
  75. <ul>
  76. <li> <samp>Makefile</samp> is constructed from <samp>Makefile.in</samp>, together with
  77. the host and target fragments (see <a href="Fragments.html#Fragments">Makefile
  78. Fragments</a>) <samp>t-<var>target</var></samp> and <samp>x-<var>host</var></samp> from
  79. <samp>config</samp>, if any, and language Makefile fragments
  80. <samp><var>language</var>/Make-lang.in</samp>.
  81. </li><li> <samp>auto-host.h</samp> contains information about the host machine
  82. determined by <samp>configure</samp>. If the host machine is different from
  83. the build machine, then <samp>auto-build.h</samp> is also created,
  84. containing such information about the build machine.
  85. </li><li> <samp>config.status</samp> is a script that may be run to recreate the
  86. current configuration.
  87. </li><li> <samp>configargs.h</samp> is a header containing details of the arguments
  88. passed to <samp>configure</samp> to configure GCC, and of the thread model
  89. used.
  90. </li><li> <samp>cstamp-h</samp> is used as a timestamp.
  91. </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
  92. the files listed in <code>outputs</code> there are also generated.
  93. </li></ul>
  94. <p>The following configuration headers are created from the Makefile,
  95. using <samp>mkconfig.sh</samp>, rather than directly by <samp>configure</samp>.
  96. <samp>config.h</samp>, <samp>bconfig.h</samp> and <samp>tconfig.h</samp> all contain the
  97. <samp>xm-<var>machine</var>.h</samp> header, if any, appropriate to the host,
  98. build and target machines respectively, the configuration headers for
  99. the target, and some definitions; for the host and build machines,
  100. these include the autoconfigured headers generated by
  101. <samp>configure</samp>. The other configuration headers are determined by
  102. <samp>config.gcc</samp>. They also contain the typedefs for <code>rtx</code>,
  103. <code>rtvec</code> and <code>tree</code>.
  104. </p>
  105. <ul>
  106. <li> <samp>config.h</samp>, for use in programs that run on the host machine.
  107. </li><li> <samp>bconfig.h</samp>, for use in programs that run on the build machine.
  108. </li><li> <samp>tconfig.h</samp>, for use in programs and libraries for the target
  109. machine.
  110. </li><li> <samp>tm_p.h</samp>, which includes the header <samp><var>machine</var>-protos.h</samp>
  111. that contains prototypes for functions in the target
  112. <samp><var>machine</var>.c</samp> file. The header <samp><var>machine</var>-protos.h</samp>
  113. can include prototypes of functions that use rtl and tree data
  114. structures inside appropriate <code>#ifdef RTX_CODE</code> and <code>#ifdef
  115. TREE_CODE</code> conditional code segements. The
  116. <samp><var>machine</var>-protos.h</samp> is included after the <samp>rtl.h</samp>
  117. and/or <samp>tree.h</samp> would have been included. The <samp>tm_p.h</samp> also
  118. includes the header <samp>tm-preds.h</samp> which is generated by
  119. <samp>genpreds</samp> program during the build to define the declarations
  120. and inline functions for the predicate functions.
  121. </li></ul>
  122. <hr>
  123. <div class="header">
  124. <p>
  125. 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>
  126. </div>
  127. </body>
  128. </html>