[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[800c9c3] | 7 | <!ENTITY gcc-download-http "http://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
|
---|
[9268fb5] | 8 | <!ENTITY gcc-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
|
---|
[3e74bafe] | 9 | <!ENTITY gcc-md5sum "a4a3eb15c96030906d8494959eeda23c">
|
---|
| 10 | <!ENTITY gcc-size "39.7 MB">
|
---|
| 11 | <!ENTITY gcc-buildsize "1.9 GB">
|
---|
| 12 | <!ENTITY gcc-time "77 SBU (build, test and install all compilers)">
|
---|
| 13 |
|
---|
| 14 | <!ENTITY gnat-download-http "https://libre.adacore.com/dynamic/download_page">
|
---|
| 15 | <!ENTITY gnat-md5sum "659b7f57e00b73ecaa4863dabea5e0e2">
|
---|
| 16 | <!ENTITY gnat-size "44.6 MB">
|
---|
[52d29f7] | 17 | ]>
|
---|
| 18 |
|
---|
[58bd309a] | 19 | <sect1 id="gcc" xreflabel="GCC-&gcc-version;">
|
---|
[70e3220] | 20 | <?dbhtml filename="gcc.html" ?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
| 23 | <othername>$LastChangedBy$</othername>
|
---|
| 24 | <date>$Date$</date>
|
---|
| 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>GCC-&gcc-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="gcc">
|
---|
[800c9c3] | 30 | <primary sortas="a-gcc-4-0">GCC-&gcc-version;</primary>
|
---|
[70e3220] | 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to GCC</title>
|
---|
| 35 |
|
---|
[8092658] | 36 | <para>The <application>GCC</application> package contains GNU compilers.
|
---|
[800c9c3] | 37 | This package is useful for compiling programs written in C, C++, Fortran,
|
---|
| 38 | Java, Objective C and Ada. Also included is GNU Treelang. Treelang is a
|
---|
| 39 | sample language, useful only to help people understand how to implement a
|
---|
| 40 | new language front end to GCC. It is not a useful language in itself other
|
---|
| 41 | than as an example or basis for building a new language. Therefore only
|
---|
| 42 | language developers are likely to have an interest in it.</para>
|
---|
| 43 |
|
---|
| 44 | <note>
|
---|
| 45 | <para>The Fortran compiler included with the
|
---|
| 46 | <application>GCC</application>-4.x package now aims to be conformant
|
---|
| 47 | with the Fortran 95 standard, not the Fortran 77 standard as all previous
|
---|
| 48 | versions of <application>GCC</application> have been. Please note the
|
---|
| 49 | following paragraph copied directly from the
|
---|
| 50 | <application>GCC</application>-&gcc-version; <command>gfortran</command>
|
---|
| 51 | man page.</para>
|
---|
| 52 |
|
---|
| 53 | <para><quote>Gfortran is not yet a fully conformant Fortran 95 compiler.
|
---|
| 54 | It can generate code for most constructs and expressions, but work
|
---|
| 55 | remains to be done. In particular, there are known deficiencies with
|
---|
| 56 | ENTRY, NAMELIST, and sophisticated use of MODULES, POINTERS and DERIVED
|
---|
| 57 | TYPES. For those whose Fortran codes conform to either the Fortran 77
|
---|
| 58 | standard or the GNU Fortran 77 language, we recommend to use
|
---|
| 59 | <command>g77</command> from <application>GCC</application>
|
---|
[8cfa6af] | 60 | 3.4.x</quote></para>
|
---|
| 61 |
|
---|
| 62 | <para>Instructions to install the 3.4.6 version of the Fortran compiler
|
---|
[43b1987f] | 63 | can be found in <xref linkend="gcc3"/> and on the
|
---|
[4e88613] | 64 | <ulink url="&blfs-wiki;/gcc3">BLFS
|
---|
[8cfa6af] | 65 | Wiki</ulink>.</para>
|
---|
[800c9c3] | 66 | </note>
|
---|
[70e3220] | 67 |
|
---|
| 68 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 69 | <itemizedlist spacing="compact">
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Download (HTTP): <ulink url="&gcc-download-http;"/></para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Download (FTP): <ulink url="&gcc-download-ftp;"/></para>
|
---|
| 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Download MD5 sum: &gcc-md5sum;</para>
|
---|
| 78 | </listitem>
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>Download size: &gcc-size;</para>
|
---|
| 81 | </listitem>
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>Estimated disk space required: &gcc-buildsize;</para>
|
---|
| 84 | </listitem>
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>Estimated build time: &gcc-time;</para>
|
---|
| 87 | </listitem>
|
---|
| 88 | </itemizedlist>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect3">GCC Dependencies</bridgehead>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[256ee72c] | 93 | <para role="recommended"><xref linkend="dejagnu"/></para>
|
---|
[70e3220] | 94 |
|
---|
[800c9c3] | 95 | <bridgehead renderas="sect4">Optional (Required to Build the Fortran
|
---|
| 96 | Compiler)</bridgehead>
|
---|
[256ee72c] | 97 | <para role="optional"><xref linkend="gmp"/> and
|
---|
[800c9c3] | 98 | <ulink url="http://www.mpfr.org/">MPFR</ulink></para>
|
---|
| 99 |
|
---|
[70e3220] | 100 | <note>
|
---|
[8092658] | 101 | <para>If you plan to compile Ada, you will need to install
|
---|
| 102 | <application>GNAT</application> temporarily to satisfy the circular
|
---|
[0619e6d] | 103 | dependency when you recompile <application>GCC</application>
|
---|
[3e74bafe] | 104 | to include Ada. The download location shown below requires that you
|
---|
| 105 | create an account on the AdaCore site before you can download the
|
---|
| 106 | package. Nothing is required other than a valid email address.</para>
|
---|
| 107 |
|
---|
| 108 | <para><emphasis role='strong'>Ensure you download the 2005 version of the
|
---|
| 109 | GNAT compiler. The 2006 version will not work. The file name you need is:
|
---|
| 110 | <filename>gnat-gpl-2005-i686-gnu-linux-gnu-libc2.3-bin.tar.gz</filename>.</emphasis>
|
---|
| 111 | </para>
|
---|
[70e3220] | 112 | </note>
|
---|
| 113 |
|
---|
[3e74bafe] | 114 | <bridgehead renderas="sect3">GNAT GPL 2005 Package Information</bridgehead>
|
---|
[70e3220] | 115 | <itemizedlist spacing="compact">
|
---|
| 116 | <listitem>
|
---|
| 117 | <para>Download (HTTP): <ulink url="&gnat-download-http;"/></para>
|
---|
| 118 | </listitem>
|
---|
| 119 | <listitem>
|
---|
| 120 | <para>Download MD5 sum: &gnat-md5sum;</para>
|
---|
| 121 | </listitem>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>Download size: &gnat-size;</para>
|
---|
| 124 | </listitem>
|
---|
| 125 | </itemizedlist>
|
---|
| 126 |
|
---|
[1039de3] | 127 | <para condition="html" role="usernotes">User Notes:
|
---|
| 128 | <ulink url="&blfs-wiki;/gcc"/></para>
|
---|
| 129 |
|
---|
[70e3220] | 130 | </sect2>
|
---|
| 131 |
|
---|
| 132 | <sect2 role="installation">
|
---|
| 133 | <title>Installation of GNAT</title>
|
---|
| 134 |
|
---|
[3a3f7b84] | 135 | <para>Install <application>GNAT</application> by running the following
|
---|
| 136 | command as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[70e3220] | 137 |
|
---|
[3a3f7b84] | 138 | <screen role="root"><userinput>make ins-all prefix=/opt/gnat</userinput></screen>
|
---|
| 139 |
|
---|
[8092658] | 140 | <para>The <application>GNAT</application> compiler can be
|
---|
| 141 | invoked by executing the <command>gcc</command> binary installed
|
---|
[3a3f7b84] | 142 | in <filename class='directory'>/opt/gnat/bin</filename>.</para>
|
---|
[70e3220] | 143 |
|
---|
[0619e6d] | 144 | <para>You may now remove the <application>GNAT</application>
|
---|
[70e3220] | 145 | source directory:</para>
|
---|
| 146 |
|
---|
| 147 | <screen><userinput>cd .. &&
|
---|
[3e74bafe] | 148 | rm -rf gnat-gpl-2005-i686-gnu-linux-gnu-libc2.3-bin</userinput></screen>
|
---|
[70e3220] | 149 |
|
---|
[8092658] | 150 | <para>Prepare to compile <application>GCC</application> by placing the
|
---|
[800c9c3] | 151 | <application>GNAT</application> version of <command>gcc</command> at the
|
---|
| 152 | beginning of the <envar>PATH</envar> variable by using the following
|
---|
| 153 | commands:</para>
|
---|
[70e3220] | 154 |
|
---|
| 155 | <screen><userinput>PATH_HOLD=$PATH &&
|
---|
[fa0e8e65] | 156 | export PATH=/opt/gnat/bin:$PATH_HOLD</userinput></screen>
|
---|
[70e3220] | 157 |
|
---|
| 158 | </sect2>
|
---|
| 159 |
|
---|
| 160 | <sect2 role="installation">
|
---|
| 161 | <title>Installation of GCC</title>
|
---|
| 162 |
|
---|
[8092658] | 163 | <para>Install <application>GCC</application> by running the
|
---|
[70e3220] | 164 | following commands:</para>
|
---|
| 165 |
|
---|
| 166 | <important>
|
---|
[8092658] | 167 | <para>The installation process may overwrite your existing
|
---|
[800c9c3] | 168 | <application>GCC</application> <command>gcc</command> and
|
---|
| 169 | <command>c++</command> compilers and libraries. It is highly recommended
|
---|
| 170 | that you have the <application>Tcl</application>,
|
---|
[0619e6d] | 171 | <application>Expect</application> and <application>DejaGnu</application>
|
---|
[4ea5113] | 172 | packages installed before beginning the build so you can run the full
|
---|
| 173 | suite of tests.</para>
|
---|
[70e3220] | 174 |
|
---|
[8092658] | 175 | <para>Do not continue with the <command>make install</command> command
|
---|
[fa0e8e65] | 176 | until you are confident the build was successful. You can compare your
|
---|
[4ea5113] | 177 | test results with those found at
|
---|
| 178 | <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>. There's also an
|
---|
[3e74bafe] | 179 | i686 platform test result produced by an LFS-SVN-20070304 system at
|
---|
| 180 | <ulink url="&files-anduin;/gcc412_test.txt"/>. You
|
---|
[4ea5113] | 181 | may also want to refer to the information found in the
|
---|
[3e74bafe] | 182 | <application>GCC</application> section of Chapter 6 in the LFS
|
---|
| 183 | book (<ulink url="&lfs-root;/chapter06/gcc.html"/>).</para>
|
---|
[70e3220] | 184 | </important>
|
---|
| 185 |
|
---|
[3e74bafe] | 186 | <para>The instructions below perform a <quote><command>make
|
---|
| 187 | bootstrap</command></quote> instead of just a plain
|
---|
| 188 | <quote><command>make</command></quote> intentionally. Even though it is
|
---|
| 189 | assumed that the current version of <application>GCC</application> is
|
---|
| 190 | installed in LFS, because this installation includes the Ada compiler as an
|
---|
| 191 | installed language, a bootstrap is required. The GNAT compiler must be used
|
---|
| 192 | for stage1 of the bootstrap in order to build Ada. If the process didn't
|
---|
| 193 | use a <quote>bootstrap</quote> you could end up having a
|
---|
| 194 | <command>gcc</command> installed on the system that was produced by a
|
---|
| 195 | foriegn compiler.</para>
|
---|
[d02add0] | 196 |
|
---|
[800c9c3] | 197 | <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in &&
|
---|
[01d7eb0] | 198 | sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in &&
|
---|
[3e74bafe] | 199 | sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in &&
|
---|
[8ca386d] | 200 | mkdir ../gcc-build &&
|
---|
| 201 | cd ../gcc-build &&
|
---|
[800c9c3] | 202 | ../gcc-&gcc-version;/configure \
|
---|
| 203 | --prefix=/usr \
|
---|
| 204 | --libexecdir=/usr/lib \
|
---|
| 205 | --enable-shared \
|
---|
| 206 | --enable-threads=posix \
|
---|
| 207 | --enable-__cxa_atexit \
|
---|
| 208 | --enable-clocale=gnu \
|
---|
[3e74bafe] | 209 | --enable-languages=c,c++,ada,fortran,java,objc,treelang &&
|
---|
[572c673] | 210 | make bootstrap &&
|
---|
[8ca386d] | 211 | make -k check &&
|
---|
[70e3220] | 212 | ../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
|
---|
[8c9ec303] | 213 |
|
---|
[70e3220] | 214 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8c9ec303] | 215 |
|
---|
[70e3220] | 216 | <screen role="root"><userinput>make install &&
|
---|
[8c9ec303] | 217 | ln -v -sf ../usr/bin/cpp /lib &&
|
---|
| 218 | ln -v -sf gcc /usr/bin/cc &&
|
---|
[38485e5c] | 219 | chown -v -R root:root \
|
---|
| 220 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include &&
|
---|
| 221 | chown -v -R root:root \
|
---|
[70e3220] | 222 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/ada{lib,include}</userinput></screen>
|
---|
| 223 |
|
---|
[f182eed] | 224 | <para>The <filename class='libraryfile'>libffi</filename> interface header
|
---|
| 225 | is installed in a location where other packages will not be able to find
|
---|
| 226 | it. If you included Java as one of the installed languages, create a
|
---|
| 227 | symbolic link in <filename class='directory'>/usr/include</filename> to
|
---|
| 228 | remedy this:</para>
|
---|
| 229 |
|
---|
| 230 | <screen role="root"><userinput>ln -v -sf `find /usr/lib/gcc -name ffitarget.h` /usr/include</userinput></screen>
|
---|
| 231 |
|
---|
[8092658] | 232 | <para>As the <systemitem class="username">root</systemitem> user, remove the
|
---|
[70e3220] | 233 | <application>GNAT</application> installation:</para>
|
---|
| 234 |
|
---|
| 235 | <screen role="root"><userinput>rm -rf /opt/gnat</userinput></screen>
|
---|
| 236 |
|
---|
[8092658] | 237 | <para>Now, as the unprivileged user, restore your old
|
---|
[70e3220] | 238 | <envar>PATH</envar>:</para>
|
---|
| 239 |
|
---|
| 240 | <screen><userinput>export PATH=$PATH_HOLD &&
|
---|
| 241 | unset PATH_HOLD</userinput></screen>
|
---|
| 242 |
|
---|
| 243 | </sect2>
|
---|
| 244 |
|
---|
| 245 | <sect2 role="commands">
|
---|
| 246 | <title>Command Explanations</title>
|
---|
| 247 |
|
---|
[3e74bafe] | 248 | <para>The three <command>sed</command> commands are the same ones used
|
---|
| 249 | during the build of LFS. A fourth one in LFS is ommitted intentionally,
|
---|
| 250 | due to the bootstrap build.</para>
|
---|
[70e3220] | 251 |
|
---|
[8092658] | 252 | <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The
|
---|
| 253 | <application>GCC</application> documentation recommends
|
---|
[70e3220] | 254 | building the package in a dedicated build directory.</para>
|
---|
| 255 |
|
---|
| 256 | <para><parameter>--enable-shared --enable-threads=posix
|
---|
[800c9c3] | 257 | --enable-__cxa_atexit</parameter>: These parameters are required to build
|
---|
[70e3220] | 258 | the <application>C++</application> libraries to published standards.</para>
|
---|
| 259 |
|
---|
| 260 | <para><parameter>--enable-clocale=gnu</parameter>: This command is a
|
---|
| 261 | failsafe for incomplete locale data.</para>
|
---|
| 262 |
|
---|
[800c9c3] | 263 | <para>
|
---|
[3e74bafe] | 264 | <parameter>--enable-languages=c,c++,ada,fortran,java,objc,treelang</parameter>:
|
---|
[8092658] | 265 | This command identifies which languages to build. You may modify this command
|
---|
[70e3220] | 266 | to remove undesired languages.</para>
|
---|
| 267 |
|
---|
[8092658] | 268 | <para><command>make -k check</command>: This command runs the test suite
|
---|
[800c9c3] | 269 | without stopping if any errors are encountered.</para>
|
---|
[70e3220] | 270 |
|
---|
[8092658] | 271 | <para><command>../gcc-&gcc-version;/contrib/test_summary</command>: This
|
---|
| 272 | command will produce a summary of the test suite results. You can append
|
---|
[70e3220] | 273 | <command>| grep -A7 Summ</command> to the command to produce an even more
|
---|
[800c9c3] | 274 | condensed version of the summary. You may also wish to redirect the output
|
---|
| 275 | to a file for review and comparison later on.</para>
|
---|
[70e3220] | 276 |
|
---|
[800c9c3] | 277 | <para><command>ln -v -sf ../usr/bin/cpp /lib</command>: This command
|
---|
| 278 | creates a link to the C PreProcessor as some packages expect it to be
|
---|
| 279 | installed in the <filename class='directory'>/lib</filename>
|
---|
| 280 | directory.</para>
|
---|
[70e3220] | 281 |
|
---|
[800c9c3] | 282 | <para><command>ln -v -sf gcc /usr/bin/cc</command>: This link is created as
|
---|
| 283 | some packages refer to the C compiler using an alternate name.</para>
|
---|
[70e3220] | 284 |
|
---|
[800c9c3] | 285 | <para><command>chown -v -R root:root
|
---|
| 286 | /usr/lib/gcc/i686-pc-linux-gnu/...</command>:
|
---|
[8092658] | 287 | If the package is built by a user other than root, the ownership of the
|
---|
| 288 | installed <filename class='directory'>include</filename> and
|
---|
| 289 | <filename class='directory'>adalib</filename> directories (and their
|
---|
[800c9c3] | 290 | contents) will be incorrect. These commands change the ownership to the
|
---|
| 291 | <systemitem class="username">root</systemitem> user and group . Omit the
|
---|
| 292 | command changing the Ada directories if you did not include Ada as one of
|
---|
| 293 | the installed languages.</para>
|
---|
[70e3220] | 294 |
|
---|
| 295 | </sect2>
|
---|
| 296 |
|
---|
| 297 | <sect2 role="content">
|
---|
| 298 | <title>Contents</title>
|
---|
| 299 |
|
---|
| 300 | <segmentedlist>
|
---|
| 301 | <segtitle>Installed Programs</segtitle>
|
---|
| 302 | <segtitle>Installed Libraries</segtitle>
|
---|
| 303 | <segtitle>Installed Directories</segtitle>
|
---|
| 304 |
|
---|
| 305 | <seglistitem>
|
---|
[800c9c3] | 306 | <seg>addr2name.awk, fastjar, gcj, gcj-dbtool,gcjh, gfortran, gij,
|
---|
| 307 | gjnih, gnat, gnatbind, gnatbl, gnatchop, gnatclean, gnatfind, gnatkr,
|
---|
| 308 | gnatlink, gnatls, gnatmake, gnatname, gnatprep, gnatxref, gprmake,
|
---|
| 309 | grepjar, grmic, grmiregistry, gtreelang, jcf-dump, jv-convert, jv-scan
|
---|
| 310 | and architecture specific names for gcj and gcjh</seg>
|
---|
[1039de3] | 311 | <seg>libffi.{so,a}, libgcj.{so,a}, libgfortran.{so,a},
|
---|
| 312 | libgfortranbegin.a, libgij.{so,a}, libobjc.{so,a} and numerous other
|
---|
[800c9c3] | 313 | run-time libraries and executables in /usr/lib/gcc</seg>
|
---|
[3a3f7b84] | 314 | <seg>/usr/include/c++/&gcc-version;/{gcj,gnu,java,javax,org},
|
---|
| 315 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/ada{include,lib},
|
---|
| 316 | /usr/lib/gcj-&gcc-version;,
|
---|
[800c9c3] | 317 | /usr/lib/security
|
---|
| 318 | and /usr/share/java</seg>
|
---|
[70e3220] | 319 | </seglistitem>
|
---|
| 320 | </segmentedlist>
|
---|
| 321 |
|
---|
[800c9c3] | 322 | <para>Some program and library names and descriptions are not listed here,
|
---|
| 323 | but can be found at
|
---|
| 324 | <ulink url="&lfs-root;/chapter06/gcc.html#contents-gcc"/> as they were
|
---|
| 325 | initially installed during the building of LFS.</para>
|
---|
| 326 |
|
---|
[70e3220] | 327 | <variablelist>
|
---|
| 328 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 329 | <?dbfo list-presentation="list"?>
|
---|
| 330 | <?dbhtml list-presentation="table"?>
|
---|
| 331 |
|
---|
| 332 | <varlistentry id="addr2name.awk">
|
---|
| 333 | <term><command>addr2name.awk</command></term>
|
---|
| 334 | <listitem>
|
---|
| 335 | <para> emulates some of the functionality of addr2line.</para>
|
---|
| 336 | <indexterm zone="gcc addr2name.awk">
|
---|
| 337 | <primary sortas="b-addr2name.awk">addr2name.awk</primary>
|
---|
| 338 | </indexterm>
|
---|
| 339 | </listitem>
|
---|
| 340 | </varlistentry>
|
---|
| 341 |
|
---|
[800c9c3] | 342 | <varlistentry id="fastjar-gcc">
|
---|
| 343 | <term><command>fastjar</command></term>
|
---|
[70e3220] | 344 | <listitem>
|
---|
[800c9c3] | 345 | <para>is an archive tool for <application>Java</application> archives.</para>
|
---|
| 346 | <indexterm zone="gcc fastjar-gcc">
|
---|
| 347 | <primary sortas="b-fastjar">fastjar</primary>
|
---|
[70e3220] | 348 | </indexterm>
|
---|
| 349 | </listitem>
|
---|
| 350 | </varlistentry>
|
---|
| 351 |
|
---|
| 352 | <varlistentry id="gcj">
|
---|
| 353 | <term><command>gcj</command></term>
|
---|
| 354 | <listitem>
|
---|
[8092658] | 355 | <para>is an ahead-of-time compiler for the
|
---|
[70e3220] | 356 | <application>Java</application> language.</para>
|
---|
| 357 | <indexterm zone="gcc gcj">
|
---|
| 358 | <primary sortas="b-gcj">gcj</primary>
|
---|
| 359 | </indexterm>
|
---|
| 360 | </listitem>
|
---|
| 361 | </varlistentry>
|
---|
| 362 |
|
---|
[800c9c3] | 363 | <varlistentry id="gcj-dbtool">
|
---|
| 364 | <term><command>gcj-dbtool</command></term>
|
---|
| 365 | <listitem>
|
---|
| 366 | <para>is a tool for creating and manipulating class file mapping
|
---|
| 367 | databases.</para>
|
---|
| 368 | <indexterm zone="gcc gcj-dbtool">
|
---|
| 369 | <primary sortas="b-gcj-dbtool">gcj-dbtool</primary>
|
---|
| 370 | </indexterm>
|
---|
| 371 | </listitem>
|
---|
| 372 | </varlistentry>
|
---|
| 373 |
|
---|
[70e3220] | 374 | <varlistentry id="gcjh">
|
---|
| 375 | <term><command>gcjh</command></term>
|
---|
| 376 | <listitem>
|
---|
[0619e6d] | 377 | <para>generates header files from <application>Java</application>
|
---|
[70e3220] | 378 | class files.</para>
|
---|
| 379 | <indexterm zone="gcc gcjh">
|
---|
| 380 | <primary sortas="b-gcjh">gcjh</primary>
|
---|
| 381 | </indexterm>
|
---|
| 382 | </listitem>
|
---|
| 383 | </varlistentry>
|
---|
| 384 |
|
---|
[800c9c3] | 385 | <varlistentry id="gfortran">
|
---|
| 386 | <term><command>gfortran</command></term>
|
---|
| 387 | <listitem>
|
---|
| 388 | <para>is the <application>Fortran</application> compiler invoked by
|
---|
| 389 | <command>gcc</command>.</para>
|
---|
| 390 | <indexterm zone="gcc gfortran">
|
---|
| 391 | <primary sortas="b-gfortran">gfortran</primary>
|
---|
| 392 | </indexterm>
|
---|
| 393 | </listitem>
|
---|
| 394 | </varlistentry>
|
---|
| 395 |
|
---|
[70e3220] | 396 | <varlistentry id="gij">
|
---|
| 397 | <term><command>gij</command></term>
|
---|
| 398 | <listitem>
|
---|
[0619e6d] | 399 | <para>is the GNU interpreter for <application>Java</application>
|
---|
[70e3220] | 400 | bytecode.</para>
|
---|
| 401 | <indexterm zone="gcc gij">
|
---|
| 402 | <primary sortas="b-gij">gij</primary>
|
---|
| 403 | </indexterm>
|
---|
| 404 | </listitem>
|
---|
| 405 | </varlistentry>
|
---|
| 406 |
|
---|
[800c9c3] | 407 | <varlistentry id="gjnih">
|
---|
| 408 | <term><command>gjnij</command></term>
|
---|
| 409 | <listitem>
|
---|
| 410 | <para>is used to generate JNI header files from class files. Running
|
---|
| 411 | it is equivalent to running <command>gcjh -jni</command>.</para>
|
---|
| 412 | <indexterm zone="gcc gjnih">
|
---|
| 413 | <primary sortas="b-gjnih">gjnih</primary>
|
---|
| 414 | </indexterm>
|
---|
| 415 | </listitem>
|
---|
| 416 | </varlistentry>
|
---|
| 417 |
|
---|
[70e3220] | 418 | <varlistentry id="gnat">
|
---|
| 419 | <term><command>gnat</command></term>
|
---|
| 420 | <listitem>
|
---|
[8092658] | 421 | <para>is the <application>Ada</application> compiler invoked by
|
---|
[70e3220] | 422 | <command>gcc</command>.</para>
|
---|
| 423 | <indexterm zone="gcc gnat">
|
---|
| 424 | <primary sortas="b-gnat">gnat</primary>
|
---|
| 425 | </indexterm>
|
---|
| 426 | </listitem>
|
---|
| 427 | </varlistentry>
|
---|
| 428 |
|
---|
| 429 | <varlistentry id="gnatbind">
|
---|
| 430 | <term><command>gnatbind</command></term>
|
---|
| 431 | <listitem>
|
---|
| 432 | <para>is used to bind compiled objects.</para>
|
---|
| 433 | <indexterm zone="gcc gnatbind">
|
---|
| 434 | <primary sortas="b-gnatbind">gnatbind</primary>
|
---|
| 435 | </indexterm>
|
---|
| 436 | </listitem>
|
---|
| 437 | </varlistentry>
|
---|
| 438 |
|
---|
| 439 | <varlistentry id="gnatbl">
|
---|
| 440 | <term><command>gnatbl</command></term>
|
---|
| 441 | <listitem>
|
---|
| 442 | <para>is the <application>Ada</application> linker.</para>
|
---|
| 443 | <indexterm zone="gcc gnatbl">
|
---|
| 444 | <primary sortas="b-gnatbl">gnatbl</primary>
|
---|
| 445 | </indexterm>
|
---|
| 446 | </listitem>
|
---|
| 447 | </varlistentry>
|
---|
| 448 |
|
---|
| 449 | <varlistentry id="gnatchop">
|
---|
| 450 | <term><command>gnatchop</command></term>
|
---|
| 451 | <listitem>
|
---|
[8092658] | 452 | <para>is useful for renaming files to meet the standard
|
---|
[70e3220] | 453 | <application>Ada</application> default file naming conventions.</para>
|
---|
| 454 | <indexterm zone="gcc gnatchop">
|
---|
| 455 | <primary sortas="b-gnatchop">gnatchop</primary>
|
---|
| 456 | </indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
| 460 | <varlistentry id="gnatclean">
|
---|
| 461 | <term><command>gnatclean</command></term>
|
---|
| 462 | <listitem>
|
---|
[8092658] | 463 | <para>is used to remove files associated with a
|
---|
[70e3220] | 464 | <application>GNAT</application> project.</para>
|
---|
| 465 | <indexterm zone="gcc gnatclean">
|
---|
| 466 | <primary sortas="b-gnatclean">gnatclean</primary>
|
---|
| 467 | </indexterm>
|
---|
| 468 | </listitem>
|
---|
| 469 | </varlistentry>
|
---|
| 470 |
|
---|
| 471 | <varlistentry id="gnatfind">
|
---|
| 472 | <term><command>gnatfind</command></term>
|
---|
| 473 | <listitem>
|
---|
| 474 | <para> is the <application>GNAT</application> definition/use finder.</para>
|
---|
| 475 | <indexterm zone="gcc gnatfind">
|
---|
| 476 | <primary sortas="b-gnatfind">gnatfind</primary>
|
---|
| 477 | </indexterm>
|
---|
| 478 | </listitem>
|
---|
| 479 | </varlistentry>
|
---|
| 480 |
|
---|
| 481 | <varlistentry id="gnatkr">
|
---|
| 482 | <term><command>gnatkr</command></term>
|
---|
| 483 | <listitem>
|
---|
[8092658] | 484 | <para>is used to determine the crunched name for a given file, when
|
---|
[70e3220] | 485 | crunched to a specified maximum length.</para>
|
---|
| 486 | <indexterm zone="gcc gnatkr">
|
---|
| 487 | <primary sortas="b-gnatkr">gnatkr</primary>
|
---|
| 488 | </indexterm>
|
---|
| 489 | </listitem>
|
---|
| 490 | </varlistentry>
|
---|
| 491 |
|
---|
| 492 | <varlistentry id="gnatlink">
|
---|
| 493 | <term><command>gnatlink</command></term>
|
---|
| 494 | <listitem>
|
---|
| 495 | <para>is used to link programs and build an executable file.</para>
|
---|
| 496 | <indexterm zone="gcc gnatlink">
|
---|
| 497 | <primary sortas="b-gnatlink">gnatlink</primary>
|
---|
| 498 | </indexterm>
|
---|
| 499 | </listitem>
|
---|
| 500 | </varlistentry>
|
---|
| 501 |
|
---|
| 502 | <varlistentry id="gnatls">
|
---|
| 503 | <term><command>gnatls</command></term>
|
---|
| 504 | <listitem>
|
---|
| 505 | <para>is the compiled unit browser.</para>
|
---|
| 506 | <indexterm zone="gcc gnatls">
|
---|
| 507 | <primary sortas="b-gnatls">gnatls</primary>
|
---|
| 508 | </indexterm>
|
---|
| 509 | </listitem>
|
---|
| 510 | </varlistentry>
|
---|
| 511 |
|
---|
| 512 | <varlistentry id="gnatmake">
|
---|
| 513 | <term><command>gnatmake</command></term>
|
---|
| 514 | <listitem>
|
---|
| 515 | <para>is an automatic <command>make</command> facility.</para>
|
---|
| 516 | <indexterm zone="gcc gnatmake">
|
---|
| 517 | <primary sortas="b-gnatmake">gnatmake</primary>
|
---|
| 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
| 522 | <varlistentry id="gnatname">
|
---|
| 523 | <term><command>gnatname</command></term>
|
---|
| 524 | <listitem>
|
---|
| 525 | <para>will list the files associated with a
|
---|
| 526 | <application>GNAT</application> project.</para>
|
---|
| 527 | <indexterm zone="gcc gnatname">
|
---|
| 528 | <primary sortas="b-gnatname">gnatname</primary>
|
---|
| 529 | </indexterm>
|
---|
| 530 | </listitem>
|
---|
| 531 | </varlistentry>
|
---|
| 532 |
|
---|
| 533 | <varlistentry id="gnatprep">
|
---|
| 534 | <term><command>gnatprep</command></term>
|
---|
| 535 | <listitem>
|
---|
| 536 | <para>is the <application>GNAT</application> external preprocessor.</para>
|
---|
| 537 | <indexterm zone="gcc gnatprep">
|
---|
| 538 | <primary sortas="b-gnatprep">gnatprep</primary>
|
---|
| 539 | </indexterm>
|
---|
| 540 | </listitem>
|
---|
| 541 | </varlistentry>
|
---|
| 542 |
|
---|
| 543 | <varlistentry id="gnatxref">
|
---|
| 544 | <term><command>gnatxref</command></term>
|
---|
| 545 | <listitem>
|
---|
| 546 | <para>is the <application>GNAT</application> cross-referencer.</para>
|
---|
| 547 | <indexterm zone="gcc gnatxref">
|
---|
| 548 | <primary sortas="b-gnatxref">gnatxref</primary>
|
---|
| 549 | </indexterm>
|
---|
| 550 | </listitem>
|
---|
| 551 | </varlistentry>
|
---|
| 552 |
|
---|
[800c9c3] | 553 | <varlistentry id="gprmake">
|
---|
| 554 | <term><command>gprmake</command></term>
|
---|
[70e3220] | 555 | <listitem>
|
---|
[8092658] | 556 | <para>is a tool used to create <filename>Makefile</filename>s that
|
---|
[70e3220] | 557 | support compilation by multiple languages.</para>
|
---|
[800c9c3] | 558 | <indexterm zone="gcc gprmake">
|
---|
| 559 | <primary sortas="b-gprmake">gprmake</primary>
|
---|
[70e3220] | 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
| 563 |
|
---|
| 564 | <varlistentry id="grepjar">
|
---|
| 565 | <term><command>grepjar</command></term>
|
---|
| 566 | <listitem>
|
---|
| 567 | <para>searches <filename>jar</filename> files for a pattern.</para>
|
---|
| 568 | <indexterm zone="gcc grepjar">
|
---|
| 569 | <primary sortas="b-grepjar">grepjar</primary>
|
---|
| 570 | </indexterm>
|
---|
| 571 | </listitem>
|
---|
| 572 | </varlistentry>
|
---|
| 573 |
|
---|
[800c9c3] | 574 | <varlistentry id="grmic-gcc">
|
---|
| 575 | <term><command>grmic</command></term>
|
---|
[70e3220] | 576 | <listitem>
|
---|
[800c9c3] | 577 | <para>generates stubs for Remote Method Invocation.</para>
|
---|
| 578 | <indexterm zone="gcc grmic-gcc">
|
---|
| 579 | <primary sortas="b-grmic">grmic</primary>
|
---|
| 580 | </indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
| 584 | <varlistentry id="grmiregistry-gcc">
|
---|
| 585 | <term><command>grmiregistry</command></term>
|
---|
| 586 | <listitem>
|
---|
| 587 | <para> starts a remote object registry on the current host.</para>
|
---|
| 588 | <indexterm zone="gcc grmiregistry-gcc">
|
---|
| 589 | <primary sortas="b-grmiregistry">grmiregistry</primary>
|
---|
| 590 | </indexterm>
|
---|
| 591 | </listitem>
|
---|
| 592 | </varlistentry>
|
---|
| 593 |
|
---|
| 594 | <varlistentry id="gtreelang">
|
---|
| 595 | <term><command>gtreelang</command></term>
|
---|
| 596 | <listitem>
|
---|
| 597 | <para>is largely a cut down version of C, designed to showcase the
|
---|
| 598 | features of the <application>GCC</application> code generation back
|
---|
| 599 | end. Only those features that are directly supported by the
|
---|
| 600 | <application>GCC</application> code generation back end are
|
---|
| 601 | implemented. Features are implemented in a manner which is easiest
|
---|
| 602 | and clearest to implement. Not all or even most code generation back
|
---|
| 603 | end features are implemented. The intention is to add features
|
---|
| 604 | incrementally until most features of the
|
---|
| 605 | <application>GCC</application> back end are implemented in
|
---|
| 606 | Treelang.</para>
|
---|
| 607 | <indexterm zone="gcc gtreelang">
|
---|
| 608 | <primary sortas="b-gtreelang">gtreelang</primary>
|
---|
[70e3220] | 609 | </indexterm>
|
---|
| 610 | </listitem>
|
---|
| 611 | </varlistentry>
|
---|
| 612 |
|
---|
| 613 | <varlistentry id="jcf-dump">
|
---|
| 614 | <term><command>jcf-dump</command></term>
|
---|
| 615 | <listitem>
|
---|
[0619e6d] | 616 | <para>prints information about <application>Java</application>
|
---|
[70e3220] | 617 | class files.</para>
|
---|
| 618 | <indexterm zone="gcc jcf-dump">
|
---|
| 619 | <primary sortas="b-jcf-dump">jcf-dump</primary>
|
---|
| 620 | </indexterm>
|
---|
| 621 | </listitem>
|
---|
| 622 | </varlistentry>
|
---|
| 623 |
|
---|
| 624 | <varlistentry id="jv-convert">
|
---|
| 625 | <term><command>jv-convert</command></term>
|
---|
| 626 | <listitem>
|
---|
| 627 | <para>converts files from one encoding to another.</para>
|
---|
| 628 | <indexterm zone="gcc jv-convert">
|
---|
| 629 | <primary sortas="b-jv-convert">jv-convert</primary>
|
---|
| 630 | </indexterm>
|
---|
| 631 | </listitem>
|
---|
| 632 | </varlistentry>
|
---|
| 633 |
|
---|
| 634 | <varlistentry id="jv-scan">
|
---|
| 635 | <term><command>jv-scan</command></term>
|
---|
| 636 | <listitem>
|
---|
[0619e6d] | 637 | <para>prints information about <application>Java</application>
|
---|
[70e3220] | 638 | source files.</para>
|
---|
| 639 | <indexterm zone="gcc jv-scan">
|
---|
| 640 | <primary sortas="b-jv-scan">jv-scan</primary>
|
---|
| 641 | </indexterm>
|
---|
| 642 | </listitem>
|
---|
| 643 | </varlistentry>
|
---|
| 644 |
|
---|
| 645 | </variablelist>
|
---|
| 646 |
|
---|
| 647 | </sect2>
|
---|
[1a686a1] | 648 |
|
---|
| 649 | </sect1>
|
---|