The analysis of the execution efficiency of Object-Oriented pro- gramming constructs and mechanisms under different C++ compilers

碩士 === 國立交通大學 === 資訊工程研究所 === 81 === Object-Oriented programming languages consist of four pro- gramming constructs and mechanisms, namely information hindding, data abstraction, inheritance, dynamic binding. The purpose of this study...

Full description

Bibliographic Details
Main Authors: Yaw-Ren Tuw, 涂耀仁
Other Authors: Deng-Jyi Chen
Format: Others
Language:zh-TW
Published: 1993
Online Access:http://ndltd.ncl.edu.tw/handle/27175644066389545415
Description
Summary:碩士 === 國立交通大學 === 資訊工程研究所 === 81 === Object-Oriented programming languages consist of four pro- gramming constructs and mechanisms, namely information hindding, data abstraction, inheritance, dynamic binding. The purpose of this study is to analyze the execution efficiency of Object- Oriented programming constructs and mechanisms under defferent C++ compilers. We implement programs using C++ and each of them has one or more property of the four mechanisms mentioned above. Then we compare them with those programs that have the same functiona- lity but are implemented with traditional programming technigue. Since compilers may produce results of the analysis considerable differences, six kinds of compilers are used to minimize the effects from compilers. These compilers are 1) Borland C++, 2) Zortech C++, 3) MicroSoft C++, 4) SUN gcc version 2.3.3, 5) SUN C++ version 2.1 SC 1.0 and 6) SUN C++ version 2.0 FCS. The first three compilers are for PC environment while the later three are for workstation. From our study, inheritance does not affect on the execution efficiency while the other three machanisms may not always de- crease the execution efficiency. Further studies indicate that appropriate compiler optimization will improve the execution efficiency of these Object-Oriented constructs and mechanisms. Conclusion from this study favors that Object-Oriented con- structs and mechanisms implemented based on C++ do not decrease execution efficiency.Particularly, dynamic binding for some spe- cific applications could outperform the traditional implementa- tion technigue both the execution efficiency and flexibility for implementation.