Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Name

fixPrecomps

Synopsis

fixPrecomps -help
fixPrecomps [-checkOnly] [-force] [-relroot directory] [-all | 
-precompsList filename] [-precomps filename] [-find_all_
precomps] [-gcc2 | -gcc3all] [-skipIfMissing] [-output 
directory] [-precompFlags flag]

Compiles header files to improve performance for programs including them. When invoked without arguments, fixPrecomps reads any files in /System/Library/SystemResources/PrecompLists in alphanumeric order by filename. Normally this includes phase1.precompList and phase2.precompList. These files are expected to consist of lists of precompiled header filenames to generate. fixPrecomps then runs cc -precomp on the ordinary header files where the precompiled headers are either out of date (i.e., have modification times less recent than the ordinary headers) or nonexistent.

The headers listed in the precompList files have filename extensions of either .p or .pp. fixPrecomps finds ordinary headers with the same base filenames but extensions of .h. The .p headers are compiled with GCC Version 2 for use with C and Objective-C programs, while the .pp headers are compiled with GCC Version 2 for C++ and Objective-C++ programs. By default, fixPrecomps compiles headers with GCC Version 3, in which case C/Objective-C precompiled header filenames end in -gcc3.p, and C++/Objective-C++ precompiled header filenames end in -gcc3.pp.

Options

-all

Uses all files contained in /System/Library/SystemResources/PrecompLists. This is the default.

-checkOnly
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata