diff -r 000000000000 -r fb279309251b core/com.nokia.carbide.cpp.compiler.doc.user/html/performance/perf_preprocessing.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/com.nokia.carbide.cpp.compiler.doc.user/html/performance/perf_preprocessing.htm Fri Apr 03 23:33:03 2009 +0100 @@ -0,0 +1,22 @@ + +
+ + + +When precompiling a header file, the compiler preprocesses the file too. In other words, a precompiled file is preprocessed in the context of its precompilation, not in the context of its compilation.
+The preprocessor also tracks macros used to guard #include files to reduce parsing time. Thus, if a file’s contents are surrounded with:
+#ifndef FOO_H
+ #define FOO_H
+ // file contents
+ #endif
The compiler will not load the file twice, saving some small amount of time in the process.
+ + + + +