10. Program Structure and Compilation Issues

The overall structure of programs and the facilities for separate compilation are described in this chapter. A program is a collection of one or more compilation units submitted to a compiler in one or more compilations. Each compilation unit specifies the separate compilation of a construct which can be a subprogram declaration or body, a package declaration or body, a generic declaration or body, or a generic instantiation. Alternatively this construct can be a subunit, in which case it includes the body of a subprogram, package, task unit, or generic unit declared within another compilation unit.

References: compilation, compilation unit, generic body, generic declaration, generic instantiation, package body, package declaration, subprogram body, subprogram declaration, subunit, task body, task unit.

Sub-topics:

  • 10.1 Compilation Units - Library Units
  • 10.2 Subunits of Compilation Units
  • 10.3 Order of Compilation
  • 10.4 The Program Library
  • 10.5 Elaboration of Library Units
  • 10.6 Program Optimization

[INDEX][CONTENTS]