Skip to content

Commit 68589f5

Browse files
committed
Precompiled Header
Filled the section about precompiled headers with some general information and some links to a manual for the common compiler
1 parent fb744a1 commit 68589f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

08-Considering_Performance.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ This is a general form of "Firewall Frequently Changing Header Files" and "Don't
6262

6363
### Consider using precompiled headers
6464

65+
The usage of precompiled headers can considerably reduce the compile time in large projects. Selected headers are compiled to an intermediate form that can be faster processed by the compiler. It is recommended to define only frequently used header that changes rarely as precompiled header (e.g. system and library headers) to achieve the compile time reduction.
66+
But there is no standard way to use them, every compiler has their own way. Precompiled headers is supported by the most common compiler, like [GCC](https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html), [Clang](http://clang.llvm.org/docs/PCHInternals.html) and [Visual Studio](https://msdn.microsoft.com/en-us/library/szfdksca.aspx).
67+
6568
### Consider Using Tools
6669

6770
These are not meant to supersede good design

0 commit comments

Comments
 (0)