Next: , Up: Elaboration Order Handling in GNAT   [Contents][Index]


9.1 Elaboration Code

Ada defines the term `execution' as the process by which a construct achieves its run-time effect. This process is also referred to as `elaboration' for declarations and `evaluation' for expressions.

The execution model in Ada allows for certain sections of an Ada program to be executed prior to execution of the program itself, primarily with the intent of initializing data. These sections are referred to as `elaboration code'. Elaboration code is executed as follows:

In addition to the Ada terminology, this appendix defines the following terms:

Elaboration code may appear in two distinct contexts:


Next: , Up: Elaboration Order Handling in GNAT   [Contents][Index]