Ada Conformity Assessment Authority      Home Conformity Assessment   Test Suite ARGAda Standard
Annotated Ada Reference ManualLegal Information
Contents   Index   References   Search   Previous   Next 

J.15.9 Pragma CPU

Discussion: {AI05-0229-1} This pragma is born obsolescent; it is defined to provide consistency with existing real-time pragmas. As with all obsolescent features, this pragma is not optional; all Ada implementations need to implement it.


{AI05-0229-1} The form of a pragma CPU is as follows: 
  pragma CPU (expression);

Name Resolution Rules

{AI05-0229-1} The expected type for the expression of a pragma CPU is System.Multiprocessors.CPU_Range. 

Legality Rules

{AI05-0229-1} A CPU pragma is allowed only immediately within a task_definition, or the declarative_part of a subprogram_body.
{AI05-0229-1} For a CPU pragma that appears in the declarative_part of a subprogram_body, the expression shall be static. 

Static Semantics

{AI05-0229-1} For an implementation that supports Annex D, a pragma CPU specifies the value of the CPU aspect (see D.16). If the pragma appears in a task_definition, the expression is associated with the aspect for the task type or single_task_declaration that contains the pragma; otherwise, the expression is associated with the aspect for the subprogram that contains the pragma.

Extensions to Ada 2005

{AI05-0009-1} Pragma CPU is new. 

Contents   Index   References   Search   Previous   Next 
Ada-Europe Ada 2005 and 2012 Editions sponsored in part by Ada-Europe