[Top] | [Contents] | [Index] | [ ? ] |
GNAT User's Guide
The GNAT Ada 95 Compiler
GNAT Academic Edition, Version 2005
Document revision level 1.265
Date: 2005/05/19 14:36:38
AdaCore
Copyright (C) 1995-2005, 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 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 1.6 Introduction to Glide and GVD 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
5.3 Setting Stack Size from gnatlink
5.4 Setting Heap Size from 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 Reducing the Size of Ada Executables with gnatelim
Performance Considerations
7.1.1 Controlling Run-Time Checks 7.1.2 Use of Restrictions 7.1.3 Optimization Levels 7.1.4 Debugging Optimized Code 7.1.5 Inlining of Subprograms 7.1.6 Optimization and Strict Aliasing Reducing the Size of Ada Executables with gnatelim
7.2.1 About gnatelim
7.2.2 Running gnatelim
7.2.3 Correcting the List of Eliminate Pragmas 7.2.4 Making Your Executables Smaller 7.2.5 Summary of the gnatelim Usage Cycle 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
UsageGNAT Project Manager
The Cross-Referencing Tools gnatxref and gnatfind
The GNAT Pretty-Printer gnatpp
13.1 Switches for gnatpp
13.2 Formatting Rules The GNAT Metrics Tool gnatmetric
14.1 Switches for gnatmetric
File Name Krunching Using gnatkr
15.1 About gnatkr
15.2 Using gnatkr
15.3 Krunching Method 15.4 Examples of gnatkr
UsagePreprocessing Using gnatprep
16.1 Using gnatprep
16.2 Switches for gnatprep
16.3 Form of Definitions File 16.4 Form of Input Text for gnatprep
The GNAT Library Browser gnatls
17.1 Running gnatls
17.2 Switches for gnatls
17.3 Example of gnatls
UsageCleaning Up Using gnatclean
18.1 Running gnatclean
18.2 Switches for gnatclean
18.3 Examples of gnatclean
UsageGNAT and Libraries
19.1 Introduction to Libraries in GNAT 19.2 General Ada Libraries 19.3 Stand-alone Ada Libraries 19.4 Rebuilding the GNAT Run-Time Library Using the GNU make Utility
20.1 Using gnatmake in a Makefile 20.2 Automatically Creating a List of Directories 20.3 Generating the Command Line Switches 20.4 Overcoming Command Line Length Limits Memory Management Issues
21.1 Some Useful Memory Pools 21.2 The GNAT Debug Pool Facility 21.3 The gnatmem
ToolSome Useful Memory Pools The GNAT Debug Pool Facility The gnatmem Tool
21.3.1 Running gnatmem
21.3.2 Switches for gnatmem
21.3.3 Example of gnatmem
UsageSample Bodies Using gnatstub
22.1 Running gnatstub
22.2 Switches for gnatstub
Other Utility Programs
23.1 Using Other Utility Programs with GNAT 23.2 The External Symbol Naming Scheme of GNAT 23.3 Ada Mode for Glide
23.4 Converting Ada Files to HTML with gnathtml
Running and Debugging Ada Programs
Platform-Specific Information for the Run-Time Libraries
Example of Binder Output File Elaboration Order Handling in GNAT
Inline Assembler
Compatibility and Porting Guide
E.1 Compatibility with Ada 83 E.2 Implementation-dependent characteristics E.5 Compatibility with DEC Ada 83 E.3 Compatibility with Other Ada 95 Systems E.4 Representation Clauses Microsoft Windows Topics
Index