04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Compiler Command-line Options<br />

2.1.125 --pch<br />

This option instructs the compiler to use a PCH file if it exists, and to create a PCH file<br />

otherwise.<br />

When the option --pch is specified, the compiler searches for a PCH file with the name<br />

filename.pch, where filename.* is the name of the primary source file. The compiler<br />

uses the PCH file filename.pch if it exists, and creates a PCH file named filename.pch<br />

in the same directory as the primary source file otherwise.<br />

Restrictions<br />

This option has no effect if you include either the option --use_pch=filename or the<br />

option --create_pch=filename on the same command line.<br />

See also<br />

• --create_pch=filename on page 2-34<br />

• --pch_dir=dir<br />

• --pch_messages, --no_pch_messages on page 2-102<br />

• --pch_verbose, --no_pch_verbose on page 2-102<br />

• --use_pch=filename on page 2-129<br />

• #pragma hdrstop on page 4-64<br />

• #pragma no_pch on page 4-67<br />

• Precompiled header files on page 2-17 in the Compiler User Guide.<br />

2.1.126 --pch_dir=dir<br />

This option enables you to specify the directory where PCH files are stored. The<br />

directory is accessed whenever PCH files are created or used.<br />

You can use this option with automatic or manual PCH mode.<br />

Syntax<br />

--pch_dir=dir<br />

Where:<br />

dir<br />

is the name of the directory where PCH files are stored.<br />

Errors<br />

If the specified directory dir does not exist, the compiler generates an error.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 2-101<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!