NBS FORTRAN Test Programs 3^1 No "I Volume 1- Documentation for Versions 1 and 3 V.I
Total Page:16
File Type:pdf, Size:1020Kb
j I i Vt NBS SPECIAL PUBLICATION 399 J Volume 1 U.S. DEPARTMENT OF COMMERCE / National Bureau of Standards] National Bureau of Standards Library, £-01 Admin. BIdg. ncT 1 1981 13102^1 NBS FORTRAN Test Prog Volume 1-Documentation for Versions 1 and 3 NATIONAL BUREAU OF STANDARDS The National Bureau of Standards^ was established by an act of Congress March 3, 1901. The Bureau's overall goal is to strengthen and advance the Nation's science and technology and facilitate their effective application for public benefit. To this end, the Bureau conducts research and provides: (1) a basis for the Nation's physical measurement system, (2) scientific and technological services for industry and government, (3) a technical basis for equity in trade, and (4) technical services to promote public safety. The Bureau consists of the Institute for Basic Standards, the Institute for Materials Research, the Institute for Applied Technology, the Institute for Computer Sciences and Technology, and the Office for Information Programs. THE INSTITUTE FOR BASIC STANDARI>S provides the central basis within the United States of a complete and consistent system of physical measurement; coordinates that system with measurement systems of other nations; and furnishes essential services leading to accurate and uniform physical measurements throughout the Nation's scientific community, industry, and commerce. The Institute consists of a Center for Radiation Research, an Office of Meas- urement Services and the following divisions: Applied Mathematics — Electricity — Mechanics — Heat — Optical Physics — Nuclear Sciences " — Applied Radiation " — Quantum Electronics " — Electromagnetics ^ — Time and Frequency — Laboratory Astrophysics — Cryogenics \ THE INSTITUTE FOR MATERIALS RESEARCH conducts materials research leading to improved methods of measurement, standards, and data on the properties of well-characterized materials needed by industry, commerce, educational institutions, and Government; provides advisory and research services to other Government agencies; and develops, produces, and distributes standard reference materials. The Institute consists of the Office of Standard Reference Materials and the following divisions: Analytical Chemistry — Polymers — Metallurgy — Inorganic Materials — Reactor Radiation — Physical Chemistry. THE INSTITUTE FOR APPLIED TECHNOLOGY provides technical services to promote the use of available technology and to facilitate technological innovation in industry and Government; cooperates with public and private organizations leading to the development of technological standards (including mandatory safety standards), codes and methods of test; and provides technical advice and services to Government agencies upon request. The Institute consists of a Center for Building Technology and the following divisions and offices: Engineering and Product Standards — Weights and Measures — Invention and Innova- tion — Product Evaluation Technology — Electronic Technology — Technical Analysis — Measurement Engineering — Structures, Materials, and Life Safety* — Building * Environment — Technical Evaluation and Application ' — Fire Technology. THE INSTITUTE FOR COMPUTER SCIENCES AND TECHNOLOGY conducts research and provides technical services designed to aid Government agencies in improving cost effec- tiveness in the conduct of their programs through the selection, acquisition, and effective utilization of automatic data processing equipment; and serves as the principal focus within the executive branch for the development of Federal standards for automatic data processing equipment, techniques, and computer languages. The Institute consists of the following divisions: Computer Services — Systems and Software — Computer Systems Engineering — Informa- tion Technology. THE OFFICE FOR INFORMATION PROGRAMS promotes optimum dissemination and accessibility of scientific information generated within NBS and other agencies of the Federal Government; promotes the development of the National Standard Reference Data System and a system of information analysis centers dealing with the broader aspects of the National Measurement System; provides appropriate services to ensure that the NBS staff has optimum accessibility to the scientific information of the world. The Office consists of the following organizational units: Office of Standard Reference Data — Office of Information Activities — Office of Technical Publications — Library — Office of International Relations. ^Headquarters and Laboratories at Gaithersburg, Maryland, unless otherwise noted; mailing address Washington, D.C. 20234. ^ Part of the Center for Radiation Research. " Located at Boulder, Colorado 80302. * Part of the Center for Building Technology. tional Bureau ot Standards !0V 1 1974 f^'^ NBS FORTRAN Test Programs 3^1 no "I Volume 1- Documentation for Versions 1 and 3 V.I Frances E. Holberton and Elizabeth G. Parker Institute for Computer Sciences and Technology ^ National Bureau of Standards I ' Washington, D.C. 20234 i U.S. DEPARTMENT OF COMMERCE, Frederick B. Dent, Secretary NATIONAL BUREAU OF STANDARDS, Richard W. Roberts, Director Issued October 1974 Library of Congress Cataloging in Publication Data Holberton, Frances E NBS FORTRAN test programs. ^ National Bureau of Standards Special Publications 399. CONTENTS: V. 1. Documentation for versions 1 and 3. —V. 2. Listings for version 1. —V. 3. Listings for version 3. Supt. of Docs. No.: C 13.10:399. 1. Computer programs—Testing. 2. FORTRAN (Computer program language) 1. Parker, Elizabeth G., joint author. IL United States. National Bureau of Standards. III. Title. IV. Series: United States. National Bureau of Standards. Special Publication 399. QC100.U57 no. 399 [0A76.6] 389'.08s tOOl.6'425] 74-12314 National Bureau of Standards Special Publication 399 Nat. Bur. Stand. (U.S.), Spec. Publ. 399,171pages (Oct. 1974) CODEN: XNBSAV U.S. GOVERNMENT PRINTING OFFICE WASHINGTON: 1974 For sale by the Superintendent of Documents, U.S. Government Printing Office, Washington, D.C. 20402 (Order by SD Catalog No. C13.10:399/V.l). Price $2.35 cents. FOREWOED It has now become inperative, because of the imltitude of coiiputers on the mrket and the corresponding imltitude of FORTRAN compilers, to devel- op a means of testing the overall quality of these compilers, thereby making meaningful comparisons possible. The National Bureau of Standards has sponsored a project to develop methods and tools to assist in the evaluation process. Before the evaluation process can be undertaken, it is necessary to develop a primary tool, such as a set of FORTRAN programs which can validate whether a FORTRAN compiler is in compliance with the FORTRAN specification as described in the American Standard FORTRAN document X3. 9-1966. In 1966 the National Bureau of Standards formulated the design criteria and specifications for the development of such a set of FORTRAN programs. The initial implementation of this design was performed, under contract, by the Advanced Gonputer Teclmiques Corporation in 1967. Since this time, these programs have been desk checked, computer checked, revised, extended, many test units replaced, and the system reorganized to improve the tests and decrease the difficulty of performing the actual validation process. Version 2 of these test programs was prepared by NBS, under contract, for the Joint Technical Support Activity of the Defense Communications Agency. The purpose of these FORTRAN programs is to assist in the validation of FORTRAN compilers. There is no attenpt to measure the performance of the compiler or the object program efficiency. Currently, the FORTRAN Standard, ASA X3. 9-1966, is undergoing revision and the FORTRAN language is being extended by the X3J3 technical committee of the American National Standards Institute (formerly identified as the American Standards Association). The revised FORTRAN Standard will be considered for Federal adoption. This will, if approved, require that the test programs be revised accordingly. The National Bureau of Standards wishes to thank the Bell Telephone Laboratories for the preparation of the camera-ready copy of the program listings derived from the NBS FORTRAN Test Program Distribution Tape. These listings appear in Volumes 2 and 3 of this report. ABSTRACT NBS FORTRAN TEST PROGRAMS The NBS FORTRAN test programs, written in Standard FORTR^, are designed to test whether a FORTRAN coirpiler accepts the forms and interpretations of the FORTRAN language as described in the American National Standard FORTRAN document X3. 9-19 66. The test programs, comprised of 116 test units, are structured into two versions, each containing approximately 14,500 punch card images. The test units may be used as separate executable FORTRAN programs, or nay be linked end to end with other test units, with a min- imum of user effort, to improve operating efficiency. Version 1 is structured into 116 executable FORTRAN programs , and Version 3 , containing the same 116 test units, is structured into 14 executable FORTRAN programs for use on large FORTRAN processors. The test program design criteria was to: - Constrain all test programs to the FORTRAN Standard X3. 9-1966. - Reduce the effect of those areas in which the FORTRAN Standard does not prescribe a method or solution, e.g., range, precision, size of computer, etc - Sijiplify the use of the FORTRAN test programs. - Test FORTRAN language elements before they are used in support of other tests. - Maintain an open ended system so that tests my be changed or