|
ABSTRACT
Unreachable procedures are procedures that can never be invoked. Their existence may adversely affect the performance of a program. Unfortunately, their detection requires the entire program to be present. Using a long-time code modification system, we analyze large, linked, program modules of C++, C, and Fortran. We find that C++ programs using object-oriented programming style contain a large fraction of unreachable procedure code. In contrast, C and Fortran programs have a low and essentially constant fraction of unreachable code. In this article, we present our analysis of C++, C, and Fortran programs, and we discuss how object-oriented programming style generates unreachable procedures.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
AMERICAN NATIONAL STANDARD INSTITUTE. 1966. ANSI Standard Fortran. ANSI, New York.
|
| |
2
|
Alfred V. Aho , Ravi Sethi , Jeffrey D. Ullman, Compilers: principles, techniques, and tools, Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1986
|
| |
3
|
BOBROW, D. G., AND STEFIK, M.J. 1983.The LOOPS Manual. Xerox Corporation, Palo Alto, Calif.
|
 |
4
|
|
| |
5
|
|
| |
6
|
|
| |
7
|
|
 |
8
|
|
| |
9
|
|
| |
10
|
SRIVASTAVA, A. 1985. SCOOPS: Scheme object-oriented programming system. Rep. CSL-23, Texas Instruments, Dallas, Tex.
|
| |
11
|
SRIVASTAVA, A., AND WALL, D.W. 1993. A practical system for intermodule code optimization at link-time. J. Program. Lang. 1 (Mar.), 1-18. Also available as WRL Research Report 92/6, December 1992.
|
| |
12
|
|
| |
13
|
TEXAS INSTRUMENTS. 1985. TI Scheme Language Reference Manual. Texas Instruments, Austin, Tex.
|
| |
14
|
|
|