No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

164 líneas
8.5KB

  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>Front End (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Front End (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Front End (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="gcc-Directory.html#gcc-Directory" rel="up" title="gcc Directory">
  30. <link href="Front-End-Directory.html#Front-End-Directory" rel="next" title="Front End Directory">
  31. <link href="Miscellaneous-Docs.html#Miscellaneous-Docs" rel="prev" title="Miscellaneous Docs">
  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="Front-End"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Back-End.html#Back-End" accesskey="n" rel="next">Back End</a>, Previous: <a href="Documentation.html#Documentation" accesskey="p" rel="prev">Documentation</a>, Up: <a href="gcc-Directory.html#gcc-Directory" accesskey="u" rel="up">gcc Directory</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="Anatomy-of-a-Language-Front-End"></a>
  68. <h4 class="subsection">6.3.8 Anatomy of a Language Front End</h4>
  69. <p>A front end for a language in GCC has the following parts:
  70. </p>
  71. <ul>
  72. <li> A directory <samp><var>language</var></samp> under <samp>gcc</samp> containing source
  73. files for that front end. See <a href="Front-End-Directory.html#Front-End-Directory">The Front End
  74. <samp><var>language</var></samp> Directory</a>, for details.
  75. </li><li> A mention of the language in the list of supported languages in
  76. <samp>gcc/doc/install.texi</samp>.
  77. </li><li> A mention of the name under which the language&rsquo;s runtime library is
  78. recognized by <samp>--enable-shared=<var>package</var></samp> in the
  79. documentation of that option in <samp>gcc/doc/install.texi</samp>.
  80. </li><li> A mention of any special prerequisites for building the front end in
  81. the documentation of prerequisites in <samp>gcc/doc/install.texi</samp>.
  82. </li><li> Details of contributors to that front end in
  83. <samp>gcc/doc/contrib.texi</samp>. If the details are in that front end&rsquo;s
  84. own manual then there should be a link to that manual&rsquo;s list in
  85. <samp>contrib.texi</samp>.
  86. </li><li> Information about support for that language in
  87. <samp>gcc/doc/frontends.texi</samp>.
  88. </li><li> Information about standards for that language, and the front end&rsquo;s
  89. support for them, in <samp>gcc/doc/standards.texi</samp>. This may be a
  90. link to such information in the front end&rsquo;s own manual.
  91. </li><li> Details of source file suffixes for that language and <samp>-x
  92. <var>lang</var></samp> options supported, in <samp>gcc/doc/invoke.texi</samp>.
  93. </li><li> Entries in <code>default_compilers</code> in <samp>gcc.c</samp> for source file
  94. suffixes for that language.
  95. </li><li> Preferably testsuites, which may be under <samp>gcc/testsuite</samp> or
  96. runtime library directories. FIXME: document somewhere how to write
  97. testsuite harnesses.
  98. </li><li> Probably a runtime library for the language, outside the <samp>gcc</samp>
  99. directory. FIXME: document this further.
  100. </li><li> Details of the directories of any runtime libraries in
  101. <samp>gcc/doc/sourcebuild.texi</samp>.
  102. </li><li> Check targets in <samp>Makefile.def</samp> for the top-level <samp>Makefile</samp>
  103. to check just the compiler or the compiler and runtime library for the
  104. language.
  105. </li></ul>
  106. <p>If the front end is added to the official GCC source repository, the
  107. following are also necessary:
  108. </p>
  109. <ul>
  110. <li> At least one Bugzilla component for bugs in that front end and runtime
  111. libraries. This category needs to be added to the Bugzilla database.
  112. </li><li> Normally, one or more maintainers of that front end listed in
  113. <samp>MAINTAINERS</samp>.
  114. </li><li> Mentions on the GCC web site in <samp>index.html</samp> and
  115. <samp>frontends.html</samp>, with any relevant links on
  116. <samp>readings.html</samp>. (Front ends that are not an official part of
  117. GCC may also be listed on <samp>frontends.html</samp>, with relevant links.)
  118. </li><li> A news item on <samp>index.html</samp>, and possibly an announcement on the
  119. <a href="mailto:gcc-announce@gcc.gnu.org">gcc-announce@gcc.gnu.org</a> mailing list.
  120. </li><li> The front end&rsquo;s manuals should be mentioned in
  121. <samp>maintainer-scripts/update_web_docs_git</samp> (see <a href="Texinfo-Manuals.html#Texinfo-Manuals">Texinfo Manuals</a>)
  122. and the online manuals should be linked to from
  123. <samp>onlinedocs/index.html</samp>.
  124. </li><li> Any old releases or CVS repositories of the front end, before its
  125. inclusion in GCC, should be made available on the GCC web site at
  126. <a href="https://gcc.gnu.org/pub/gcc/old-releases/">https://gcc.gnu.org/pub/gcc/old-releases/</a>.
  127. </li><li> The release and snapshot script <samp>maintainer-scripts/gcc_release</samp>
  128. should be updated to generate appropriate tarballs for this front end.
  129. </li><li> If this front end includes its own version files that include the
  130. current date, <samp>maintainer-scripts/update_version</samp> should be
  131. updated accordingly.
  132. </li></ul>
  133. <table class="menu" border="0" cellspacing="0">
  134. <tr><td align="left" valign="top">&bull; <a href="Front-End-Directory.html#Front-End-Directory" accesskey="1">Front End Directory</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">The front end <samp><var>language</var></samp> directory.
  135. </td></tr>
  136. <tr><td align="left" valign="top">&bull; <a href="Front-End-Config.html#Front-End-Config" accesskey="2">Front End Config</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">The front end <samp>config-lang.in</samp> file.
  137. </td></tr>
  138. <tr><td align="left" valign="top">&bull; <a href="Front-End-Makefile.html#Front-End-Makefile" accesskey="3">Front End Makefile</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">The front end <samp>Make-lang.in</samp> file.
  139. </td></tr>
  140. </table>
  141. <hr>
  142. <div class="header">
  143. <p>
  144. Next: <a href="Back-End.html#Back-End" accesskey="n" rel="next">Back End</a>, Previous: <a href="Documentation.html#Documentation" accesskey="p" rel="prev">Documentation</a>, Up: <a href="gcc-Directory.html#gcc-Directory" accesskey="u" rel="up">gcc Directory</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>
  145. </div>
  146. </body>
  147. </html>