Ada Programming/Pragmas

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Contents


[edit] Description

Pragmas control the compiler, i.e. they are compiler directives. They have the standard form of

pragma Name (Parameter_List);

where the parameter list is optional.

[edit] List of language defined pragmas

Some pragmas are specially marked:

Ada 2005 
This is a new Ada 2005 pragma.
Obsolescent 
This is a deprecated pragma and it should not be used in new code.

[edit] A – H

[edit] I – O

[edit] P – R

[edit] S – Z

[edit] List of implementation defined pragmas

The following pragmas are not available in all Ada compilers, only in those that had implemented them.

You can help Wikibooks adding implementation dependent attributes of other compilers:

GNAT 
Implementation defined pragma of the GNAT compiler.
DEC Ada 
Implementation defined pragma of the DEC Ada compiler.

[edit] A – C

[edit] D – H

[edit] I – L

[edit] M – S

[edit] T – Z

[edit] See also

[edit] Wikibook

[edit] Ada Reference Manual

[edit] Ada 95

[edit] Ada 2005

Personal tools
In other languages