0

From what I know, headers used properly should only contain function prototypes and defines, which are not compiled. Only the global variables will be compiled. So why bothering with precompiled headers when there's almost nothing to compile ? Am I missing something ?

  • It's a misnomer, they should have been called "pre-parsed" instead. In most implementations it's just a serialised AST. – SK-logic Apr 01 '14 at 21:24

1 Answers1

0

The point of precompiled headers is to speed up compilation. And yes, everything is compiled, even if it does not generate assembly output, it still generates internal compiler symbols.

sp2danny
  • 7,488
  • 3
  • 31
  • 53