[0c13b97d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fcabde3c] | 7 | <!ENTITY gcc-download-http "http://ftpmirror.gnu.org/gcc/gcc-&gcc-ada-version;/gcc-&gcc-ada-version;.tar.bz2">
|
---|
| 8 | <!ENTITY gcc-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc-ada-version;/gcc-&gcc-ada-version;.tar.bz2">
|
---|
[e2c88e8] | 9 | <!ENTITY gcc-md5sum "c9616fd448f980259c31de613e575719">
|
---|
| 10 | <!ENTITY gcc-size "92 MB">
|
---|
| 11 | <!ENTITY gcc-ada-buildsize "6.9 GB (0.9 GB added if GNAT install dir is not removed)">
|
---|
| 12 | <!ENTITY gcc-ada-time "136 SBU (including 77 SBU for tests)">
|
---|
[0c13b97d] | 13 |
|
---|
| 14 | <!ENTITY gnat-download-http "https://libre.adacore.com/download/">
|
---|
[e2c88e8] | 15 | <!ENTITY gnat-64-download-http "http://mirrors.cdn.adacore.com/art/564b3e83c8e196b040fbdf29">
|
---|
[87532434] | 16 | <!ENTITY gnat-64-md5sum "1ab69af79f981b1321f6e989403f5e7d">
|
---|
| 17 | <!ENTITY gnat-64-size "308 MB">
|
---|
[e2c88e8] | 18 | <!ENTITY gnat-32-download-http "http://mirrors.cdn.adacore.com/art/564b3e9dc8e196b040fbe248">
|
---|
[0c13b97d] | 19 | <!ENTITY gnat-32-md5sum "69423c7ad8d9759377d4fff71a78992d">
|
---|
| 20 | <!ENTITY gnat-32-size "222 MB">
|
---|
| 21 | ]>
|
---|
| 22 |
|
---|
[fcabde3c] | 23 | <sect1 id="gcc-ada" xreflabel="GCC-Ada-&gcc-ada-version;">
|
---|
[0c13b97d] | 24 | <?dbhtml filename="gcc-ada.html" ?>
|
---|
| 25 |
|
---|
| 26 | <sect1info>
|
---|
[54c94f1] | 27 | <othername>$LastChangedBy$</othername>
|
---|
| 28 | <date>$Date$</date>
|
---|
[0c13b97d] | 29 | </sect1info>
|
---|
| 30 |
|
---|
[fcabde3c] | 31 | <title>GCC-Ada-&gcc-ada-version;</title>
|
---|
[0c13b97d] | 32 |
|
---|
| 33 | <indexterm zone="gcc-ada">
|
---|
[fcabde3c] | 34 | <primary sortas="a-gcc-4-0">GCC-Ada&gcc-ada-version;</primary>
|
---|
[0c13b97d] | 35 | </indexterm>
|
---|
| 36 |
|
---|
| 37 | <sect2 role="package">
|
---|
| 38 | <title>Introduction to the GCC Ada compiler</title>
|
---|
| 39 |
|
---|
[ae0673a] | 40 | <para>
|
---|
| 41 | Ada is a modern programming language designed for large, long-lived
|
---|
| 42 | applications — and embedded systems in particular — where
|
---|
| 43 | reliability and efficiency are essential. It has a set of unique technical
|
---|
| 44 | features that make it highly effective for use in large, complex and
|
---|
| 45 | safety-critical projects.
|
---|
| 46 | </para>
|
---|
[0c13b97d] | 47 |
|
---|
[ae0673a] | 48 | <para>
|
---|
| 49 | The compiler and associated tools on this page are known as the
|
---|
| 50 | <application>GNAT</application> technology, developed by the Adacore
|
---|
| 51 | company, using the <application>GCC</application> backend. Since
|
---|
| 52 | parts of the Ada compiler are written in Ada, there is a circular
|
---|
| 53 | dependency on an Ada compiler. The instructions below first install
|
---|
| 54 | a binary compiler. You do not need to do that if you already have built
|
---|
| 55 | <application>GNAT</application> tools.
|
---|
| 56 | </para>
|
---|
[0c13b97d] | 57 |
|
---|
[56afb2fe] | 58 | &lfs79_checked;
|
---|
[0c13b97d] | 59 |
|
---|
| 60 | <caution>
|
---|
[ae0673a] | 61 | <para>
|
---|
| 62 | Using the instructions on this page will have the effect that
|
---|
| 63 | the C and C++ compiler and libraries will be reinstalled, overwriting
|
---|
| 64 | the ones on your system. This may lead to some issues. Please read the
|
---|
| 65 | notes and caution on the <xref linkend="gcc"/> page.
|
---|
| 66 | </para>
|
---|
[0c13b97d] | 67 | </caution>
|
---|
| 68 |
|
---|
[ae0673a] | 69 | <note>
|
---|
| 70 | <para>
|
---|
| 71 | If you want to install other compilers in the <application>GCC
|
---|
| 72 | </application> collection, do that first, or specify ada in the
|
---|
| 73 | <parameter>--enable-languages</parameter> switch to <command>
|
---|
| 74 | configure</command>. If you rebuild <application>GCC</application>
|
---|
| 75 | without enabling ada after running the instructions on this page,
|
---|
| 76 | the new compiler will not be able to compile ADA anymore.
|
---|
| 77 | </para>
|
---|
| 78 | </note>
|
---|
| 79 |
|
---|
[0c13b97d] | 80 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <listitem>
|
---|
[ae0673a] | 83 | <para>
|
---|
| 84 | Download (HTTP): <ulink url="&gcc-download-http;"/>
|
---|
| 85 | </para>
|
---|
[0c13b97d] | 86 | </listitem>
|
---|
| 87 | <listitem>
|
---|
[ae0673a] | 88 | <para>
|
---|
| 89 | Download (FTP): <ulink url="&gcc-download-ftp;"/>
|
---|
| 90 | </para>
|
---|
[0c13b97d] | 91 | </listitem>
|
---|
| 92 | <listitem>
|
---|
[ae0673a] | 93 | <para>
|
---|
| 94 | Download MD5 sum: &gcc-md5sum;
|
---|
| 95 | </para>
|
---|
[0c13b97d] | 96 | </listitem>
|
---|
| 97 | <listitem>
|
---|
[ae0673a] | 98 | <para>
|
---|
| 99 | Download size: &gcc-size;
|
---|
| 100 | </para>
|
---|
[0c13b97d] | 101 | </listitem>
|
---|
| 102 | <listitem>
|
---|
[ae0673a] | 103 | <para>
|
---|
| 104 | Estimated disk space required: &gcc-ada-buildsize;
|
---|
| 105 | </para>
|
---|
[0c13b97d] | 106 | </listitem>
|
---|
| 107 | <listitem>
|
---|
[ae0673a] | 108 | <para>
|
---|
| 109 | Estimated build time: &gcc-ada-time;
|
---|
| 110 | </para>
|
---|
[0c13b97d] | 111 | </listitem>
|
---|
| 112 | </itemizedlist>
|
---|
| 113 |
|
---|
| 114 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 115 | <note>
|
---|
[ae0673a] | 116 | <para>
|
---|
| 117 | You will need to install <application>GNAT</application>
|
---|
| 118 | temporarily to satisfy the circular dependency. You may point your
|
---|
| 119 | browser to the <ulink url="&gnat-download-http;">AdaCore download
|
---|
[87532434] | 120 | page</ulink>, choose your platform and 2015 (64 bit machines) or
|
---|
| 121 | 2014 (32 bit machines), then select the file
|
---|
[ae0673a] | 122 | to download. Alternatively, direct links to the 64 bit and 32 bit
|
---|
| 123 | linux versions are given below.
|
---|
| 124 | </para>
|
---|
[0c13b97d] | 125 | </note>
|
---|
| 126 |
|
---|
| 127 | <itemizedlist spacing="compact">
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>
|
---|
| 130 | GNAT 64 bit binary: <ulink url="&gnat-64-download-http;"/>
|
---|
| 131 | </para>
|
---|
| 132 | </listitem>
|
---|
| 133 | <listitem>
|
---|
| 134 | <para>
|
---|
| 135 | GNAT 64 bit MD5 sum: &gnat-64-md5sum;
|
---|
| 136 | </para>
|
---|
| 137 | </listitem>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>
|
---|
| 140 | GNAT 64 bit size: &gnat-64-size;
|
---|
| 141 | </para>
|
---|
| 142 | </listitem>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>
|
---|
| 145 | GNAT 32 bit binary: <ulink url="&gnat-32-download-http;"/>
|
---|
| 146 | </para>
|
---|
| 147 | </listitem>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>
|
---|
| 150 | GNAT 32 bit MD5 sum: &gnat-32-md5sum;
|
---|
| 151 | </para>
|
---|
| 152 | </listitem>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>
|
---|
| 155 | GNAT 32 bit size: &gnat-32-size;
|
---|
| 156 | </para>
|
---|
| 157 | </listitem>
|
---|
[87532434] | 158 | <!--
|
---|
[ae0673a] | 159 | <listitem>
|
---|
[0c13b97d] | 160 | <para>
|
---|
| 161 | Required patch:
|
---|
[fcabde3c] | 162 | <ulink url="&patch-root;/gcc-&gcc-ada-version;-upstream_fixes-1.patch"/>
|
---|
[0c13b97d] | 163 | </para>
|
---|
[ae0673a] | 164 | </listitem>
|
---|
[87532434] | 165 | -->
|
---|
[0c13b97d] | 166 | </itemizedlist>
|
---|
| 167 |
|
---|
| 168 | <bridgehead renderas="sect3">GCC Ada Dependencies</bridgehead>
|
---|
| 169 |
|
---|
| 170 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 171 | <para role="recommended">
|
---|
| 172 | <xref linkend="dejagnu"/>, for tests
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
| 175 | <para condition="html" role="usernotes">User Notes:
|
---|
| 176 | <ulink url="&blfs-wiki;/gcc-ada"/></para>
|
---|
| 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
| 180 | <sect2 role="installation">
|
---|
| 181 | <title>Installation of the GNAT binary</title>
|
---|
| 182 |
|
---|
[ae0673a] | 183 | <para>
|
---|
| 184 | Before unpacking and changing into the GCC source directory, first
|
---|
| 185 | unpack the <application>GNAT</application> tarball, and change to the
|
---|
| 186 | GNAT directory. Then, install the <application>GNAT</application> binary
|
---|
| 187 | by running the following command as the
|
---|
| 188 | <systemitem class="username">root</systemitem> user:
|
---|
| 189 | </para>
|
---|
[0c13b97d] | 190 |
|
---|
| 191 | <screen role="root"><userinput>make ins-all prefix=/opt/gnat</userinput></screen>
|
---|
| 192 |
|
---|
[ae0673a] | 193 | <para>
|
---|
| 194 | The <application>GNAT</application> compiler can be invoked by
|
---|
| 195 | executing the <command>gcc</command> binary installed in <filename
|
---|
| 196 | class="directory">/opt/gnat/bin</filename>.
|
---|
| 197 | </para>
|
---|
[0c13b97d] | 198 |
|
---|
[ae0673a] | 199 | <para>
|
---|
| 200 | You may now remove the <application>GNAT</application>
|
---|
| 201 | source directory if desired.
|
---|
| 202 | </para>
|
---|
[0c13b97d] | 203 |
|
---|
[ae0673a] | 204 | <para>
|
---|
| 205 | Prepare to compile <application>GCC</application> by placing the
|
---|
| 206 | <application>GNAT</application> version of <command>gcc</command> at the
|
---|
| 207 | beginning of the <envar>PATH</envar> variable by using the following
|
---|
| 208 | commands:
|
---|
| 209 | </para>
|
---|
[0c13b97d] | 210 |
|
---|
| 211 | <screen><userinput>PATH_HOLD=$PATH &&
|
---|
| 212 | export PATH=/opt/gnat/bin:$PATH_HOLD</userinput></screen>
|
---|
| 213 |
|
---|
[ae0673a] | 214 | <para>
|
---|
| 215 | Doing so has the drawback that the <application>GCC</application>
|
---|
| 216 | and <application>Binutils</application> executables are taken
|
---|
| 217 | from the just installed <application>GNAT</application> package, but the
|
---|
| 218 | versions of those executables are outdated compared to those installed in
|
---|
| 219 | LFS. This is not important for the <application>GCC</application> compilers,
|
---|
| 220 | since they recompile themselves during the bootstrap process. On the other
|
---|
| 221 | hand, the outdated <command>ld</command> and <command>as</command> tools
|
---|
| 222 | are used all along. In order to use the LFS tools, issue as the
|
---|
| 223 | <systemitem class="username">root</systemitem> user:
|
---|
| 224 | </para>
|
---|
[0c13b97d] | 225 |
|
---|
| 226 | <screen role="root"><userinput>find /opt/gnat -name ld -exec mv -v {} {}.old \;
|
---|
| 227 | find /opt/gnat -name as -exec mv -v {} {}.old \;</userinput></screen>
|
---|
| 228 |
|
---|
| 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | <sect2 role="installation">
|
---|
| 232 | <title>Installation of GCC Ada</title>
|
---|
[8ddc247] | 233 |
|
---|
[ae0673a] | 234 | <para>
|
---|
| 235 | Install <application>GCC Ada</application> by running the
|
---|
| 236 | following commands:
|
---|
| 237 | </para>
|
---|
| 238 |
|
---|
| 239 | <screen><userinput>mkdir ../gcc-build &&
|
---|
[0c13b97d] | 240 | cd ../gcc-build &&
|
---|
| 241 |
|
---|
[fcabde3c] | 242 | ../gcc-&gcc-ada-version;/configure \
|
---|
[0c13b97d] | 243 | --prefix=/usr \
|
---|
| 244 | --disable-multilib \
|
---|
| 245 | --with-system-zlib \
|
---|
| 246 | --enable-languages=ada &&
|
---|
| 247 | make</userinput></screen>
|
---|
| 248 |
|
---|
[ae0673a] | 249 | <para>
|
---|
| 250 | If you have installed additional packages such as
|
---|
| 251 | <application>Valgrind</application> and <application>GDB</application>,
|
---|
| 252 | the <application>GCC</application> part of the testsuite will run more
|
---|
| 253 | tests than in LFS. Some of those will report FAIL and others XPASS
|
---|
| 254 | (pass when expected to FAIL). To run the tests, issue:
|
---|
| 255 | </para>
|
---|
[0c13b97d] | 256 |
|
---|
| 257 | <screen><userinput>ulimit -s 32768 &&
|
---|
| 258 | make -k check</userinput></screen>
|
---|
| 259 | <!-- The command above may error out, so using && may prevent the summary
|
---|
| 260 | to be run. -->
|
---|
| 261 |
|
---|
[ae0673a] | 262 | <para>
|
---|
| 263 | The tests are very long, and the results may be hard to find in the
|
---|
| 264 | logs, specially if you use parallel jobs with make. You can get a summary
|
---|
| 265 | of the tests with:
|
---|
| 266 | </para>
|
---|
[0c13b97d] | 267 |
|
---|
[fcabde3c] | 268 | <screen><userinput>../gcc-&gcc-ada-version;/contrib/test_summary</userinput></screen>
|
---|
[0c13b97d] | 269 |
|
---|
[ae0673a] | 270 | <para>
|
---|
| 271 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 272 | </para>
|
---|
[0c13b97d] | 273 |
|
---|
| 274 | <screen role="root"><userinput>make install &&
|
---|
| 275 |
|
---|
| 276 | mkdir -pv /usr/share/gdb/auto-load/usr/lib &&
|
---|
| 277 | mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib &&
|
---|
| 278 |
|
---|
| 279 | chown -v -R root:root \
|
---|
[fcabde3c] | 280 | /usr/lib/gcc/*linux-gnu/&gcc-ada-version;/include{,-fixed} \
|
---|
| 281 | /usr/lib/gcc/*linux-gnu/&gcc-ada-version;/ada{lib,include}</userinput></screen>
|
---|
[0c13b97d] | 282 |
|
---|
[ae0673a] | 283 | <para>
|
---|
| 284 | You should now remove the <application>GNAT</application>
|
---|
| 285 | installation and perform other cleanups. First, as the <systemitem
|
---|
| 286 | class="username">root</systemitem> user:
|
---|
| 287 | </para>
|
---|
| 288 |
|
---|
| 289 | <screen role="root"><userinput>rm -rf /opt/gnat</userinput></screen>
|
---|
| 290 |
|
---|
| 291 | <para>
|
---|
| 292 | Then, as a normal user:
|
---|
| 293 | </para>
|
---|
[0c13b97d] | 294 |
|
---|
[ae0673a] | 295 | <screen><userinput>export PATH=$PATH_HOLD &&
|
---|
[0c13b97d] | 296 | unset PATH_HOLD</userinput></screen>
|
---|
| 297 |
|
---|
| 298 | </sect2>
|
---|
| 299 |
|
---|
| 300 | <sect2 role="commands">
|
---|
| 301 | <title>Command Explanations</title>
|
---|
[ae0673a] | 302 |
|
---|
[8ddc247] | 303 | <para>
|
---|
[ae0673a] | 304 | <command>mkdir ../gcc-build; cd ../gcc-build</command>: The
|
---|
| 305 | <application>GCC</application> documentation recommends
|
---|
| 306 | building the package in a dedicated build directory.
|
---|
[8ddc247] | 307 | </para>
|
---|
[0c13b97d] | 308 |
|
---|
[ae0673a] | 309 | <para>
|
---|
| 310 | <parameter>--disable-multilib</parameter>: This parameter ensures
|
---|
| 311 | that files are created for the specific architecture of your computer.
|
---|
| 312 | </para>
|
---|
[0c13b97d] | 313 |
|
---|
| 314 | <para>
|
---|
[fa200b8] | 315 | <parameter>--with-system-zlib</parameter>: Uses the system
|
---|
[0c13b97d] | 316 | <application>zlib</application> instead of the bundled one.
|
---|
| 317 | <application>zlib</application> is used for compressing
|
---|
| 318 | and uncompressing <application>GCC</application>'s intermediate
|
---|
| 319 | language in LTO (Link Time Optimization) object files.
|
---|
| 320 | </para>
|
---|
| 321 |
|
---|
| 322 | <para>
|
---|
[fa200b8] | 323 | <parameter>--enable-languages=ada</parameter>: Instructs the build system
|
---|
| 324 | to build the Ada tools and compiler. It is unavoidable that the
|
---|
| 325 | <application>C</application> and <application>C++</application>
|
---|
| 326 | compilers be built too.
|
---|
[0c13b97d] | 327 | </para>
|
---|
| 328 |
|
---|
[ae0673a] | 329 | <para>
|
---|
| 330 | <option>--with-default-libstdcxx-abi=c++98</option>: Use this switch if you
|
---|
| 331 | are building <application>GNAT</application> tools using a
|
---|
| 332 | <application>GCC</application> version prior to 5.1.0,
|
---|
| 333 | and you do not want to recompile all the libraries written in C++.
|
---|
| 334 | </para>
|
---|
| 335 |
|
---|
| 336 | <para>
|
---|
| 337 | <command>ulimit -s 32768</command>: This command prevents several
|
---|
| 338 | tests from running out of stack space.
|
---|
| 339 | </para>
|
---|
[0c13b97d] | 340 |
|
---|
[ae0673a] | 341 | <para>
|
---|
| 342 | <command>make -k check</command>: This command runs the test suite
|
---|
| 343 | without stopping if any errors are encountered.
|
---|
| 344 | </para>
|
---|
[0c13b97d] | 345 |
|
---|
[ae0673a] | 346 | <para>
|
---|
[fcabde3c] | 347 | <command>../gcc-&gcc-ada-version;/contrib/test_summary</command>: This
|
---|
[ae0673a] | 348 | command will produce a summary of the test suite results. You can append
|
---|
| 349 | <command>| grep -A7 Summ</command> to the command to produce an even more
|
---|
| 350 | condensed version of the summary. You may also wish to redirect the output
|
---|
| 351 | to a file for review and comparison later on.
|
---|
| 352 | </para>
|
---|
[0c13b97d] | 353 |
|
---|
[ae0673a] | 354 | <para>
|
---|
| 355 | <command>chown -v -R root:root /usr/lib/gcc/*linux-gnu/...</command>:
|
---|
| 356 | If the package is built by a user other than root, the ownership of the
|
---|
| 357 | installed <filename class="directory">include</filename> and
|
---|
| 358 | <filename class="directory">adalib</filename> directories (and their
|
---|
| 359 | contents) will be incorrect. These commands change the ownership to the
|
---|
| 360 | <systemitem class="username">root</systemitem> user and group.
|
---|
| 361 | </para>
|
---|
[0c13b97d] | 362 |
|
---|
| 363 | </sect2>
|
---|
| 364 |
|
---|
| 365 | <sect2 role="content">
|
---|
| 366 | <title>Contents</title>
|
---|
| 367 |
|
---|
| 368 | <segmentedlist>
|
---|
| 369 | <segtitle>Installed Programs</segtitle>
|
---|
| 370 | <segtitle>Installed Libraries</segtitle>
|
---|
| 371 | <segtitle>Installed Directories</segtitle>
|
---|
| 372 |
|
---|
| 373 | <seglistitem>
|
---|
| 374 | <seg>
|
---|
| 375 | gnat, gnatbind, gnatchop, gnatclean, gnatfind, gnatkr,
|
---|
[ae0673a] | 376 | gnatlink, gnatls, gnatmake, gnatname, gnatprep, gnatxref
|
---|
[0c13b97d] | 377 | </seg>
|
---|
| 378 | <seg>
|
---|
[e2c88e8] | 379 | libgnarl.{so,a}, libgnat.{so,a} in <filename class="directory">
|
---|
[fcabde3c] | 380 | /usr/lib/gcc/<arch-triplet>/&gcc-ada-version;/adalib</filename>
|
---|
[0c13b97d] | 381 | </seg>
|
---|
| 382 | <seg>
|
---|
[fcabde3c] | 383 | /usr/lib/gcc/<arch-triplet>/&gcc-ada-version;/ada{include,lib}
|
---|
[e2c88e8] | 384 | and /usr/lib/gcc/<arch-triplet>/&gcc-ada-version;/plugin/include/ada
|
---|
[0c13b97d] | 385 | </seg>
|
---|
| 386 | </seglistitem>
|
---|
| 387 | </segmentedlist>
|
---|
| 388 |
|
---|
[ae0673a] | 389 | <para>
|
---|
| 390 | Only the Ada specific files are listed here. Others can be found at
|
---|
| 391 | <ulink url="&lfs-root;/chapter06/gcc.html#contents-gcc"/> as they were
|
---|
| 392 | initially installed during the building of LFS.
|
---|
| 393 | </para>
|
---|
[0c13b97d] | 394 |
|
---|
| 395 | <variablelist>
|
---|
| 396 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 397 | <?dbfo list-presentation="list"?>
|
---|
| 398 | <?dbhtml list-presentation="table"?>
|
---|
| 399 |
|
---|
| 400 | <varlistentry id="gnat">
|
---|
| 401 | <term><command>gnat</command></term>
|
---|
| 402 | <listitem>
|
---|
[ae0673a] | 403 | <para>
|
---|
| 404 | is a wrapper that accepts a number of commands and calls
|
---|
| 405 | the corresponding tool from the list below.
|
---|
| 406 | </para>
|
---|
[0c13b97d] | 407 | <indexterm zone="gcc-ada gnat">
|
---|
| 408 | <primary sortas="b-gnat">gnat</primary>
|
---|
| 409 | </indexterm>
|
---|
| 410 | </listitem>
|
---|
| 411 | </varlistentry>
|
---|
| 412 |
|
---|
| 413 | <varlistentry id="gnatbind">
|
---|
| 414 | <term><command>gnatbind</command></term>
|
---|
| 415 | <listitem>
|
---|
[ae0673a] | 416 | <para>
|
---|
| 417 | is used to bind compiled objects.
|
---|
| 418 | </para>
|
---|
[0c13b97d] | 419 | <indexterm zone="gcc-ada gnatbind">
|
---|
| 420 | <primary sortas="b-gnatbind">gnatbind</primary>
|
---|
| 421 | </indexterm>
|
---|
| 422 | </listitem>
|
---|
| 423 | </varlistentry>
|
---|
| 424 |
|
---|
| 425 | <varlistentry id="gnatchop">
|
---|
| 426 | <term><command>gnatchop</command></term>
|
---|
| 427 | <listitem>
|
---|
[ae0673a] | 428 | <para>
|
---|
| 429 | is useful for renaming files to meet the standard
|
---|
| 430 | <application>Ada</application> default file naming conventions.
|
---|
| 431 | </para>
|
---|
[0c13b97d] | 432 | <indexterm zone="gcc-ada gnatchop">
|
---|
| 433 | <primary sortas="b-gnatchop">gnatchop</primary>
|
---|
| 434 | </indexterm>
|
---|
| 435 | </listitem>
|
---|
| 436 | </varlistentry>
|
---|
| 437 |
|
---|
| 438 | <varlistentry id="gnatclean">
|
---|
| 439 | <term><command>gnatclean</command></term>
|
---|
| 440 | <listitem>
|
---|
[ae0673a] | 441 | <para>
|
---|
| 442 | is used to remove files associated with a
|
---|
| 443 | <application>GNAT</application> project.
|
---|
| 444 | </para>
|
---|
[0c13b97d] | 445 | <indexterm zone="gcc-ada gnatclean">
|
---|
| 446 | <primary sortas="b-gnatclean">gnatclean</primary>
|
---|
| 447 | </indexterm>
|
---|
| 448 | </listitem>
|
---|
| 449 | </varlistentry>
|
---|
| 450 |
|
---|
| 451 | <varlistentry id="gnatfind">
|
---|
| 452 | <term><command>gnatfind</command></term>
|
---|
| 453 | <listitem>
|
---|
[ae0673a] | 454 | <para>
|
---|
| 455 | is intended for locating definition and/or references to
|
---|
| 456 | specified entities in a <application>GNAT</application> project.
|
---|
| 457 | </para>
|
---|
[0c13b97d] | 458 | <indexterm zone="gcc-ada gnatfind">
|
---|
| 459 | <primary sortas="b-gnatfind">gnatfind</primary>
|
---|
| 460 | </indexterm>
|
---|
| 461 | </listitem>
|
---|
| 462 | </varlistentry>
|
---|
| 463 |
|
---|
| 464 | <varlistentry id="gnatkr">
|
---|
| 465 | <term><command>gnatkr</command></term>
|
---|
| 466 | <listitem>
|
---|
[ae0673a] | 467 | <para>
|
---|
| 468 | is used to determine the crunched name for a given file, when
|
---|
| 469 | crunched to a specified maximum length.
|
---|
| 470 | </para>
|
---|
[0c13b97d] | 471 | <indexterm zone="gcc-ada gnatkr">
|
---|
| 472 | <primary sortas="b-gnatkr">gnatkr</primary>
|
---|
| 473 | </indexterm>
|
---|
| 474 | </listitem>
|
---|
| 475 | </varlistentry>
|
---|
| 476 |
|
---|
| 477 | <varlistentry id="gnatlink">
|
---|
| 478 | <term><command>gnatlink</command></term>
|
---|
| 479 | <listitem>
|
---|
[ae0673a] | 480 | <para>
|
---|
| 481 | is used to link programs and build an executable file.
|
---|
| 482 | </para>
|
---|
[0c13b97d] | 483 | <indexterm zone="gcc-ada gnatlink">
|
---|
| 484 | <primary sortas="b-gnatlink">gnatlink</primary>
|
---|
| 485 | </indexterm>
|
---|
| 486 | </listitem>
|
---|
| 487 | </varlistentry>
|
---|
| 488 |
|
---|
| 489 | <varlistentry id="gnatls">
|
---|
| 490 | <term><command>gnatls</command></term>
|
---|
| 491 | <listitem>
|
---|
[ae0673a] | 492 | <para>
|
---|
| 493 | is the compiled unit browser.
|
---|
| 494 | </para>
|
---|
[0c13b97d] | 495 | <indexterm zone="gcc-ada gnatls">
|
---|
| 496 | <primary sortas="b-gnatls">gnatls</primary>
|
---|
| 497 | </indexterm>
|
---|
| 498 | </listitem>
|
---|
| 499 | </varlistentry>
|
---|
| 500 |
|
---|
| 501 | <varlistentry id="gnatmake">
|
---|
| 502 | <term><command>gnatmake</command></term>
|
---|
| 503 | <listitem>
|
---|
[ae0673a] | 504 | <para>
|
---|
| 505 | is the <application>Ada</application> compiler, which performs
|
---|
[87532434] | 506 | compilation, binding and linking.
|
---|
[ae0673a] | 507 | </para>
|
---|
[0c13b97d] | 508 | <indexterm zone="gcc-ada gnatmake">
|
---|
| 509 | <primary sortas="b-gnatmake">gnatmake</primary>
|
---|
| 510 | </indexterm>
|
---|
| 511 | </listitem>
|
---|
| 512 | </varlistentry>
|
---|
| 513 |
|
---|
| 514 | <varlistentry id="gnatname">
|
---|
| 515 | <term><command>gnatname</command></term>
|
---|
| 516 | <listitem>
|
---|
[ae0673a] | 517 | <para>
|
---|
| 518 | will list the files associated with a
|
---|
| 519 | <application>GNAT</application> project.
|
---|
| 520 | </para>
|
---|
[0c13b97d] | 521 | <indexterm zone="gcc-ada gnatname">
|
---|
| 522 | <primary sortas="b-gnatname">gnatname</primary>
|
---|
| 523 | </indexterm>
|
---|
| 524 | </listitem>
|
---|
| 525 | </varlistentry>
|
---|
| 526 |
|
---|
| 527 | <varlistentry id="gnatprep">
|
---|
| 528 | <term><command>gnatprep</command></term>
|
---|
| 529 | <listitem>
|
---|
[ae0673a] | 530 | <para>
|
---|
| 531 | is the <application>GNAT</application> external preprocessor.
|
---|
| 532 | </para>
|
---|
[0c13b97d] | 533 | <indexterm zone="gcc-ada gnatprep">
|
---|
| 534 | <primary sortas="b-gnatprep">gnatprep</primary>
|
---|
| 535 | </indexterm>
|
---|
| 536 | </listitem>
|
---|
| 537 | </varlistentry>
|
---|
| 538 |
|
---|
| 539 | <varlistentry id="gnatxref">
|
---|
| 540 | <term><command>gnatxref</command></term>
|
---|
| 541 | <listitem>
|
---|
[ae0673a] | 542 | <para>
|
---|
| 543 | is similar to <command>gnatfind</command>, but generates
|
---|
| 544 | a full report of all cross-references.
|
---|
| 545 | </para>
|
---|
[0c13b97d] | 546 | <indexterm zone="gcc-ada gnatxref">
|
---|
| 547 | <primary sortas="b-gnatxref">gnatxref</primary>
|
---|
| 548 | </indexterm>
|
---|
| 549 | </listitem>
|
---|
| 550 | </varlistentry>
|
---|
| 551 |
|
---|
| 552 | </variablelist>
|
---|
| 553 |
|
---|
| 554 | </sect2>
|
---|
| 555 |
|
---|
| 556 | </sect1>
|
---|