KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
We are using Visual Studio 2003 (VC71) for compilation. In order to reduce the compile time we changed the build script such that it generates the precompiled header (.pch) file for each CPP file. The option used in makefile: /Yc"StdAfx.h" /Fp"StdAfx.pch" With this the compile time for the target got reduced by 30%. But could anyone help me to understand how is it reducing the compiler time even when the pch file is getting generated every time for compilation of each CPP file. Also, is it the right approach? Should we use Yc and Yu combination ? I cannot use /Yu option as the pch file should be genrated at least once.
Tags (comma-separated)
Save Edits
Cancel