37
AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ ~ ~ ~ ~ t repnm mu,.V liltto 11111 exliili IlI~oang do Wota nlmrm and matbarwigV~r lde, of W1 o 1a h Wed of thi colDi of rWorf a W •t r. e• , uinume fo 1, e t Wr.dn to W". eadquagera S Htaea. Su& 1204. Ar*tni. VA 22-43o2. and tofth Offie ifromatbn and pmguf4a" tn. 00= of Maneg~emeni art 1. AGENCY uO,- %'VLT (L6aVe LUfan) 2. REPORT DATE 3. REPORT TYPE AND DATES COVERED Final: 18 Nov 1992 4. TITLE AND SUBTITLE 5. FUNDING NUMBERS Validation Summary Report: Verdix Corporation, VADS IBM RISC System/6000 VAda-1 10-7171, Version 6.2, IBM RS/6000 Model 530H under AIX 3.2 (Host & Target), 921004W1 .11279 6. AUTHOR(S) Wright-Patterson AFB, Dayton, OH USA 7. PERFORMING ORGANIZATION NAME(S) AND ADDRESS(ES) 8. PERFORMING ORGANIZATION Ada Validation Facility, Language Control Facility ASD/SCEL REPORT NUMBER Bldg. 676, Rm 135 AVF-VSR-549-1092 Wright-Patterson AFB, Dayton, OH 45433 9. SPONSORING/', 4ITORING AGENCY NAME(S) AND ADDrSS(ES) V 10. SPONSORING/MONITORING AGENCY Ada Joint Program Office ,. REPORT NUMBER United States Department of Defense f. Pentagon, Rm 3E114 '71993 Washington, D.C. 20301-3081 11. SUPPLEMENTARY NOTES 12a. DISTRIBUTION/AVAILABILITY STATEMENT 12b. DISTRIBUTION CODE Approved for public release; distribution unlimited. 13. ABSTRACT (Maximum 200 words) Verdix Corporation, VADS IBM RISC System/6000 VAda-110-7171, Version 6.2, IBM RS/6000 Model 530H under AIX 3.2 (Host & Target), ACVC 1.11. 14. SUBJECT TERMS 15. NUMBER OF PAGES Ada programming language, Ada Compiler Val. Summary Report, Ada Compiler Val. Capability, Val. Testing, Ada Val. Office, Ada Val. Facility, ANSI/MIL-STD-1815A, AJPO. 16. PRICE CODE 17 SECURITY CLASSIFICATION 18. SECURITY CLASSIFICATION 19. SECURITY CLASSIFICATION 20. UMITATION OF ABSTRACT OF REPORT OF ABSTRACT UNCLASSIFIED UNCLASSIFED UNCLASSIFIED NSN 7540-01-280-550 Standard Form 298, (Rev. 2-89) Prescribed by ANSI Std 239-128

AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

AD-A260 718 'ION PAGE ]Fr PflI

Pt ~ ~ ~ ~ ~ ~ t repnm mu,.V liltto 11111 exliili IlI~oang do Wota nlmrm and matbarwigV~rlde, of W1 o 1a h Wed of thi colDi of rWorf a W •t r. e• , uinume fo 1, e t Wr.dn to W".

eadquagera S Htaea. Su& 1204. Ar*tni. VA 22-43o2. and tofth Offie ifromatbn and pmguf4a" tn. 00= ofManeg~emeni art

1. AGENCY uO,- %'VLT (L6aVe LUfan) 2. REPORT DATE 3. REPORT TYPE AND DATES COVERED

Final: 18 Nov 19924. TITLE AND SUBTITLE 5. FUNDING NUMBERS

Validation Summary Report: Verdix Corporation, VADS IBM RISC System/6000VAda-1 10-7171, Version 6.2, IBM RS/6000 Model 530H under AIX 3.2 (Host &Target), 921004W1 .11279

6. AUTHOR(S)

Wright-Patterson AFB, Dayton, OHUSA

7. PERFORMING ORGANIZATION NAME(S) AND ADDRESS(ES) 8. PERFORMING ORGANIZATION

Ada Validation Facility, Language Control Facility ASD/SCEL REPORT NUMBER

Bldg. 676, Rm 135 AVF-VSR-549-1092Wright-Patterson AFB, Dayton, OH 45433

9. SPONSORING/', 4ITORING AGENCY NAME(S) AND ADDrSS(ES) V 10. SPONSORING/MONITORING AGENCY

Ada Joint Program Office ,. REPORT NUMBER

United States Department of Defense f.Pentagon, Rm 3E114 '71993

Washington, D.C. 20301-3081

11. SUPPLEMENTARY NOTES

12a. DISTRIBUTION/AVAILABILITY STATEMENT 12b. DISTRIBUTION CODE

Approved for public release; distribution unlimited.

13. ABSTRACT (Maximum 200 words)

Verdix Corporation, VADS IBM RISC System/6000 VAda-110-7171, Version 6.2, IBM RS/6000 Model 530H under AIX 3.2(Host & Target), ACVC 1.11.

14. SUBJECT TERMS 15. NUMBER OF PAGES

Ada programming language, Ada Compiler Val. Summary Report, Ada Compiler Val.Capability, Val. Testing, Ada Val. Office, Ada Val. Facility, ANSI/MIL-STD-1815A, AJPO. 16. PRICE CODE

17 SECURITY CLASSIFICATION 18. SECURITY CLASSIFICATION 19. SECURITY CLASSIFICATION 20. UMITATION OF ABSTRACTOF REPORT OF ABSTRACT

UNCLASSIFIED UNCLASSIFED UNCLASSIFIED

NSN 7540-01-280-550 Standard Form 298, (Rev. 2-89)Prescribed by ANSI Std 239-128

Page 2: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

AVF Control Number: AVF-VSR-549-1092Date VSR Complete: 18 November 1992

92-06-23-VRX

Ada COMPILERVALIDATION SUMMARY REPORT:

Certificate Number: 921004W1.11279Verdix Corporation

VADS IBM RISC System/6000 Vwda-110-7171, Version 6.2IBM RS/6000 Model 530H under AIX 3.2

( F I N A L ) , Ti c ( . . . . . • i 5

Accesion ForNTIS CRA&IDTIC TABUnannounced 13Justification

Prepared By: ByAda Validation Facility Distribution I

645 C-CSG/SCSL Availability CodesWright-Patterson AFB OH 45433-6503 A

A.vail and I orDNst SpeAiiJo

93-01440

Page 3: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

"Certificate Information

The following Ada implementation was tested and determined to pass ACVC1.11. Testing was completed on 4 October 1992.

Compiler Name and Version: VADS IBM RISC System/6000VAda-110-7171, Version 6.2

Host Computer System: IBM RS/6000 model 530H under AIX 3.2

Target Computer System: IBM RS/6000 model 530H under AIX 3.2

Customer Agreement Number: 92-06-23-VRX

See section 3.1 for any additional information about the testingenvironment.

As a result of this validation effort, Validation Certificate921004W1.11279 is awarded to Verdix Corporation. This certificate expirestwo years after the ANSI adoption of ANSI/MIL-STD-1815B.

This report has been reviewed and is approved.

Ada Validation TF~cility

Steven P. WilsonTechnical Director645 C-CSG/SCSLWright-Patterson AFB OH 45433-6503

, Ad V ivi OrganizationDirect • C uter and Software Engineering DivisionInstitute for Defense AnalysesAlexandria VA 22311

Ada Joint Program Officetn Dr. John Solomond, Director

Department of DefenseWashington DC 20301

Page 4: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

DECLARATION OF ,.XtNFORMANCE

The following declaration of conformance was supplied by the customer.

Declaration of Conformance

Customer: Verdix Corporation

Certificate Awardee: Verdix Corloration

Ada Validation Facility: ASC/SC-.L, Wright-Patterson AFB OH 45433-6503

ACVC Version: 1.11

Ada Implementation:

Ada Compiler Name and Version: 'VADS IBM RISC System/600 0

'.Ada-110-7171, Version 6.2

Host Computer System: IBM RS/60)0 model 530H under AIX 3.2

Target Computer System: IBM RS,/"000 model 530H under AIX 3.2

Declaration:

We, the undersigned, declare that we have noknowledge of deliberate deviations from the Ada LanguageStandard ANSI/MIL-STD-1815A ISO 8652-1987 in the implementationlisted above.

Date

Ce rt~ati ure ANte

Page 5: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

TABLE OF CCNTENTS

CHAPTER 1 INTRODUCTION

1.1 USE OF THIS VALIDATION SUMMARY REPORT ........ .. 1-11.2 REFERENCES ............ .................... .1-21.3 ACVC TEST CLASSES ......... ............... .. 1-21.4 DEFINITION OF TERMS ....... ............... .. 1-3

CHAPTER 2 IMPLEMENTATION DEPENDENCIES

2.1 WITHDRAWN TESTS ........... ................. .2-12.2 INAPPLICABLE TESTS ........ ................ .. 2-12.3 TEST MODIFICATIONS ........ ................ .. 2-4

CHAPTER 3 PROCESSING INFORMATION

3.1 TESTING ENVIRONMENT ......... .............. .. 3-13.2 SUMMARY CF TEST RESULTS ..... ............. .. 3-13.3 TEST EXECUTION .......... .................. 3-2

APPENDIX A MACRO PARAMETERS

APPENDIX B COMPILATION SYSTEM OPTIONS

APPENDIX C APPENDIX F OF THE Ada STANDARD

Page 6: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

CHAPTER 1

INTRODUCTION

The Ada implementation described above was tested according to the AdaValidation Procedures EPro90] against the Ada Standard [Ada83J using thecurrent Ada Compiler Validation Capability (ACVC). This Validation SummaryReport (VSR) gives an account of the testing of this Ada implementation.For any technical terms used in this report, the reader is referred to[Pro90]. A detailed description of the ACVC may be found in the currentACVC User's Guide (UG891.

1.1 USE OF THIS VALIDATION SUMMARY REPORT

Consistent with the national laws of the originating country, the AdaCertification Body may make full and free public disclosure of this report.In the United States, this is provided in accordance with the "Freedom ofInformation Act" (5 U.S.C. #552). The results of this validation applyonly to the computers, operating systems, and compiler versions identifiedin this report.

The organizations represented on the signature page of this report do notrepresent or warrant that all statements set forth in this report areaccurate and complete, or that the subject implementation has nononconformities to the Ada Standard other than those presented. Copies ofthis report are available to the public from the AVF which performed thisvalidation or from:

National Technical Information Service5285 Port Royal RoadSpringfield VA 22161

Questions regarding this report or the validation test results should bedirected to the AVF which performed this validation or to:

Ada Validation OrganizationComputer and Software Engineering DivisionInstitute for Defense Analyses1801 North Beauregard StreetAlexandria VA 22311-1772

1-1

Page 7: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

INTRODUCTION

1.2 REFERENCES

(Ada83] Reference Manual for the Ada Programming Language,ANSI/MIL-STD-1815A, February 1983 and ISO 8652-1987.

[Pro90] Ada Compiler Validation Procedures, Version 2.1, Ada JointProgram Office, August 1990.

[UG89] Ada Compiler Validation Capability User's Guide, 21 June 1989.

1.3 ACVC TEST CLASSES

Compliance of Ada implementations is tested by means of the ACVC. The ACVCcontains a collection of test programs structured into six test classes: A,B, C, D, E, and L. The first letter of a test name identifies the class toSiAch it belongs. Class A, C, D, and E tests are executable. Class B andclass L tests are expected to produce errors at compile time and link time,respectively.

The executable tests are written in a self-checking manner and produce aPASSED, FAILED, or NOT APPLICABLE message indicating the result when theyare executed. Three Ada library units, the packages REPORT and SPPRTl3,and the procedure CHECK FILE are used for this purpose. The package REPORTalso provides a set of Tdentity functions used to defeat some compileroptimizations allowed by the Ada Standard that would circumvent a testobjective. The package SPPRT13 is used by many tests for Chapter 13 of theAda Standard. The procedure CHECK FILE is used to check the contents oftext files written by some of the Class C tests for Chapter 14 of the AdaStandard. The operation of REPORT and CHECK FILE is checked by a set ofexecutable tests. If these units are not opirating correctly, validationtesting is discontinued.

Class B tests check that a compiler detects illegal language usage. ClassB tests are not executable. Each test in this class is compiled and theresulting compilation listing is examined to verify that all violations ofthe Ada Standard are detected. Some of the class B tests contain legal Adacode which must not be flagged illegal by the compiler. This behavior isalso verified.

Class L tests check that an Ada implementation correctly detects violationof the Ada Standard involving multiple, separately compiled units. Errorsare expected at link time, and execution is attempted.

In some tests of the ACVC, certain macro strings have to be replaced byinplementation-specific values - for example, the largest integer. A listof the values used for this implementation is provided in Appendix A. Inaddition to these anticipated test modifications, additional changes may berequired to remove unforeseen conflicts between the tests andimplementation-dependent characteristics. The modifications required forthis implementation are described in section 2.3.

1-2

Page 8: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

INTRODUCTION

For each Ada implementation, a customized test suite is produced by theAVF. This customization consists of making the modifications described inthe preceding paragraph, removing withdrawn tests (see section 2.1), andpossibly removing some inapplicable tests (see section 2.2 and rUG89]).

In order to pass an ACVC an Ada implementation must process each test ofthe customized test suite according to the Ada Standard.

1.4 DEFINITION OF TERMS

Ada Compiler The software and any needed hardware that have to be addedto a given host and target computer system to allowtransformation of Ada programs into executable form andexecution thereof.

Ada Compiler The means for testing compliance of Ada implementations,Validation consisting of the test suite, the support programs, the ACVCCapability user's guide and the template for the validation summary(ACVC) report.

Ada An Ada compiler with its host computer system and itsImplementation target computer system.

Ada Joint The part of the certification body which provides policy andProgram guidance for the Ada certification system.Office (AJPO)

Ada The part of the certification body which carries out thevalidation procedures required to establish the compliance of an AdaFacility (AVF) implementation.

Ada The part of the certification body that provides technicalValidation guidance for operations of the Ada certification system.Organization(AVO)

Compliance of The ability of the implementation to pass an ACVC version.an AdaImplementation

Computer A functional unit, consisting of one or more computers andSystem associated software, that uses common storage for all or

part of a program and also for all or part of the datanecessary for the execution of the program; executesuser-written or user-designated programs; performsuser-designated data manipulation, including arithmeticoperations and logic operations; and that can executeprograms that modify themselves during execution. Acomputer system may be a stand-alone unit or may consist ofseveral inter-connected units.

1-3

Page 9: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

INTRODUCTICN

Conformity Fulfillment by a nroduct, pLJcess, or service of allrequirements specified.

Customer An individual or corporate entity who enters into anagreement with an AVF which specifies the terms andconditions for AVF services (of any kind) to be performed.

Declaration of A formal statement from a customer assuring that conformityConformance is realized or attainable on the Ada implementation for

which validation status is realized.

Host Computer A computer system where Ada source programs are transformedSystem into executable form.

Inapplicable A test that contains one or more test objectives found to betest irrelevant for the given Ada implementation.

ISO International Organization for Standardization.

LRM The Ada standard, or Language Reference Manual, published asANSI/MIL-STD-1815A-1983 and ISO 8652-1987. Citations fromthe LRM take the form "<section>.<subsection>:<paragraph>."

Operating Software that controls the execution -._ograms and thatSystem provides services such as resource ..- ation, scheduling,

input/output control, and data management. Usually,operating systems are predominantly software, but partial orcomplete hardware implementations are possible.

Target A computer system where the executable form of Ada programsComputer are executed.System

Validated Ada The compiler of a validated Ada implementation.Compiler

validated Ada An Ada implementation that has been validated successfullyImplementation either by AVF testing or by registration [Pro90].

Validation The process of checking the conformity of an Ada compiler tothe Ada prograxmming language and of issuing a certificatefor this implementation.

withdrawn A test found to be incorrect and not used in conformitytest testing. A test may be incorrect because it has an invalid

test objective, fails to meet its test objective, orcontains erroneous or illegal use of the Ada programminglanguage.

1-4

Page 10: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

CHAPTER 2

IMPLEMENTATION DEPENDENCIES

2.1 WITHDRAWN TESTS

The following tests have been withdrawn by the AVO. The rationale forwithdrawing each test is available from either the AVO or the AVF. Thepublication date for this list of withdrawn tests is 2 August 1991.

E28005C B28006C C32203A C34006D C35508I C35508JC35508M C35508N C35702A C35702B B41308B C43004AC45114A C45346A C45612A C45612B C45612C C45651AC46022A B49008A B49008B A74006A C74308A B83022BB83022H B83025B B83025D C83026A B83026B C83041AB85001L C86001F C94021A C97116A C98003B BA2011ACB7001A CB7001B CB7004A CC1223A BC1226A CC1226BBC3009B BDlB02B BD1B06A ADIB08A BD2AO2A CD2A2lECD2A23E CD2A32A CD2A41A CD2A41E CD2A87A CD2B15CBD3006A BD4008A CD4022A CD4022D CD4024B CD4024CCD4024D CD4031A CD4051D CD5111A CD7004C ED7005DCD7005E AD7006A CD7006E AD7201A AD7201E CD7204BAD7206A BD8002A BD8004C CD9005A CD9005B CDA201ECE2107I CE2117A CE2117B CE2119B CE2205B CE2405ACE3111C CE3116A CE3118A CE3411B CE3412B CE3607BCE3607C CE3607D CE3812A CE3814A CE3902B

2.2 INAPPLICABLE TESTS

A test is inapplicable if it contains test objectives which are irrelevantfor a given Ada implementation. Reasons for a test's inapplicability maybe supported by documents issued by the ISO and the AJPO known as AdaCommentaries and commonly referenced in the format AI-ddddd. For thisimplementation, the following tests were determined to be inapplicable forthe reasons indicated; references to Ada Commentaries are included asappropriate.

2-1

Page 11: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

IMPLEMENTATION DEPENDENCIES

The following 201 tests have floating-point type declarationsrequiring more digits than SYSTEM.MAXDIGITS:

C24113L..Y (14 tests) C35705L..Y (14 tests)C35706L..Y (14 tests) C35707L..Y (14 tests)C35708L..Y (14 tests) C35802L..Z (15 tests)C45241L..Y (14 tests) C45321L..Y (14 tests)C45421L..Y (14 tests) C45521L..Z (15 tests)C45524L..Z (15 tests) C45621L..Z (15 tests)C45641L..Y (14 tests) C46012L..Z (15 tests)

The following 20 tests check for the predefined type LONG INTEGER; forthis implementation, there is no such type:

C35404C C4bZ31C C45304C C45411C C45412CC45502C C45503C C45504C C45504F C45611CC45613C C45614C C45631C C45632C B52004DC55B07A B55B09C B86001W C86006C CD7101F

C35713C, B86001U, and C86006G check for the predefined typeLONGFLOAT; for this implementation, there is no such type.

C35713D and B86001Z check for a predefined floating-point type with aname other than FLOAT, LONG FLOAT, or SHORT FLOAT; for thisimplementation, there is no such type.

A35801E checks that FLOAT'FIRST..FLOAT'LAST may be used as a rangeconstraint in a floating-point type declaration; for thisimplementation, that range exceeds the range of safe numbers of thelargest prede.ined floating-point type and must be rejected. (Seesection 2.3.)

C45531M..P and C45532M..P (8 tests) check fixed-point operations fortypes that require a SYSTEM.MAX MANTISSA of 47 or greater; for thisimplementation, MAXMANTISSA is less than 47.

C45624A..B (2 tests) check that the proper exception is raised ifMACHINE OVERFLOWS is FALSE for floating point types and the results ofvarious floating-point operations lie outside the range of the basetype; for this implementation, MACHINEOVERFLOWS is TRUE.

B86001Y uses the name of a predefined fixed-point type other than typeDURATION; for this implementation, there is no such type.

C96005B uses values of type DURATION's base type that are outside therange of type DURATION; for this implementation, the ranges are thesame.

CD1009C checks whether a length clause can specify a non-default sizefor a floating-point type; this implementation does not support suchsizes.

2-2

Page 12: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

IMPLEMMATION DEPENDENCIES

CD2A84A, CD2A84E, CD2A84I..J (2 tests), and CD2A840 use length clausesto specify non-default sizes for access types; this implementationdoes not support such sizes.

The tests listed in the following table check that USE ERROR is raisedif the given file operations are not supported for the givencombination of mode and access method; this implementation supportsthese operations.

Test File Operation Mode File Access Method

CE2102D CREATE IN FILE SEQUENTIAL_ICCE2102E CREATE OUT FILE SEQ'JENIALI0CE2102F CREATE INOUT FILE DIRECT 10CE2102I CREATE IN FILE DIRECT--10CE2102J CREATE OUT FILE DIRECT--IOCE2102N OPEN IN FILE SEQUENTIAL_±0CE21020 RESET IN -FILE SEQUENTIAL_IOCE2102P OPEN OUT FILE SEQUENTIAL_IOCE2102Q RESET OUT-FILE SEQUENTIAL0IOCE2102R OPEN INOUT FILE DIRECT 10CE2102S RESET INOUT -FILE DIRECT-IOCE2102T OPEN IN FILE DIRECT-IOCE2102U RESET IN--FILE DIRECT-IOCE2102V OPEN OUT FILE DIRECT--IOCE2102W RFSET OUT-FILE DIRECT--IOCE3102E CREATE IN FILE TEXT 15CE3102F RESET Any Mode TEXT--IOCE3102G DELETE TEXT IOCE3102I CREATE OUT FILE TEXT IOCE3102J OPEN IN FILE TEXT-ioCE3102K OPEN OUT FILE TEXT-IO

CE2203A checks tha'- WRITE raises USE ERROR if the capacity of anexternal sequential file is exceeded; this implementation cannotrestrict file capacity.

CE2403A checks that WRITE raises USE ERROR if the capacity of anexternal direct file is exceeded; this implementation cannot restrictfile capacity.

CE3304A checks that SET LINE LENGTH and SET PAGE LENGTH raiseUSE ERROR if they specify an Inappropriate value foi the externalfile; there are no inappropriate values for this implementation.

CE3413B checks that PAGE raises LAYOUT ERROR when the value of thepage number exceeds COUNT'LAST; for this implementation, the value ofCOUNT'LAST is greater than 150000, making the checking of thisobjective impractical.

2-3

Page 13: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

IMPLEMENTATION DEPE2NDENCIES

2.3 TEST MODIFICATIONS

Modifications (see section 1.3) were required for 22 tests.

The following tests were split into two or more tests because thisimplementation did not report the violations of the Ada Standard in theway expected by the original terts.

B24009A B33301B B38003A B38003B B38009AB38009B B85008G B85008H BC1303F BC3005BBD2BO3A BD2DO3A BD4003A

A35801E was graded inapplicable by Evaluation Modification as directed bythe AVO. The compiler rejects the use of the rangeFLOAT'FIRST..FLOAT'LAST as the range constraint of a floatirg-point typedeclaration because the bounds lie outside of the range of safe numbers(cf. LRM 3.5.7:12).

CDI009A, CD1009I, CDlCO3A, CD2A24A, CD2A31A..C (3 tests) were gradedpassed by Evaluation Modification as directed by the AVO. These tests useinstantiations of the support procedure LENGTH CHECK, which usesUnchecked Conversion according to the interpretation given in AI-00590.The AVO ruled that this interpretation is not binding under ACVC 1.11; thetests are ruled to be passed if they produce Failed messages only from theinstances of LENGTH CHECK--i.e, the allowed Report.Failed messages havethe generai form: -

" * CHECK ON REPRESENTATION FOR <TYPE ID> FAILED."

AD9001B was graded passed by Test Modification as directed by the AVO.This test checks that no bodies are required for interfaced subprograms;among the procedures that it uses is one with a parameter of mode OUT(line 36). This implementation does not support pragma INTERFACE forprocedures with parameters of mode OUT. The test was modified byconmenting out line 36 and 40; the modified test was passed.

2-4

Page 14: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

CHAPTER 3

PROCESSING INFORMATION

3.1 TESTING ENVIRONMENT

The Ada implementation tested in this validation effort is described

adequately by the information given in the initial pages of this report.

For technical and sales information about this Ada implementation, contact:

Sam QuiringVerdix Corporation1600 NW Compton Drive, Suite 357Aloha OR 97006-6905(503) 690-1116

Testing of this Ada implementation was conducted at the customer's site bya validation team from the AVF.

3.2 SUMMARY OF TEST RESULTS

An Ada Implementation passes a given ACVC version if it processes each testof the customized test suite in accordance with the Ada ProgrammingLanguage Standard, whether the test is applicable or inapplicable;otherwise, the Ada Implementation fails the ACVC [Pro90].

For all processed tests (inapplicable and applicable), a result wasobtained that conforms to the Ada Programning Language Standard.

The list of items below gives the number of ACVC tests in variouscategories. All tests were processed, except those that were withdrawnbecause of test errors (item b; see section 2.1), those that require afloating-point precision that exceeds the implementation's maximumprecision (item e; see section 2.2), and those that depend on the supportof a file system - if none is supported (item d). All tests passed,except those that are listed in sections 2.1 and 2.2 (counted in items band f, below).

3-1

Page 15: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

PROCESSING INFORMATION

a) Total Number of Applicable Tests 3805b) Total Number of Withdrawn Tests 95c) Processed Inapplicable Tests 69d) Non-Processed I/O Tests 0e) Non-Processed Floating-Point

Precision Tests 201

f) Total Number of Inapplicable Tests 270 (c+d+e)

g) Total Number of Tests for ACVC 1.11 4170 (a+b+f)

3.3 TEST EXECUTION

A magnetic tape containing the customized test suite (see section 1.3) wastaken on-site by the validation team for processing. The contents of themagnetic tape were loaded onto a Sun Workstation and copied over Ethernetto the host computer.

After the test files were loaded onto the host computer, the full set oftests was processed by the Ada implementation.

Testing was performed using command scripts provided by the customer andreviewed by the validation team. See Appendix B for a complete listing ofthe processing options for this implementation. It also indicates thedefault options. The options invoked explicitly for validation testingduring this test were:

Option/Switch Effect

-w suppress generation of warning messages

Test output, compiler and linker listings, and job logs were captured onmagnetic tape and archived at the AVF. The listings examined on-site bythe validation team were also archived.

3-2

Page 16: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX A

MACRO PARAMETERS

This appendix contains the macro parameters used for customizing the ACVC.The meaning and purpose of these parameters are explained in [UG89]. Theparameter values are presented in two tables. The first table lists thevalues that are defined in terms of the maximum input-line length, which isthe value for SMAX IN LEN-also listed here. These values are expressedhere as Ada string aggregates, where "V" represents the maximum input-linelength.

Macro Parameter Macro Value

$MAX IN LEN 499 - Value of V

$BIGIDI (l..V-l > 'A', V -> '1')

$BIG ID2 (l..V-l -> 'A', V -> '2')

$BIGID3 (l..V/2-> 'A') & '3' &(l..V-I-V/2 => 'A')

$BIGID4 (1..V/2 -> 'A') & '4' &(l..V-I-V/2 -> 'A')

$BIG INT LIT (l..V-3 -> '0') & "298"

$BIGREALLIT (l..V-5-> '0') & "690.0"

$BIGSTRING1 '"' & (l..V/2 -> 'A') & '"'

$BIGSTRING2 '"' & (l..V--V/2 -> 'A') & '1' & '"'

$BLANKS (l..V-20 => ' ')

$MAXLENINTBASEDLITERAL"2:" & (1..V-5 -> '0') & "11:"

SMAX LEN REAL BASED LITERAL"16:" & ('..V-7 -> '0') & "F.E:"

A-1

Page 17: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

MACRO PARAMETERS

$MAXSTRING LITERAL "' & (1..V-2 -> 'A') & "'

The following table lists all of the other macro parameters and theirrespective values.

Macro Parameter Macro Value

$ACCSIZE 32

$ALIG4MENT 4

$COUNT LAST 2_147_483_647

$DEFAULT MEMSIZE 16_777_216

$DEFAULTSTORUNIT 8

$DEFAULT SYSNAME IBM RS_6000

$DELTA DOC 0. 0000000004656612873077392578125

$ENTRY ADDRESS SYSTEM."+"(16#40#)

$ENTRY ADDRESS1 SYSTEM."+"(16#80#)

SENTRY ADDRESS2 SYSTEM."+"(16#100#)

$FIELDLAST 2_147_483_647

$FILETERMINATOR ' '

$FIXED NAME NO SUCH TYPE

$FLOAT NAME NOSUCHTYPE

$FORM STRING ""

$FORMSTRING2 "CANNOT RESTRICT FILE CAPACITY"

$GREATERTHANDURATION100_000.00

$GREATERTHANDURATION BASE LASTT_00 0- o000

$GREATER THANFLOATBASE LAST1.6E+308

$GREATER THANFLOAT SAFE LARGE5.U'E307

A-2

Page 18: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

MACR PARAMETERS

SGREATERTHANSHORT FLOAT SAFELARGE9.07E37

$HIGHPRIORITY 99

$ ILLEGALEXTERNAL FILE NAZ4ElV/illegal/file-name/2{J$%FILE1.DAT"

SILLEGALEXTERNALFILE NAME2V/illegal/file-name/2f ]$%FILE2.DAT"

S INAPPROPRIATE LINELENGTH-1

S INAPPROPRIATEPAGELENGTH-1

$INCLUDEPRAGM4Al PRAGMA INCLUDE ('"A28006D1 .TST")

$INCLUDE-PRAGMA.2 PRAGMA INCLUDE ("B28006D1.TST")

SINTEGERFIRST -2_147_483_648

SINTEGERLAST 2_147_483_647

$INTEGER LAST PLUS_1 2_147_483_648

$ INTERFACELANGUAGE C

$LESSTHANDURATION -100_000.0

SLESSTHANDURATION-BASE FIRST-1'6 000_000.0

$LINE-TERMINATOR ASCII.LF

SLsOPRIORITY 0

$l'ACHINECODESTATEMDE1TCODEO'(OP -> NOP);

$MACHINECODETYPE CODE_0

$MANTISSADOC 31

$MA.XDIGITS 15

SMAX-INT 2_147_483_647

$MAXINTPLUS 1 2_147_483_648

SMININT -2_147_483_648

$NAM'E TINY-INTEGER

A-3

Page 19: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

MACRO PARAMETERS

$NAMELIST IBMRS_6000

$NAMESPECIFICATIONi /usr/test-suites/acvcl . 1/c/e/X2120A

$NAZ4E-SPECIFICATION2 /usr/test-suites/acvcl.11/c/eAC212OB

$NAMESPECIFICATION3 /usr/test-suites/acvcl 11/c/e/X3119A

$NEGBASEDINT 16#FOOOOOOE*

$NEWHEMSIZE 16#FFFFFFD#

$NEW STOR-UNIT 8

SNEWSYSNAME IBMRS_6000

$PAGETERMINATOR ASCII.LF & ASCII.FF

$RECORDDEFINITION RECORD SUBP: OPERAND; END RECORD;

$RECORDNAME CODE_0

$TASKSIZE 32

$TASKSTORAGESIZE 1024

$TICK 0.01

$VARIABLEADDRESS VAR_1 'ADDRESS

$VARIABLEADDRESS1 VAR_2 'ADDRESS

$VARIABLE ,ADDRESS2 VAR-3 'ADDRESS

$YOURPRAGMA PRAGMAL PASSIVE

A-4

Page 20: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX B

COMPILATION SYSTEM OPTIONS

The compiler options of this Ada implementation, as described in thisAppendix, are provided by the customer. Unless specifically notedotherwise, references in this appendix are to compiler documentation andnot to this report.

Syntax

ada [options] [source file]... [linker_options][objectfile.o]...

Description

The command ada executes the Ada compiler and compiles thenamed Ada source file, ending with the .a suffix. The filemust reside in a VADS library directory. The ada.lib file inthis directory is modified after each Ada unit is compiled.

The object for each compiled Ada unit is left in a file withthe same name as that of the source with 01, 02, etc.substituted for .a. The -o option can be used to produce anexecutable with a name other than a.out, the default. Forcross compilers, the default name is a.vox.

By default, ada produces only object and net files. If the-M option is used, the compiler automatically invokes a.ldand builds a complete program with the named library unit asthe main program.

Ncn-Ada object files (.o files produced by a compiler foranother language) may be given as arguments to ada. Thesefiles will be passed on to the linker and will be linkedwith the specified Ada object files.

Command line options may be specified in any order, but theorder of compilation and the order of the files to be passedto the linker can be significant.

B-1

Page 21: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

COMPILATION SYSTEM OPTIONS

Several VADS compilers may be simultaneously available on asingle system. Because the ada command in anyVADS location/bin on a system will execute the correctcompiler components based upon visible library directives,the option -sh is provided to print the name of thecomponents actually executed.

Program listings with a disassembly of machine codeinstructions are generated by a.db or a.das.

Options

-a file name (archive) Treat file-name as an ar file.Since some archive files end with .a, -a is used todistinguish archive files from Ada source files.

-d (dependencies) Analyze for dependencies only. Do not dosemantic analysis or code generation. Update the library,marking any defined units as uncompiled. The -d option isused by a.make to establish dependencies among new files.

-e (error) Process compilation error messages using a.errorand send it to standard output. Only the source linescontaining errors are listed. Only one -e or -E optionshould be used.

-E

-E file

-E directory (error output) Without a file or directoryargument, ada processes error messages using a.error anddirects a brief output to standard output; the raw errormessages are left in ada source.err. If a file pathname isgiven, the raw error messages are placed in that file. If adirectory argument is supplied, the raw error output isplaced in dir/source.err. The file of raw error messagescan be used as input to a.error.

-el (error listing) Intersperse error messages among source

lines and direct to standard output.

-El

-El file

-El directory (error listing) Same as the -E option, except thatsource listing with errors is produced.

-ev (error vi(l)) Process syntax error messages usinga.error, embed them in the source file, and call theenvironment editor ERROR EDITOR. (If ERROR EDITOR isdefined, the environment-variable ERROR PATITERN should also

B-2

Page 22: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

COMPILATION SYSTE OPTIONS

be defined. ERROR PATTERN is an editor search command thatlocates the first-occurrence of '###' in the error file.) Ifno editor is specified, call vi(1).

-K (keep) Keep the intermediate language (IL) fileproduced by the compiler front end.

-L library name (library) Operate in VADS librarylibraryname (the current working directory is the default).

-ifile abbreviation (library search) This is an optionpassed-to the UNIX linker, ld(l) telling it to search thespecified library file. (No space between the -1 and thefile abbreviation.)

For a description of the file abbreviations, see alsoOperating system documentation, ld(l)

-M unit name (main) Produce an executable program usingthe named unit as the main program. The unit must be eithera parameterless procedure or a parameterless functionreturning an integer. The executable program will be left inthe file a.out unless overridden with the -o option.

-M source file (main) This option is like -M unitname, exceptthat the unit name is assumed to be the rootname of the .a file (for foo.a the unit is foo. Only one .a filemay be preceded by -M.

-o executable file (output) This option is to be used inconjunction with the -M option. executable file is the nameof the executable rather than the default a.out.

-0[0-91 (optimize) Invoke the code optimizer (OPTIM2). Anoptional digit (there is no space before the digit) limitsthe number of passes by the optimizer:

no -0 option, make one pass

-0 no digit, optimize as far as possible

-00 prevents optimization

-01 no hoisting

-09 full optimization

The addition of the INFO directive, OPTIM3:INFO:TRUE, to theada.lib will cause the compiler to use a new optimizer (OPTIM3)that generates faster code.

The default level of optimization for OPTIM3 is 04. Notethat optimization levels for OPTIM3 are more than simplyadditional iterations:

B-3

Page 23: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

COMPILATION SYSTEM OPTIONS

-O full optimization (same as OPTIM2 ada -09)

-00 prevents optimization

-01 no hoisting (same as OPTIM2 ada -01)

-02 no hoisting but more passes

-03 no hoisting but even more passes

-04 hoisting from loops

-05 hoisting from loops but more passes

-06 hoisting from loops with maximum passes

-07 hoisting from loops and branches

-08 hoisting from loops and branches, more passes

-09 hoisting from loops and branches, maximum passes

Hoisting from branches (and cases alternatives) can be slowand does not always provide significant performance gains soit can be suppressed.

For information on linker INFO directives see USER'S GUIDE,INFO Directive Names on page

a.info on page , and for more information aboutoptimization, see USER'S GUIDE, Compiler Optimizations onpage

-R VADS library (recompile instantiation) Force analysisof all generic instantiations, causing reinstantiation ofany that are out of date.

-S (suppress) Apply pragma SUPPRESS to the entirecompilation for all suppressible checks.

-sh (show) Display the name of the tool executable but donot execute it.

-T (timing) Print timing information for the compilation.

-v (verbose) Print compiler version number, date and timeof compilation, name of file compiled, command input line,total compilation time, and error summary line. Storageusage information about the object file is provided. Wil-hOPTIM3 the output format of compression (the size ofoptimized instructions) is as a percentage of input(unoptimized instructions).

B-4

Page 24: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

COMPILATION SYSTEM OPTIONS

-w (warnings) Suppress warning diagnostics.

See also a.das on page ; a.db on page ; a.error on page ;a.ld on page ; a.mklib on page ; and Operating Systemreference documentation for the ld(l) utility.

Diagnostics

The diagnostics produced by the VADS compiler are intendedto be self-explanatory. Most refer to the RM. Each RM referenceincludes a section number and optionally, a paragraph numberenclosed in parentheses.

LINKER OPTIONS

The linker options of this Ada implementation, as described in thisAppendix, are provided by the customer. Unless specifically notedotherwise, references in this appendix are to linker documentation and notto this report.

Syntax

a.ld [options] unitname [ld_options]

Options

-DX (debug) Debug memory overflow (use in cases wherelinking a large number of units causes the error messagelocal symbol overflow" to occur).

-E unit name (elaborate) Elaborate unit-name as early inthe ela~oration order as possible.

-F (files) Print a list of dependent files in order andsuppress linking.

-L libraryname (library) Operate in VADS librarylibrary_name (the current working directory is the default).

-o executable file (output) Use the specified file name asthe name of tHe output rather than the default, a.out.

-sh (show) Display the name of the tool executable but donot execute it.

-U (units) Print a list of dependent units in order andsuppress linking.

-v (verbose) Print the linker conmand before executing it.

B-5

Page 25: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

COMPILATION SYSTEM OPTIONS

-V (verify) Print the linker command but suppressexecution.

Description

a.ld collects the object files needed to make unit name amain program and calls theUNIXlinker ld(1) to link together all Ada and other language

objects required to produce an executable image in a.out.unit name is the main program and must name a non-genericsubprogram. If unit name is a function, it must return avalue of the type STANDARD.INTEGER. This integer resultwill be passed back to the UNIXshell as the status code of the execution. The utility usesthe net files produced by the Ada compiler to checkdependency information. a.ld produces an exception mappingtable and a unit elaboration table and passes thisinformation to the linker.

a.ld reads instructions for generating executables from theada.lib file in the VADS libraries on the search list.Besides information generated by the compiler, thesedirectives also include WITHn directives that allow theautomatic linking of object modules compiled from otherlanguages or Ada object modules not named in context clausesin the Ada source. Any number of WITHn directives may beplaced into a library, but they must be numberedcontiguously beginning at WITH1. The directives are recordedin the library's ada.lib file and have the following form.

WITH1:LINK:objectfile:

WITH2:LINK:archive file:

WITHn directives may be placed in the local Ada libraries orin any VADS library on the search list.

A WITHn directive in a local VADS library or earlier on thelibrary search list will hide the same numbered WITHndirective in a library later in the library search list.

Use the tool a.info to change or report library directivesin the current library.

All arguments after unit name are passed on to the linker.These may be options for-it, archive libraries, libraryabbreviations, or object files.

VADS location/bin/a.ld is a wrapper program that executesthe correct executable based upon directives visible in theada.lib file. This permits multiple VADS compilers to existon the same host. The -sh option prints the name of theactual executable file.

B-6

Page 26: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX C

APPENDIX F OF THE Ada STANDARD

The only allowed implementation dependencies correspond toimplementation-dependent pragmas, to certain machine-dependent conventionsas mentioned in Chapter 13 of the Ada Standard, and to certain allowedrestrictions on representation clauses. The implementation-dependentcharacteriztics of this Ada implementation, as described in this Appendix,are provided by the customer. unless specifically noted otherwise,references in this Appendix are to compiler documentation and not to thisreport. Implementation-specific portions of the package STANDARD, whichare not a part of Appendix F, are:

package STANDARD is..........type INTEGER is range -2147483648 .. 2147483647;type SHORT INTEGER is range -32768 .. 32767;type TINY YNTEGER is range -128 .. 127;

type FLOAT is digits 15 range -1.79769313486231E+308..1.79769313486231E+JJ8;typc SHORT-FLOAT is digits 6 range -3.40282E+38 3.40282E+38;

type DURATION is delta 0.0001 ange -214748.3648 214748.3647;

end SiýýF:

C-1

Page 27: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

APPENDIX F. Implementation-Dependent Characteristics

1. Implementation-Dependent Pragmas

1.1. INLINEONLY Pragma

The INLINE ONLY pragma, when used in the same way as pragmaINLINE, indicates to the compiler that the subprogram mustalways be inlined. This pragma also suppresses the genera-tion of a callable version of the routine which saves codespace. If a user erroneously makes an INLINE ONLY subpro-gram recursive a warning message will be emitted and anPROGRAMERROR will be raised at run time.

1.2. BUILTIN Pragma

The BUILT IN pragma is used in the implementation of somepredefineU Ada packages, but provides no user access. It isused only to implement code bodies for which no actual Adabody can be provided, for example the MACHINECODE package.

1.3. SHARECODE Pragma

The SHARE CODE pragma takes the name of a generic instantia-tion or a generic unit as the first argument and one of theidentifiers TRUE or FALSE as the second argument. Thispragma is only allowed immediately at the place of adeclarative item in a declarative part or package specifica-tion, or after a library unit in a compilation, but beforeany subsequent compilation unit.

When the first argument is a generic unit the pragma appliesto all instantiations of that generic. When the first argu-ment is the name of a generic instantiation the pragmaapplies only to the specified instantiation, or overloadedinstantiations.

If the second argument is TRUE the compiler will try toshare code generated for a generic instantiation with codegenerated for other instantiations of the same generic.When the second argument is FALSE each instantiation willget a unique copy of the generated code. The extent towhich code is shared between instantiations depends on thispragma and the kind of generic formal parameters declaredfor the generic unit.

The name pragma SHARE-BODY is also recognized by the imple-

C-2

Page 28: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPE2NDIX F OF THE Ada STANDARD

mentation and has the same effect as SHARECODE. It isincluded for compatability with earlier versions of VADS.

1.4. NOIMAGE Pragma

The pragma suppresses the generation of the image array usedfor the IMAGE attribute of enumeration types. This elim-inates the overhead required to store the array in the exe-cutable image. An attempt to use the IMAGE attribute on atype whose image array has been suppressed will result in acompilation warning and PROGRAM ERROR raised at run time.

1.5. EXTERNAL NAME Pragma

The EXTERNAL NAME pragma takes the name of a subprogram orvariable derfined in Ada and allows the user to specify adifferent external name that may be used to reference theentity from other languages. The pragma is allowed at theplace of a declarative item in a package specification andmust apply to an object declared earlier in the same packagespecification.

1.6. INTERFACENAME Pragma

The INTERFACE NAME pragma takes the name of a a variable orsubprogram defined in another language and allows it to bereferenced directly in Ada. The pragma will replace alloccurrences of the variable or subprogram name with anexternal reference to the second, link-argument. The pragmais allowed at the place of a declarative item in a packagespecification and must apply to an object or subprogramdeclared earlier in the same package specification. Theobject must be declared as a scalar or an access type. Theobject cannot be any of the following:

a loop variable,a constant,an initialized variable,an array, ora record.

1.7. IMPLICITCODE Pragma

Takes one of the identifiers ON or OFF as the single argu-ment. This pragma is only allowed within a machine codeprocedure. It specifies that implicit code generated by thecompiler be allowed or disallowed. A warning is issued ifOFF is used and any implicit code needs to be generated.The default is ON.

1.8. OPTIMIZECODE Pragma

Takes one of the identifiers ON or OFF as the single argu-

C-3

Page 29: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

ment. This pragma is only allowed within a machine codeprocedure. It specifies whether the code should be optim-ized by the compiler. The default is ON. When OFF isspecified, the compiler will generate the code as specified.

2. Implementation of Predefined Pragmas

2.1. CONTROLLED

This pragma is recognized by the implementation but has noeffect.

2.2. ELABORATE

This pragma is implemented as described in Appendix B of theAda RM.

2.3. INLINE

This pragma is implemented as described in Appendix B of theAda RM.

2.4. INTERFACE

This pragma supports calls to 'C' and FORTRAN functions. TheAda subprograms can be either functions or procedures. Thetypes of parameters and the result type for functions mustbe scalar, access or the predefined type ADDRESS in SYSTEM.All parameters must have mode IN. Record and array objectscan be passed by reference using the ADDRESS attribute.

2.5. LIST

This pragma is implemented as described in Appendix B of theAda RM.

2.6. MEMORYSIZE

This pragma is recognized by the implementation. The imple-mentation does not allow SYSTEM to be modified by means ofpragmas, the SYSTEM package must be recompiled.

2.7. NONREENTRANT

This pragma takes one argument which can be the name ofeither a library subprogram or a subprogram declared immedi-ately within a library package spec or body. It indicatesto the compiler that the subprogram will not be calledrecursively allowing the compiler to perform specific optim-izations. The pragma can be applied to a subprogram or aset of overloaded subprograsm within a package spec or pack-age body.

C-4

Page 30: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

2.8. NOTELABORATED

This pragma can only appear in a library package specifica-tion. It indicates that the package will not be elaboratedbecause it is either part of the RTS, a configuration pack-age or an Ada package that is referenced from a languageother than Ada. The presence of this pragma suppresses thegeneration of elaboration code and issues warnings if ela-boration code is required.

2.9. OPTIMIZE

This pragma is recognized by the implementation but has noeffect.

2.10. PACK

This pragma will cause the compiler to choose a non-alignedrepresentation for composite types. It will not causesobjects to be packed at che bit level.

2.11. PAGE

This pragma is implemented as described in Appendix B of theAda RM.

2.12. PASSIVE

The pragma has three forms

PRAGMA PASSIVE;PRAGMA PASSIVE(SEMAPHORE);PRAGMA PASSIVE( INTERRUPT, <number>);

This pragma Pragma passive can be applied to a task or tasktype declared immediately within a library package spec orbody. The pragma directs the compiler to optimize certaintasking operations. It is possible that the statements in atask body will prevent the intended optimization, in thesecases a warning will be generated at compile time and willraise TASKINGERROR at runtime.

2.13. PRIORITY

This pragma is implemented as described in Appendix B of theAda RM.

2.14. SHARED

This pragma is recognized by the implementation but has noeffect.

C-5

Page 31: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

2.15. STORAGEUNIT

This pragma is recognized by the implementation. The imple-mentation does not allow SYSTEM to be modified by means ofpragmas, the SYSTEM package must be recompiled.

2.16. SUPPRESS

This pragma is implemented as described, except thatDIVISION CHECK and in some cases OVERFLOW CHECK cannot besupressea.

2.17. SYSTEMNAME

This pragma is recognized by the implementation. The imple-mentation does not allow SYSTEM to be modified by means ofpragmas, the SYSTEM package must be recompiled.

3. Implementation-Dependent Attributes

3.1. P'REF

For a prefix that denotes an object, a program unit, alabel, or an entry:

This attribute denotes the effective address of the first ofthe storage units allocated to P. For a subprogram, pack-age, task unit, or label, it refers to the address of themachine code associated with the corresponding body orstatement. For an entry for which an address clause hasbeen given, it refers to the corresponding hardware inter-rupt. The attribute is of the type OPERAND defined in thepackage MACHINE CODE. The attribute is only allowed withina machine code procedure.

See section F.4.8 for more information on the use of thisattribute.

(For a package, task unit, or entry, the 'REF attribute isnot supported.)

3.2. T'TASKID

For a task object or a value T, T'TASK ID yields the uniquetask id associated with a task. The value of this attributeis of the type ADDRESS in the package SYSTEM.

4. Specification Of Package SYSTEM

with UNSIGNED TYPES;package SYSTEM is

C-6

Page 32: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANMARD

pragma suppress(ALL CHECKS);pragma suppress(EXCEPTIONTABLES);pragma notelaborated;

type NAME is ( ibm rs_6000 );

SYSTEM NAME : constant NAME := ibm rs 6000;

STORAGrý UNIT constant :- 8;MEMORYSIZE : constant := 16_777_216;

- System-Dependent Named Numbers

MIN INT : constant :--2 147 483 648;M.AX-INT : constant :- 2 T147 *83 _47;MAX-DIGITS : constant :-I5; - -MAX-MANTISSA : constant :- 31;FINE DELTA : constant 2.0"*(-31);TICK- : constant 0.01;

- Other System-dependent Declarations

subtype PRIORITY is INTEGER range 0 .. 99;

MAXRECSIZE : integer := 64*1024;

type ADDRESS is private;

function ">" (A: ADDRESS; B: ADDRESS) return BOOLEAN;function "<" (A: ADDRESS; B: ADDRESS) return BOOLEAN;function ">="(A: ADDRESS; B: ADDRESS) return BOOLEAN;function "<="(A: ADDRESS; B: ADDRESS) return BOOLEAN;function - (A: ADDRESS; B: ADDRESS) return INTEGER;function + (A: ADDRESS; I: INTEGER) return ADDRESS;function "-" (A: ADDRESS; I: INTEGER) return ADDRESS;

function "+" (I: UNSIaNJED TYPES. UNSIGNTED INTEGER) return ADDRESS;

function MEMORY ADDRESS(I: UNSIGNEDTYPES. UNSI(i4ED INTEGER) return ADDRESS

renames "+",;

NO ADDR : constant ADDRESS;

type TASK ID is private;NOTASK_ID : constant TASKID;

subtype SIG STA'TJS T is INTEGER;SIGSTATUSSIZE: constant := 4;

type PROGRAM ID is private;NO PROGRAM ID : constant PROGRAM ID;

C-7

Page 33: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STAMARD

type LONG ADDRESS is private;

NO LONG ADDR : constant LWNG ADDRESS;

function '+" (A: LONG ADDRESS; I: INTEGER) return LONG ADDRESS;function "-" (A: LONG-ADDRESS; I: INTEGER) return LONG ADDRESS;

function MAKELONG ADDRESS (A: ADDRESS) return LCNG ADDRESS;

function LOCALIZE(A: LONG ADDRESS ; BYTE SIZE : INTEGER)return ADDRESS;

function STATIONOF(A: LONG ADDRESS) return INTEGER;

private

type ADDRESS is new UNSIGNEDTYPES.UNSIGNED INTEGER;

NO ADDR : constant ADDRESS := 0;

pragma BUILT IN(">");pragma BUILT -IN("<");pragma BUILT-IN( ">-");pragma BUILT-IN("<-");pragma BUILT-IN( "-");pragma BUILT-IN( "+");

type TASK ID is new UNSIGNED TYPES.UNSIGNEDINTEGER;NOTASKID : constant TASKID := 0;

type PROGRAM ID is new UNSIGNED TYPES.UNSIGNED INTEGER;NOPROGRAMID : constant PROGRAM ID := 0;

type LONGADDRESS is new UNSIGNEDTYPES.UNSIGNEDINTEGER;

NOLONG ADDR : constant LONG ADDRESS :- 0;

pragma BUILT IN(MAKE LONG ADDRESS);pragma BUILT-IN(LOCALIZE);pragma BUILTIN(STATIONOF);

end SYSTEM;

5. Restrictions On Representation Clauses

5.1. Pragma PACK

In the absence of pragma PACK record components are paddedso as to provide for efficient access by the target

C-8

Page 34: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

hardware, pragma PACK applied to a record eliminate the pad-ding where possible. Pragma PACK has no other effect on thestorage allocated for record components a record representa-tion is required.

5.2. Size Clauses

For scalar types a representation clause will pack to thenumber of bits required to represent the range of the sub-type. A size clause applied to a record type will not causepacking of components; an explicit record representationclause must be given to specify the packing of the com-ponents. A size clause applied to a record type will causepacking of components only when the component type is adiscrete type. An error will be issued if there is insuffi-cient space allicated. The SIZE attribute is not supportedfor task, access, or floating point types.

5.3. Address Clauses

Address clauses are only supported for variables. Sincedefault initialization of a variable requires evaluation ofthe variable address elaboration ordering requirementsprohibit inititalization of a variables which have addressclauses. The specified address indicates the physicaladdress associated with the variable.

5.4. Interrupts

Interupt entries are not supported.

5.5. Representation Attributes

The ADDRESS attribute is not supported for the followingentities:

PackagesTasksLabelsEntries

5.6. Machine Code Insertions

Machine code insertions are supported.

The general definition of the package MACHINE CODE providesan assembly language interface for the target machine. Itprovides the necessary record type(s) needed in the codestatement, an enumeration type of all the opcode mneumonics,a set of register definitions, and a set of addressing modefunctions.

C-9

Page 35: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

The general syntax of a machine code statement is as fol-lows:

CODE-n'( opcode, operand {, operand) );

where n indicates the number of operands in the aggregate.

A special case arises for a variable number of operands.The operands are listed within a subaggregate. The formatis as follows:

CODE N'( opcode, (operand (, operand)) );

For those opcodes that require no operands, named notationmust be used (cf. RM 4.3(4)).

CODE_0'( op -> opcode );

The opcode must be an enumeration literal (i.e. it cannot bean object, attribute, or a rename).

An operand can only be an entity defined in MACHINECODE orthe 'REF attribute.

The arguments to any of the functions defined inMACHINE CODE must be static expressions, string literals, orthe functions defined in MACHINE CODE. The 'REF attributemay not be used as an argument in any of these functions.

Inline expansion of machine code procedures is supported.

6. Conventions for Implementation-generated Names

There are no implementation-generated names.

7. Interpretation of Expressions in Address Clauses

Address expressions in an address clause are interpreted asphysical addresses.

8. Restrictions on Unchecked Conversions

None.

9. Restrictions on Unchecked Deallocations

None.

10. Implementation Characteristics of I/O Packages

Instantiations of DIRECT 10 use the value MAX REC SIZE asthe record size (expressed in STORAGEUNITS) when-the size

C-10

Page 36: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

of ELEMENT TYPE exceeds that value. For example for uncon-strained arrays such as string where ELEMENT TYPE'SIZE isvery large, MAX REC SIZE is used instead. MAX RECORD SIZEis defined in SYST1M and can be changed by a pr-ogram beforeinstantiating DIRECT_10 to provide an upper limit on therecord size. In any case the maximum size supported is 1024x 1024 x S7ORAGE UNIT bits. DIRECT 10 will raise USE ERRORif MAX REC SIZE exceeds this absolute limit.

Instantiations of SEQUENTIAL 10 use the value MAX REC SIZEas the record size (expressed in STORAGE UNITS) when thesize of ELEMENT TYPE exceeds that value. For example forunconstrained arrays such as string where ELEMENT TYPE'SIZEis very large, MAX REC SIZE is used instead.MAXRECORD SIZE is definea in -SYSTEM and can be changed by aprogram before instantiating INTEGER 10 to provide an upperlimit on the record size. SEQUENTIALIO imposes no limit onMAXRECSIZE.

11. Implementation Limits

The following limits are actually enforced by the implemen-tation. It is not intended to imply that resources up to oreven near these limits are available to every program.

11.1. Line Length

The implementation supports a maximum line length of 500characters including the end of line character.

11.2. Record and Array Sizes

The maximum size of a statically sized array type is4,000,000 x STORAGE UNITS. The maximum size of a staticallysized record type is 4,000,000 x STORAGE UNITS. A recordtype or array type declaration that exceeds these limitswill generate a warning message.

11.3. Default Stack Size for Tasks

In the absence of an explicit STORAGESIZE length specifica-tion every task except the main program is allocated a fixedsize stack of 10,240 STORAGE UNITS. This is the valuereturned by T'STORAGESIZE for a task type T.

11.4. Default Collection Size

In the absence of an explicit STORAGE SIZE length attributethe default collection size for an access type is 100 timesthe size of the designated type. This is the value returnedby T'STORAGESIZE for an access type T.

11.5. Limit on Declared Objects

C-il

Page 37: AD-A260 718 'ION PAGE PflI ~ ~ ~ ~ IlI~oang t exliili do Wota nlmrm and matbarwigV~r ... · 2011. 5. 14. · AD-A260 718 'ION PAGE ]Fr PflI Pt ~ ~ mu,.V liltto 11111 ~ ~ IlI~oang

APPENDIX F OF THE Ada STANDARD

There is an absolute limit of 6,000,000 x STORAGE UNITS forobjects declared statically within a compilation unit. Ifthis value is exceeded the compiler will terminate the com-pilation of the unit with a FATAL error message.

C-12