29.10.2014 Views

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Compiler</strong> Features<br />

4.25 Compilation with multiple PreCompiled Header (PCH) files<br />

More than one PCH file might apply to a given compilation. If so, <strong>the</strong> largest is used, that is, <strong>the</strong><br />

one representing <strong>the</strong> most preprocessing directives from <strong>the</strong> primary source file. For example,<br />

a primary source file might begin with:<br />

#include "xxx.h"<br />

#include "yyy.h"<br />

#include "zzz.h"<br />

If <strong>the</strong>re is one PCH file <strong>for</strong> xxx.h and a second <strong>for</strong> xxx.h and yyy.h, <strong>the</strong> latter PCH file is selected,<br />

assuming that both apply to <strong>the</strong> current compilation. Additionally, after <strong>the</strong> PCH file <strong>for</strong> <strong>the</strong> first<br />

two headers is read in and <strong>the</strong> third is compiled, a new PCH file <strong>for</strong> all three headers is created<br />

if <strong>the</strong> requirements <strong>for</strong> PCH file creation are met.<br />

4.25.1 See also<br />

Concepts<br />

• PreCompiled Header (PCH) files on page 4-29.<br />

<strong>ARM</strong> DUI 0375C Copyright © 2007-2008, 2011 <strong>ARM</strong>. All rights reserved. 4-34<br />

ID061811<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!