[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This guide describes the use of GNAT GPL, a compiler and software development toolset for the full Ada programming language. It documents the features of the compiler and tools, and explains how to use them to build Ada applications.
GNAT GPL implements Ada 95 and Ada 2005, and it may also be invoked in Ada 83 compatibility mode. By default, GNAT GPL assumes Ada 2005, but you can override with a compiler switch (see section 3.2.9 Compiling Different Versions of Ada) to explicitly specify the language version. Throughout this manual, references to "Ada" without a year suffix apply to both the Ada 95 and Ada 2005 versions of the language.
For ease of exposition, "GNAT GPL" will be referred to simply as "GNAT" in the remainder of this document.
What This Guide Contains What You Should Know before Reading This Guide Related Information Conventions
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This guide contains the following chapters:
gcc
, describes how to compile
Ada programs with gcc
, the Ada compiler.
gnatbind
, describes how to
perform binding of Ada programs with gnatbind
, the GNAT binding
utility.
gnatlink
,
describes gnatlink
, a
program that provides for linking using the GNAT run-time library to
construct a program. gnatlink
can also incorporate foreign language
object units into the executable.
gnatmake
, describes gnatmake
, a
utility that automatically determines the set of sources
needed by an Ada compilation unit, and executes the necessary compilations
binding and link.
gnatelim
tool and unused subprogram/data
elimination.
gnatchop
, describes
gnatchop
, a utility that allows you to preprocess a file that
contains Ada source code, and split it into one or more new files, one
for each compilation unit.
gnatname
,
shows how to override the default GNAT file naming conventions,
either for an individual unit or globally.
gnatxref
and gnatfind
, discusses
gnatxref
and gnatfind
, two tools that provide an easy
way to navigate through sources.
gnatpp
, shows how to produce a reformatted
version of an Ada source file with control over casing, indentation,
comment placement, and other elements of program presentation style.
gnatmetric
, shows how to compute various
metrics for an Ada source file, such as the number of types and subprograms,
and assorted complexity measures.
gnatkr
, describes the gnatkr
file name krunching utility, used to handle shortened
file names on operating systems with a limit on the length of names.
gnatprep
, describes gnatprep
, a
preprocessor utility that allows a single source file to be used to
generate multiple or parameterized source files by means of macro
substitution.
gnatls
, describes gnatls
, a
utility that displays information about compiled units, including dependences
on the corresponding sources files, and consistency of compilations.
gnatclean
, describes gnatclean
, a utility
to delete files that are produced by the compiler, binder and linker.
make
Utility, describes some techniques for using
the GNAT toolset in Makefiles.
gnatmem
, a utility that monitors dynamic
allocation and deallocation and helps detect "memory leaks".
gnatcheck
, discusses gnatcheck
,
a utility that checks Ada code against a set of rules.
gnatstub
, discusses gnatstub
,
a utility that generates empty but compilable bodies for library units.
gnattest
, discusses gnattest
,
a utility that generates unit testing templates for library units.
gnathtml
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This guide assumes a basic familiarity with the Ada 95 language, as described in the International Standard ANSI/ISO/IEC-8652:1995, January 1995. It does not require knowledge of the new features introduced by Ada 2005, (officially known as ISO/IEC 8652:1995 with Technical Corrigendum 1 and Amendment 1). Both reference manuals are included in the GNAT documentation package.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
For further information about related tools, refer to the following documents:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Following are examples of the typographical and graphic conventions used in this guide:
Functions
, utility program names
, standard names
,
and classes
.
Variables
, environment variables
, and metasyntactic
variables.
and then shown this way. |
Commands that are entered by the user are preceded in this manual by the
characters "$
" (dollar sign followed by space). If your system
uses this sequence as a prompt, then the commands will appear exactly as
you see them in the manual. If your system uses some other prompt, then
the command will appear with the $
replaced by whatever prompt
character you are using.
Full file names are shown with the "/
" character
as the directory separator; e.g., `parent-dir/subdir/myfile.adb'.
If you are using GNAT on a Windows platform, please note that
the "\
" character should be used instead.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |