From cdf59da13ec8522046e0a437adbce4e9dffc193f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 8 Apr 2009 05:50:25 +0000 Subject: [PATCH] some minor edits git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68599 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/PTHInternals.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/PTHInternals.html b/docs/PTHInternals.html index 7714fb91b2..9e8cb59b5f 100644 --- a/docs/PTHInternals.html +++ b/docs/PTHInternals.html @@ -17,23 +17,23 @@

Pretokenized Headers

Precompiled -headers is a general approach employed by many compilers to reduce -compilation time. The underlying motivation of the approach is that within a -codebase frequently the same (and often large) header files are included by +headers are a general approach employed by many compilers to reduce +compilation time. The underlying motivation of the approach is that it is +common for the same (and often large) header files to be included by multiple source files. Consequently, compile times can often be greatly improved by caching some of the (redundant) work done by a compiler to process headers. -Precompiled header files, which represent one of possibly many ways to implement +Precompiled header files, which represent one of many ways to implement this optimization, are literally files that represent an on-disk cache that contains the vital information necessary to reduce some (or all) of the work needed to process a corresponding header file. While details of precompiled headers vary between compilers, precompiled headers have been shown to be a highly effective at speeding up program compilation on systems with very large -system headers (e.g., Mac OS X).

+system headers (e.g., Mac OS/X).

Clang supports an implementation of precompiled headers known as pre-tokenized headers (PTH). Clang's pre-tokenized headers support most of same interfaces as GCC's pre-compiled headers (as well as others) but are -completely different in their implementation. This pages first describes the +completely different in their implementation. This first describes the interface for using PTH and then briefly elaborates on their design and implementation.

@@ -76,8 +76,8 @@ and not specified on the command line using -include.

Using Pretokenized Headers (Low-level Interface)

-

The low-level Clang driver, clang-cc, supports three command line -options for generating and using PTH files.

+

The low-level Clang compiler tool, clang-cc, supports three command +line options for generating and using PTH files.

To generate PTH files using clang-cc, use the option -emit-pth: -- 2.50.1