Abstract
The premise of this paper is that in writing programs for military systems, programing style is often strongly affected by a compiler's optimization behavior. For example, in the SAM-D project (see [1]), early deliveries of a JOVLAL J3 compiler did not optimize common sub-expressions. SAM-D programmers asserted that the programs written to compensate for this lack of optimization were less readable, understandable, and maintainable than those written later for an optimizing version of the compiler. They asserted, moreover, that in their opinion, the most significant effect of optimization was to permit more readable programs to be written. This assertion has been further studied and verified in [1]. Similar findings have been noted in [2], [3], and [4]. Consequently, the principal point I wish to make is this:
-
HOL Standards must address the effect of optimizations on programming style — Unless compiler optimization behavior is standardized across implementations, the impact on coding, training, and maintenance will be similar to that of programming in different dialects of the "same" language, because programmers will adapt their programming style to conform to the optimization behavior of different compiler implementations.
In the remainder of the paper, I will:
-
present some examples supporting this conclusion by illustrating the style of optimization standards that should be applied to the DoD Common Language;
-
discuss briefly the interaction between language design decisions and optimization standards;
-
note some possible effects of optimization standards on compiler procurement procedures; and
-
conclude with a brief analysis of the impact of these ideas on Common Language requirements as expressed in the TINMAN [5] document.
10.21-13.1 September 1976
Prepared for presentation at the Workshop on the DoD Common Language, Cornell University, September 30 – October 1, 1976
Prepared under U.S. Army Contract DAAB07-75-C-0373
Preview
Unable to display preview. Download preview PDF.
References
Goodenough, J. B. An Exploratory Study of Reasons for HOL Object Code Efficiency, R&D Tech. Rep. ECOM-75-0373-F, U.S. Army Electronics Command, Fort Monmouth, New Jersey, 07703, August 1976. (AD-A029 664/0).
Martin, F. H. On the Performance of the HAL/S-FC Compiler. Intermetrics, Inc., Cambridge, Mass., N76-15796, Oct. 1975.
Parlett, B. N. and Wang, Y. The influence of the compiler or the cost of mathematical software — in particular on the cost of triangular factorization. ACM Trans. on Math. Software 1, 1 (March 1975), 35–46.
Kernighan, B. W. and Plauger, P. J. The Elements of Programming Style. McGraw-Hill, New York, 1974.
Fisher, D. A. A Common Programming Language for the Department of Defense — Background and Technical Requirements. Institute for Defense Analyses, Arlington, VA, Paper P-1191, June 1976.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1977 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Goodenough, J.B. (1977). The need for optimization standards. In: Williams, J.H., Fisher, D.A. (eds) Design and Implementation of Programming Languages. Lecture Notes in Computer Science, vol 54. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0021431
Download citation
DOI: https://doi.org/10.1007/BFb0021431
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-08360-3
Online ISBN: 978-3-540-37260-8
eBook Packages: Springer Book Archive