4.32 Suppressing Precompiled Header (PCH) file processing

To suppress PCH file processing, use the #pragma no_pch directive in the primary source file.

You do not have to place this directive at the beginning of the file for it to take effect. For example, no PCH file is created if you compile the following source code with armcc --create_pch=foo.pch myprog.c:

#include "xxx.h"
#pragma no_pch
#include "zzz.h"

If you want to selectively enable PCH processing, for example, subject xxx.h to PCH file processing, but not zzz.h, replace #pragma no_pch with #pragma hdrstop, as follows:

#include "xxx.h"
#pragma hdrstop
#include "zzz.h"
Related concepts
4.24 Precompiled Header (PCH) files
4.25 Automatic Precompiled Header (PCH) file processing
4.26 Precompiled Header (PCH) file processing and the header stop point
4.27 Precompiled Header (PCH) file creation requirements
4.28 Compilation with multiple Precompiled Header (PCH) files
4.29 Obsolete Precompiled Header (PCH) files
4.30 Manually specifying the filename and location of a Precompiled Header (PCH) file
4.31 Selectively applying Precompiled Header (PCH) file processing
4.33 Message output during Precompiled Header (PCH) processing
4.34 Performance issues with Precompiled Header (PCH) files
Related reference
10.85 #pragma hdrstop
10.90 #pragma no_pch
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.