Translation of the protected type mechanism in Ada 83

  • Authors:
  • Pascal Ledru

  • Affiliations:
  • Aerospatiale, Inc

  • Venue:
  • ACM SIGAda Ada Letters
  • Year:
  • 1995

Quantified Score

Hi-index 0.00

Visualization

Abstract

Several features of the Ada 94 language are useful to improve the efficiency of Ada programs. Especially the protected type mechanism is useful to improve the efficiency of concurrent Ada programs sharing common data structures. In order to facilitate the transition to Ada 94 before Ada 94 compilers are widely available, this paper proposes the use of an adapter which can be either a methodology, or an automatic translator. The adapter accepts source including protected objects and produces Ada 83 source. The results of several tests show that the performances of concurrent programs can be dramatically improved by using protected objects.