public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Separate preprocess and compile: some performance numbers
@ 2017-05-18 13:17 Boris Kolpackov
  0 siblings, 0 replies; only message in thread
From: Boris Kolpackov @ 2017-05-18 13:17 UTC (permalink / raw)
  To: gcc

Hi,

I have implemented the separate preprocess and compile setup in build2.
For GCC it is using -fdirectives-only (thanks to everyone's suggestions
in the earlier thread). I've also done some benchmarking:

https://build2.org/article/preprocess-compile-performance.xhtml

TL;DR for GCC:

Surprisingly, a separate preprocessor run is about 1% faster (probably
because of the time-localization of filesystem access). Overall, a
preprocessor run costs about 5% of a non-optimized C++ build.

Boris

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-18 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-18 13:17 Separate preprocess and compile: some performance numbers Boris Kolpackov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).