From 68589f5c3ae50b8972051727919cd85c84f7c703 Mon Sep 17 00:00:00 2001 From: rob100 Date: Thu, 6 Aug 2015 11:18:43 +0200 Subject: [PATCH] Precompiled Header Filled the section about precompiled headers with some general information and some links to a manual for the common compiler --- 08-Considering_Performance.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/08-Considering_Performance.md b/08-Considering_Performance.md index 992b247..f4968d9 100644 --- a/08-Considering_Performance.md +++ b/08-Considering_Performance.md @@ -62,6 +62,9 @@ This is a general form of "Firewall Frequently Changing Header Files" and "Don't ### Consider using precompiled headers +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. +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). + ### Consider Using Tools These are not meant to supersede good design