всем читать

Доброго здоровья, All!

ISO/IEC PDTR 18015 Date: 2003-08-11 WG21 N1487=03-0070 Information Technology - Programming languages, their environments and system software interfaces Technical Report on C++ Performance

Executive Summary: The aim of this report is:  to give the reader a model of time and space overheads implied by use of various C++ language and library features,  to debunk widespread myths about performance problems,  to present techniques for use of C++ in applications where performance matters, and  to present techniques for implementing C++ Standard language and library facilities to yield efficient code. As far as run-time and space performance is concerned, if you can afford to use C for an application, you can afford to use C++ in a style that uses C++'s facilities appropriately for that application. This report first discusses areas where performance issues matter, such as various forms of embedded systems programming and high-performance numerical computation. After that, the main body of the report considers the basic cost of using language and library facilities, techniques for writing efficient code, and the special needs of embedded systems programming. Performance implications of object-oriented programming are presented. This discussion rests on measurements of key language facilities supporting OOP, such as classes, class member functions, class hierarchies, virtual functions, multiple inheritance, and run-time type information (RTTI). It is demonstrated that, with the exception of RTTI, current C++ implementations can match hand-written low-level code for equivalent tasks. Similarly, the performance implications of generic programming using templates are discussed. Here, however, the emphasis is on techniques for effective use. Error handling using exceptions is discussed based on another set of measurements. Both time and space overheads are discussed. In addition, the predictability of performance of a given operation is considered. The performance implications of IOStreams and Locales are examined in some detail and many generally useful techniques for time and space optimizations are discussed here. The special needs of embedded systems programming are presented, including ROMability and predictability. A separate chapter presents general C and C++ interfaces to the basic hardware facilities of embedded systems.

WBR, Сергей. ICQ: 101347299

... История повторяется: у меня опять нет денег.

Reply to
Sergei Tuchinski
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.