diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-08 05:50:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-08 05:50:25 +0000 |
commit | cdf59da13ec8522046e0a437adbce4e9dffc193f (patch) | |
tree | 2783cfc169236af933dc2c502699e9f7f02ba881 /docs/PTHInternals.html | |
parent | c9abc043af88f90d177a5bd147f627b78ca49fde (diff) |
some minor edits
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/PTHInternals.html')
-rw-r--r-- | docs/PTHInternals.html | 16 |
1 files 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 @@ <h1>Pretokenized Headers</h1> <p> <a href="http://en.wikipedia.org/wiki/Precompiled_header">Precompiled -headers</a> 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</a> 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).</p> +system headers (e.g., Mac OS/X).</p> <p>Clang supports an implementation of precompiled headers known as <em>pre-tokenized headers</em> (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.</p> @@ -76,8 +76,8 @@ and not specified on the command line using <tt>-include</tt>.</p> <h2>Using Pretokenized Headers (Low-level Interface)</h2> -<p>The low-level Clang driver, <tt>clang-cc</tt>, supports three command line -options for generating and using PTH files.<p> +<p>The low-level Clang compiler tool, <tt>clang-cc</tt>, supports three command +line options for generating and using PTH files.<p> <p>To generate PTH files using <tt>clang-cc</tt>, use the option <tt>-emit-pth</tt>: |