[Top] | [Contents] | [Index] | [ ? ] |
GNAT GPL User's Guide
The GNAT Ada Compiler
GNAT GPL Edition, Version 2012
Document revision level 247945
Date: 2012/05/02
AdaCore
Copyright (C) 1995-2012, Free Software Foundation
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the Invariant Sections being "GNU Free Documentation License", with the Front-Cover Texts being "GNAT GPL User's Guide", and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
-- The Detailed Node Listing --- About This Guide
What This Guide Contains What You Should Know before Reading This Guide Related Information Conventions Getting Started with GNAT
1.1 Running GNAT 1.2 Running a Simple Ada Program 1.3 Running a Program with Multiple Units 1.4 Using the gnatmake
Utility1.5 Introduction to GPS The GNAT Compilation Model
Foreign Language Representation
2.2.1 Latin-1 2.2.2 Other 8-Bit Codes 2.2.3 Wide Character Encodings Compiling Ada Programs With gcc
3.1 Compiling Programs 3.2 Switches for gcc
3.3 Search Paths and the Run-Time Library (RTL) 3.4 Order of Compilation Issues 3.5 Examples Switches for gcc
Binding Ada Programs With gnatbind
4.1 Running gnatbind
4.2 Switches for gnatbind
4.3 Command-Line Access 4.4 Search Paths for gnatbind
4.5 Examples of gnatbind
UsageSwitches for gnatbind
Linking Using gnatlink
5.1 Running gnatlink
5.2 Switches for gnatlink
The GNAT Make Program gnatmake
6.1 Running gnatmake
6.2 Switches for gnatmake
6.3 Mode Switches for gnatmake
6.4 Notes on the Command Line 6.5 How gnatmake
Works6.6 Examples of gnatmake
UsageImproving Performance
7.1 Performance Considerations 7.2 Text_IO
Suggestions7.3 Reducing Size of Ada Executables with gnatelim
7.4 Reducing Size of Executables with Unused Subprogram/Data Elimination Performance Considerations
Reducing Size of Ada Executables with gnatelim
Reducing Size of Executables with unused subprogram/data elimination
7.4.1 About unused subprogram/data elimination 7.4.2 Compilation options Renaming Files Using gnatchop
8.1 Handling Files with Multiple Units 8.2 Operating gnatchop in Compilation Mode 8.3 Command Line for gnatchop
8.4 Switches for gnatchop
8.5 Examples of gnatchop
UsageConfiguration Pragmas
9.1 Handling of Configuration Pragmas 9.2 The Configuration Pragmas Files Handling Arbitrary File Naming Conventions Using gnatname
10.1 Arbitrary File Naming Conventions 10.2 Running gnatname
10.3 Switches for gnatname
10.4 Examples of gnatname
UsageThe Cross-Referencing Tools gnatxref and gnatfind
The GNAT Pretty-Printer gnatpp
14.1 Switches for gnatpp
14.2 Formatting Rules The GNAT Metrics Tool gnatmetric
15.1 Switches for gnatmetric
File Name Krunching Using gnatkr
16.1 About gnatkr
16.2 Using gnatkr
16.3 Krunching Method 16.4 Examples of gnatkr
UsagePreprocessing Using gnatprep
17.1 Preprocessing Symbols 17.2 Using gnatprep
17.3 Switches for gnatprep
17.4 Form of Definitions File 17.5 Form of Input Text for gnatprep
The GNAT Library Browser gnatls
18.1 Running gnatls
18.2 Switches for gnatls
18.3 Example of gnatls
UsageCleaning Up Using gnatclean
19.1 Running gnatclean
19.2 Switches for gnatclean
GNAT and Libraries
20.1 Introduction to Libraries in GNAT 20.2 General Ada Libraries 20.3 Stand-alone Ada Libraries 20.4 Rebuilding the GNAT Run-Time Library Using the GNU make Utility
21.1 Using gnatmake in a Makefile 21.2 Automatically Creating a List of Directories 21.3 Generating the Command Line Switches 21.4 Overcoming Command Line Length Limits Memory Management Issues
22.1 Some Useful Memory Pools 22.2 The GNAT Debug Pool Facility 22.3 The gnatmem
ToolStack Related Facilities
23.1 Stack Overflow Checking 23.2 Static Stack Usage Analysis 23.3 Dynamic Stack Usage Analysis Some Useful Memory Pools The GNAT Debug Pool Facility The gnatmem Tool
22.3.1 Running gnatmem
22.3.2 Switches for gnatmem
22.3.3 Example of gnatmem
UsageVerifying Properties Using gnatcheck Sample Bodies Using gnatstub
25.1 Running gnatstub
25.2 Switches for gnatstub
Creating Unit Tests Using gnattest
Other Utility Programs
29.1 Using Other Utility Programs with GNAT 29.2 The External Symbol Naming Scheme of GNAT 29.3 Converting Ada Files to HTML with gnathtml
Code Coverage and Profiling
30.1 Code Coverage of Ada Programs using gcov 30.2 Profiling an Ada Program using gprof Running and Debugging Ada Programs
Platform-Specific Information for the Run-Time Libraries
Example of Binder Output File Elaboration Order Handling in GNAT
Conditional Compilation
D.1 Use of Boolean Constants D.2 Debugging - A Special Case D.3 Conditionalizing Declarations D.4 Use of Alternative Implementations D.5 Preprocessing Inline Assembler
Compatibility and Porting Guide
Microsoft Windows Topics
Index