Optimizing C++
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Preface
[edit] Audience
This book is for intermediate C++ programmers (i.e. studying C++ for at least one year) who want to improve the performance of the software they develop.
[edit] Subject
This book contains guidelines and advices to write efficient software using the C++ language. Software correctness and maintainability is taken into account, but it is not the primary concern of such guidelines.
Most guidelines are not platform specific, and so are applicable to every processor, to every compiler, and to every operating system; the few platform specific advices try to cover most platforms.
[edit] Table of Contents
- Introduction
- Optimization life cycle
- Writing efficient code
- General optimization techniques
- Code optimization
[edit] Further Reading
- Calling conventions for different C++ compilers and operating systems
- Optimizing software in C++: An optimization guide for Windows, Linux and Mac platforms
- "Technical Report on C++ Performance" by Dave Abrahams et. al. 2003
- "Code optimization tips for 8-bit microcontrollers" by Steve Kolokowsky 2009
- "Getting the Least Out of Your C Compiler" by Jakob Engblom 2001 lists "some of the more common mistakes and how to avoid them, ... An important conclusion is that code that is easy for a human to understand is usually also compiler friendly, contrary to hacker tradition."